Hello Everybody
In LANSA WAM
I want to get selected value of radio button in display List in Screen.
I can set value for radio button in Wam but can not get value when button clicked or load page.
Please support me !
Thank you so much!
Get value of Radio Button in List
-
hoangtrungcs
- Posts: 15
- Joined: Wed Sep 21, 2016 12:54 pm
Re: Get value of Radio Button in List
For more details
In this case I use radio button not radio group control.
Then I add this radio to List but I can not get value of radio button was selected when reload page.
In this case I use radio button not radio group control.
Then I add this radio to List but I can not get value of radio button was selected when reload page.
Re: Get value of Radio Button in List
Hi
Drop the radio button weblet over a input list column (for example std_code). Make sure you set a code value ("code" property in weblet details). See screenshot
For example, if you use column std_code and nominate "CHK" as the code property, when you post the list, std_code will have "CHK" for that row.
Remember that for the value to be posted, the column must be input capable, not just text output.
Drop the radio button weblet over a input list column (for example std_code). Make sure you set a code value ("code" property in weblet details). See screenshot
For example, if you use column std_code and nominate "CHK" as the code property, when you post the list, std_code will have "CHK" for that row.
Remember that for the value to be posted, the column must be input capable, not just text output.
-
hoangtrungcs
- Posts: 15
- Joined: Wed Sep 21, 2016 12:54 pm
Re: Get value of Radio Button in List
Hi AbelS
Thank you so much for your support!
The value of radio button in list can be get after reload. So happy!
But after reload, the radio button in list can not be checked in the selected value.
The first time load I can not set default selected too.
Thank you so much for your support!
The value of radio button in list can be get after reload. So happy!
But after reload, the radio button in list can not be checked in the selected value.
The first time load I can not set default selected too.
Re: Get value of Radio Button in List
But after reload, the radio button in list can not be checked in the selected value.
I don't get what you mean. Please use an example.
The first time load I can not set default selected too.
To preset the radio button as "checked", set the value to "code". In my earlier example it would be: #std_code := 'CHK'.
-
hoangtrungcs
- Posts: 15
- Joined: Wed Sep 21, 2016 12:54 pm
Re: Get value of Radio Button in List
Hi AbelS
Thank you so much!
Everything is OK. I can do that by your supported.
Thank you so much!
Everything is OK. I can do that by your supported.
- Attachments
-
- testradio.JPG (35.22 KiB) Viewed 8219 times