747
Views
8
Comments
Solved
See what is selected in List box at submit
Question

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. 

2017-07-05 22-17-18
Henrique Batista
Staff
Solution

Hi Jason,

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

Cheers

UserImage.jpg
Jason Waltman

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.

2022-03-01 15-42-44
Thiago Mari
Champion

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?

2017-07-05 22-17-18
Henrique Batista
Staff

Can you upload an .oml with a small example?

2022-03-01 15-42-44
Thiago Mari
Champion

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

2021-09-17 19-04-45
Nikita Satpute

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.



2021-03-18 21-03-15
Benjith Sam
 
MVP

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


2022-03-01 15-42-44
Thiago Mari
Champion

the if is 


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

then add the ajax refresh in the table

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.