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

Go to related record OR Go to record

Featured Replies

HI!

 

I am trying to create a script that will jump from one layout/table to the related record in another layout/table (if there is a related record) OR to the first record in the destination layout/table (if there is no related record). I know how to do this separetly but not as a part of the same script. Any ideas?

I know I could create two buttons with different script but the idea is to have only one button that would perform either "Go to related record" or "Go to record first" if there is no related record in the destination table/layout.

 

Thanks!

 

16 minutes ago, sinisa93 said:

the idea is to have only one button that would perform either "Go to related record" or "Go to record first" if there is no related record

Why don't you do exactly what you said:
 

If [ IsEmpty ( RelatedTable::Matchfield ) ]
  Go to Record [First]
Else
  Go to Related Record [...]
End If

 

  • Author

Hi!

Thank you for your reply. Since I'm only a beginner, obvious solutions are not so obvious to me :) In the end I didn't use your suggestion but It helped me a lot to create my own. So thanks, once again.

If [Id number::Table 1 ≠ Id number::Table 2]
  Go to layout ["Table 2" (Table 2)]
  Go to Record [First]
Else
  Go to Related Record [...]
End If

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.