Jump 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.

Opening a layout,and enter new data to a portal or to its related table.

Featured Replies

ow can I add new data to a portal or to a related table?using another layout.?

like this one;

858793627_portalwithaddbillingbutton.thumb.jpg.c3b3bf0571926ba53df51c8fef6b7b1b.jpg

 

 

 

 

 

Edited by Mark Pastoril

I'm a little confused, but I'll take a shot.  I think what you could do in a script is:

Grab the primary key of the record on the main layout.

Open a new window on the layout you want to create the related record.

New Record

Set the foreign key to the variable

Enter your data.

I'd either cover the entire new layout with a button so a user can only commit the record by clicking your Cancel or Submit buttons, or use a script trigger to prevent committing the record unless the use the buttons.

Cancel button runs script to delete or revert record, close window.

Submit button commits record, close window

You may need a refresh on the portal.

  • Author

Thanks that works!

using this script

Set Variable[]

New Window[opens the layout that you fill up the data]

new record/request

set field[]

 

 

But how about if i use the button in a a portal/or inside the portal?

Don't quite understand the request.  If you put it in a portal row, you would probably want to hide it on any row that has data, and just show it on the blank row, otherwise, every portal row has a button for a new record.

Seems more intuitive to pop open the card window, then the user is focused on that specific task to either complete adding the new record or change their mind.

  • Author

I want to create a card window to edit data/fill data in a portal row

Basically the button would start a script that would go to that related record in a new card window.  If the button is in a blank row, it would grab the primary id of the layout (in a variable), open the card window, new record, set foreign key to primary key variable.  Only allow the user to commit via a Save button, or allow the user to cancel (delete record for new record, or undo changes for existing record), commit, close window, maybe refresh first layout or portal.

  • Author

thanks for the help , really help a lot.

Create an account or sign in to comment

Important Information

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

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.