See what is selected in List box at submit

How do i see what is posted in a listbox on submit of page?  the source is set to a session variable list struct but the ISSelected property is not being set true if it is selected, it is always set as false for every listbox object, we are wanting to have the list box values persist when the user goes to a different page and then what they had selected previously is still selected. 

Solution

Hi Jason,

Are you trying to access your session variable or the widget list itself?

Cheers

Solution

Hey Henrique,


I am trying to access the widget list collection.  I am trying to view what options are selected in an onchange event for the list box.  What i am seeing is all options show IsSelected = False.

Can you upload an .oml with a small example?

Jason Waltman wrote:

Hey Henrique,


I am trying to access the widget list collection.  I am trying to view what options are selected in an onchange event for the list box.  What i am seeing is all options show IsSelected = False.

What do really want to do?

if i understanding right, you want to see what line is selected, is that?

if i understand well, here the some print how to make.

1) Put the checkbox in the table


2) in the aggregation, add the Boolean in source



3) than in the onChange of checkbox you need to make something similar to this but need to include the current line.




Hope this helps.


If has any question, pm


Thiago Mari

the if is 


"If(getxpt.list.current.Boolean.Value = True,False,True)

then add the ajax refresh in the table

Thiago Mari wrote:

if i understand well, here the some print how to make.

1) Put the checkbox in the table


2) in the aggregation, add the Boolean in source



3) than in the onChange of checkbox you need to make something similar to this but need to include the current line.



Hi Nikita here,

I want to know what is this boolean is it session aggregate ?

how to add this.



Nikita Satpute wrote:

Thiago Mari wrote:

if i understand well, here the some print how to make.

1) Put the checkbox in the table


2) in the aggregation, add the Boolean in source



3) than in the onChange of checkbox you need to make something similar to this but need to include the current line.



Hi Nikita here,

I want to know what is this boolean is it session aggregate ?

how to add this.



Hi Nikita,


The aggregate is included with a Boolean structure as a source structure - It is a normal structure which is defined with a attribute (i.e. IsSelected) of Boolean data type.


Regards,

Benjith Sam