Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Using Wisescript to populate list based dialog controls in Wise 9

Updated: 22 May 2010 | 2 comments
kgandy's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

 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...
 

Discussion Filed Under:

Comments

Rivin's picture
07
Aug
2009
1 Vote +1
Login to vote

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.

kgandy's picture
07
Aug
2009
0 Votes 0
Login to vote