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.

If portal empty

Featured Replies

how can i write a calculation the will tell me that if a portal is empty?

If there are no related records (portal records) for that one main record, you can find out by this calculation:

IsEmpty ( childtable::primaryKey ) ... produces 1 if there are no children.

You don't need to use the child's primary key but you need to be sure you use a field which is NEVER empty in the portal table.

  • Author

i have a layout with 3 portal's table .

1 the object name is "in".

2 the object name is "out".

3 the object name is "work".

how can i gat a costume dialog box if the out table is empty

how can i gat a costume dialog box if the out table is empty

The User must perform an action to fire a script which will produce the custom dialog. Can you explain the User actions and logic behind this functionality? Once you determine how you want the script to fire, you need to determine the table occurrence name of that 'out' portal (it will show the portal name in layout mode). Then the script would be something like:

If [ IsEmpty ( [color:green]tableoccurrence::non-empty field ) ]

Show Custom Dialog [ OK ; "There are no records in Out." ]

End If

When you need to insert the green portion in the script, select the correct table occurrence from the pop-up at the top of the calculation dialog and then double-click the non-empty (hopefully unique serial) field to insert it into the calculation.

... but we probably need a bit more of a vision here to pin down your needs. We are all more than happy to help you further if you get stuck. :wink2:

  • Author

i have a script that runs after the user fils in the layout.

so in the script that is running a check out if the portal table named "out" to be check if it is empty to show a costume dialog box.

i did test what you whore and i have a problem with it .

if the user in the "out" table enters 1 line and goes to line 2 is will sill say that is is empty . i need to check that there is no data on the table.

Edited by Guest

I'm sorry but I'm not sure I totally follow it, Dani.

if the user in the "out" table enters 1 line and goes to line 2 is will sill say that is is empty . i need to check that there is no data on the table.

It may be a commit issue but I don't think so. What field are you testing to be sure it is never empty?

UPDATE: To save time, it would help to see your file. :wink2:

Edited by Guest
Added update

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.