Hi there,
First post so please be gentle.
- How do you address a specific row / column combination from outside the repeater using either local or global variables. - most important…
Failing that…
- how do you assign a row as marked from outside the repeater - after copying and deleting a row to another repeater, i want the row above to become marked and assign the text contained within that row to other objects with it’s row data. I have assigned a global variable to the current index… but then can’t use that because it stores it as an integer, not a real reference to the repeater… so you then can’t affect/set the repeaters index with it.
which leads me to ask…
- how do you set a repeaters index from outside the repeater, ie falsify where the user clicked on the repeater…
For Example -
When the user clicks delete on a mail message it removes the message - this works fine
The repeater containing the list of mails updates and moves the message to the deleted box - this also works fine
The repeater then populates the body/details view of the message (object external to the repeater ) with the previous mail (the one above) in the inbox - this is the bit i can’t get to work…
I also want the previous mail (one above) to be “marked” or selected as part of the delete, so the user can then delete it without first clicking on the repeater…
because from what i can tell, you cannot address a specific row (like you could with an array) within a repeater from external to the repeater, or by any other way than if the user clicks on that row so you can call Index.
I was expecting my delete button to have something like this in it’s onclick
set the text of ExternaltextObject to repeatername.indexnumber.columnname
Mark repeatername.indexnumber = true
I have tried using global variables and setting them to the repeatername, then addressing the variable but because there’s no detailed documentation on exactly how the scripting works in axure it’s been very much trial and error. Also tried setting the repeater to a local variable, then setting that local variable to a global variable, and addressing the global variable both to read and set index.
So yes… please do help if you can.
Cheers
Justin.