Hello! I am new to JSL and trying to develop a tool for an engineering group. What we'd like to do is to pull data from a table and display the results of one record based on a selection of items available. I have developed a super simple version and cannot get it to work. Is it even possible to update a Text Box in a window based on a selection made in a Combo Box. << Reshow is not doing what I had hoped it would. If this isn't possible, are there any other options?
Here is the code I'm trying to learn from:
update = expr(cb << Get Selected;
tb2 << reshow); //refresh code
TestArray = {"This", "That", "The Other"}; //my list of 'stuff'
nw = New Window("Sample", << Modal,
vlb = V List Box(
cb = Combo Box(TestArray //my list of 'stuff' in a combo box
),
hlb = H List Box (
tb1 = Text Box (" You selected: "), //label
tb2 = Text Box (cb << Get Selected;), //return the current item
update; //call to refresh the text box (but it doesn't)
//I have named all display boxes in hopes that <<reshow of one of them
//would be the ticket. Nothing worked the way I wanted.
)
)
)