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.

Button in Portal fails when no related records exist

Featured Replies

Hi

I have a button inside a portal. If there are no related records, the button/script is not activated.

Is there a clever workaround for this, other than simply placing a second scripted button outside the portal?

Any help/suggestions much appreciated. :

Grant

Investigate this approach:

http://www.fmforums.com/forum/showpost.php?post/149069/

....as well as this:

http://concise-design.com/downloads/accordion.zip

Which teaches you yet another role for portals than just showing child records only. But you can also study the entire thread here:

http://fmforums.com/forum/showtopic.php?tid/176396/tp/1/

--sd

  • Author

Hi Soren,

thanks for the reply.

I'm probably not understanding these correctly, but it seems that the scripted buttons (in the example files) inside the portals, don't work when there is no related record. IOW, when there is nothing showing up in the portal.

This is what I'm trying to circumvent. :confused:

For a bit more info ...

This is a simple scenario : related table for telephone numbers etc. A contact can be created without a tel number, but if that happens, then I can't use the 'clean' design of a button in a portal to create a new related record for them (in the telephone table).

Maybe I'm missunderstanding??

The only way I know of to show a button in an empty portal row is to allow the relationship to create child records. This way the number of shown buttons will always equal the number of children + 1.

Kieren has a point here:

http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000927

--sd

  • Author

Excellent!

Thanks Comment!! (I hoped it would be this simple).

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.