October 12, 200421 yr 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!
October 12, 200421 yr Use an index field to specify the index of the repeating field, like RepeatingField[index]. GTRR with that.
October 12, 200421 yr Author 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?
October 13, 200421 yr Author 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) 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.
October 13, 200421 yr Instead of a field, you could use a custom prompt for the index number. Scripts | Show Custom Dialog | user inputs index number into global
October 14, 200421 yr There is no way of which I am aware except for clicking into the repetition and then clicking the button, as you are doing.
Create an account or sign in to comment