Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Add a new record dynamically

Featured Replies

Is it possible to add a new record to a table without a layout?

One way I know to add a new record is using script steps like:

Go to Layout

New Record/Request

Set Field...

I have a many to many relationship with a connecting table. I don't want to create a layout for the connecting table, but still want to add a new record to the connecting table.

Thanks

Hi,

Have you tried "Allow creation of records in this table via this relationship" option in the "Edit relationship?"

  • Author

Yes I did, but I need to find a way to create a new record in an unrelated table through scripting.

Hi again,

I have a many to many relationship with a connecting table. I don't want to create a layout for the connecting table, but [color:blue]still want to add a new record to the connecting table.

Based on your first question, I thought you want to add new record to related table (connecting table), so I suggested about that relationship. As far as I know, you cannot add new records to unrelated table without its' layout. Maybe other FM guru can help you out in this issue if there's any method ;]

If it's unrelated, then what is it connecting?

Do you have a layout for some Table Occurrence of this table, but just not this particular TO? If so, that's doable, any layout based on a TO of the table will do.

Set Variable( $id ; parent ID )

Go to Layout

New Record/Request

Set Field( parent ID ; $id )

Here is one of FM guru's answer :

Bravo for Tom :thumbup:

  • Author

Let me make this clear. This is my simplified database structure:

Three tables:

Table_A

-------

A_ID

Table A_B

----------

A_ID

B_ID

Table_B

-------

B_ID

And relationship is (a common many to many relationship):

Table_A::A_ID--->Table_A_B::A_ID

Table_A_B:B_ID<----Table_B::_ID

In another separate layout, when the user specify A_ID and B_ID, a new record will be created in table A_B

Edited by Guest

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.