Hi All - hoping someone can help.
I have a listing page where the user will select multiple objects. When they hit the “next” button, the titles for each of those selected objects need to display in a repeater.
I am using a global variable to capture the title of each selected object, however, I can only get the global variable to register whichever object is selected last.
I put together a demo of what I am talking about.
test_variable.rp (3.2 MB)
Thank you!
Dennis
Hi Dennis. I’m using Axure 9 so I can’t see your file, but I think I get the gist:
live example | download rp file (78.9 KB)
To store multiple values from a repeater in a variable, you need to build a string that contains all those values. When you load the next page, you’ll parse the string and add the values to that page’s repeater one by one.
Hope this helps!
1 Like
attaching the RP 10 file if it is more helpful
fickle-new-triage.rp (144.6 KB)
Thank you. It’s not about storing multiple values. In this case, I am trying to multiply the value stored in a global variable by a constant integer and then display that new value. Unfortunately, Axure is wrapping the equation in quotes, so the only thing that displays is the equation, rather than the result of the equation.
This is the equation that I am using:
[[Number(selectedDrinkPrice) * 0.09]]
But, like I said, Axure wraps it in quotes:
“[[Number(selectedDrinkPrice) * 0.09]]”
Which treats it like a text string?
Hmm, I think you may be replying to the wrong thread (this one is over a year old)? But in any case, the quotes aren’t the issue. Rather, it’s that Number() isn’t a supported function in “native” axure code. If you remove that, and just say [[selectedDrinkPrice * 0.09]], it should work, as long as selectedDrinkPrice has a value assigned.