Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7348 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am trying to set up a way to GTRR (go to related record) from a series of repeating fields. This doesn't work... clicking on a repeating field always acts like you clicked on the first repetition. To get around this, I thought I would do something clever... create a set of fields, each containing a number (1-the number of repeating fields). Clicking on it will check whatever number was in that field, go to that repetition, and do the GTRR functions from there. Unfortunately, there doesn't seem to be a way for a script to know the contents of the field that was clicked to call it. True? Is there an easy way to solve this (GTRR from a repeating field)? I am really stuck on this one. Thanks!

Posted

Use an index field to specify the index of the repeating field, like RepeatingField[index]. GTRR with that.

Posted

This is what I tried to do... first, I set up a separate repeating field with indexes (1 through 20, in this case). No joy. Script always assumes you pressed the first repetition. Then, I set up 20 separate fields, each with the indexed value, and each calling the same script. That is where I got stuck... how does the script know which field was clicked, and therefore which index use? confused.gif

Posted

I guess I'm a little slow... how does the index field get set? I tried the following (using gTempStore as a global index field)B)

setField["gTempStore", Status (CurrentRepetitionNumber)]

Unfortunately, this requires the user to click inside the repeating field (putting the selection inside that field), and then click the button. This is not really what I want... I want to just click the button.

Again, I appreciate the help. Just not sure how to get there from here.

Posted

Instead of a field, you could use a custom prompt for the index number. Scripts | Show Custom Dialog | user inputs index number into global

Posted

There is no way of which I am aware except for clicking into the repetition and then clicking the button, as you are doing.

This topic is 7348 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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