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.

Empty portal

Featured Replies

Hello

I have a portal that can be access from a menu on top of it, wich display different categories (to sort the items). In each categories I can add items into the portal using a script. I do not want to allow the creation of records from the portal. I prefer a script because it goes to the related LineItem to get some variable and sets some fields first. Everything goes very well except when the portal is empty. Then I can't get last field information (of course) and I can't find the right way to tell the script something like: if the portal is empty just create a new record in the lineItem.

In other words:

-my script goes to the last portal row and collect some variables.

-it goes to the line item, create a new record and sets a few fields with those variables.

-Back to the portal and a New window opens with the last item and present what's in there for verification and completion of the items qty, details etc...

How can I tell my script if the portal is empty just create a new record or ELSE do the working script?

I'M LOST. PLEASE HELP

Thank you.

If Count(Related::field) > 0

//not empty

else

//empty

endif

does this help?

IsEmpty() is supposedly better optimised than Count() when checking for related records.

If [ not IsEmpty( related::field ) ]

  • Author

I tried "is empty" but because I can't (and don't want to) create new record from the portal it seems I can't select a field for the empty calc. And its the same for the count.

Any other idea?

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.