Highlighted
Valued Contributor.
Valued Contributor.
280 views

Handling Dynamically changing checkbox values

Hi,

I need help on below scenario:

Kavithakm37_1-1577971299301.png

User has to select only "On Time" and this value changes based on the flight selected on previous page. There are 100's of different flights available. How to handle this kind of scenario. Kindly help

 

0 Likes
5 Replies
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: Handling Dynamically changing checkbox values

Have you looked at the webpage source code and see if you can correlate the "On Time" value associated with the checkbox.

If you can, make sure you do a Ord=All in your web_reg_save_param.  You may need to do a "lr_free_parameter("ParmName_1");" before your next iteration.

 

 

Boatnlarry
0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Handling Dynamically changing checkbox values

In the vugen script it is getting recoreded as below:

ITEMDATA, 
        "Name=ctl00$head$chk1", "Value=<OFF>", ENDITEM, 
        "Name=ctl00$head$chk2", "Value=<OFF>", ENDITEM, 
        "Name=ctl00$head$chk3", "Value=on", ENDITEM, 
        "Name=ctl00$head$chk4", "Value=<OFF>", ENDITEM, 
        "Name=ctl00$head$chk5", "Value=<OFF>", ENDITEM, 
        "Name=ctl00$head$chk6", "Value=<OFF>", ENDITEM, 
        "Name=ctl00$head$chk7", "Value=<OFF>", ENDITEM, 
        "Name=ctl00$head$chk8", "Value=on", ENDITEM, 

 

0 Likes
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: Handling Dynamically changing checkbox values

Does your script still work if you changed the first line to

"Name=ctl00$head$chk1", "Value=on", ENDITEM,

What is max lines you can have on a single page?

 

Boatnlarry
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Handling Dynamically changing checkbox values

Checkout topic How to send array of parameters in web_submit_form

It gives a 'template' for working with dynamic amount of input fields.

Signature:
Reward community members who take time to respond and help.
Highlighted
Valued Contributor.
Valued Contributor.

Re: Handling Dynamically changing checkbox values

It works if i change the value to "on". But it is not correct.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.