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.

Create a New Record in a Portal

Featured Replies

I a trying to write a script that will simply create a new record in a portal.

The portal is a payment database that records payments made by date, type, and amount.

To save time keying, I want to use buttons that say 'cash payment', the script would create a new record in the portal row, then add the date, the type, and simply ask the user to enter the amount.

Thanks

Mark,

make sure your relationship for the portal is set to allow creation of related records.

In your related database, set the date field to auto enter the creation date.

If your relationship is called paymentsid

you can write the folowing script.

go to field [paymentsid::date]

go to portal row [last]

set field [paymentsid::type] "Cash"

go to field [paymentsid::amount]

What this does is.

First it goes to a field visible in your portal (eg date)

Then it goes to the last portal row, which is the first empty row.

Then it adds the type as cash and then goes to the field amount, waiting for the user to enter the amount.

Because the date is set to creation date, that is entered automatically

HTH

If you have a child file where your payments are stored, then you can get your new payment to be at the top of the portal int he parent by:

. having a script which performs an external script in the child file to create a new record and date/time stamp it, then returns to the parent file.

. have your portal sorted by decreasing order of date, then time.

Now, your portal wil show the new payment at the top, ready for entry, and all other payments in descending date/time order.

Russ Baker

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.