sinisa93 Posted September 1, 2016 Posted September 1, 2016 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!
comment Posted September 1, 2016 Posted September 1, 2016 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
sinisa93 Posted September 1, 2016 Author Posted September 1, 2016 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
Recommended Posts
This topic is 3004 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now