Using Wisescript to populate list based dialog controls in Wise 9
In the dialog script editor there is an action to Set Control Text, but I'm having a hard time figuring out how I can populate it so that there are a list of items created at runtime. I've searched the documentation and the forums and I can't find any information about this.
I've tried:
Set Control DROPDOWNLIST text to "Item 1%CRLF%Item 2%CRLF%Item 3"
And
Set Control DROPDOWNLIST text to "Item 1;Item 2;Item 3"
But both of those statements just put all of the information on a single line in the selected item position, and the %CRLF% is rendered as a pair of black bars so the variable is getting interpreted.
I also noticed that when you use the Set Control Text action it encloses the value in quotes, so I tried including quotes in my value to try to escape them but that didn't work and neither did trying to set the string to a seperate variable and then assigning that variable to the control text.
I'm starting to wonder if what I'm trying to do is even possible...
Comments
In List Box Control Setting,
In List Box Control Setting, for List Box Text add some variable for exmple %LIST% in Variable dropdown add ITEM and save it. In View->Dialog script Editor select SetVariable, for Variable enter LIST and for new value enter: Item 1%CRLF%Item 2%CRLF%Item 3. And don't use quotes. It works for me.
Exactly what I was looking for
Thanks!
Would you like to reply?
Login or Register to post your comment.