AnsweredAssumed Answered

Help with Variable Repetitions

Question asked by DylanMajka on Jul 27, 2015
Latest reply on Aug 3, 2015 by DylanMajka


Help with Variable Repetitions


Hi guys,

What I'm trying to do is set up a script that will allow a user to temporarily store a group of found records uniquely named by a particular field (in this case Order ID) and then later recall those found records without having to do the search all over again.

The way in which I am going about this is by trying to set up a script that will store the Order ID for each record in a repetition of a global variable.  So far this is what my script looks like:


Set Variable[$$Count; Value:Get(RecordNumber)]

Set Variable[$$ID[$$Count] ; Value:Orders::Order ID]

Go to Record/Request/Page [Next; Exit after last]

End Loop

I'm not sure if I am misunderstanding how variable repetitions work, but I'm under the impression that they should be able to be recalled similarly to an array in any other programming language.  However, I'm running into an issue getting FileMaker to recall them; it almost seems as though it's only storing one ID in the variable.

Any idea what I might be doing wrong?