I'm working with a web applicaion that, like many other web apps, has multiple dropdown boxes. As options are selected, data in the subsequent dropdowns is limited.
Being that this is a common web design element I may just be searching for the wrong solution - but my initial thought was to see if it is possible to nest a web_reg_save_param result set.
I'm dreaming that somehow I could use the following: web_reg_save_param
to capture all of the select statements - or possibly a specific one since I know which step I need to gather the variables at and then nested within that - use the following to extract my values: web_reg_save_param
I was also told to take a look at strtok but I've only seen it work with single character delimiters and within a <select> statement I couldn't find any single character that would work for me.
Just looking to be pointed in the right direction what function / statement should I be looking for?
Is this the case where I might use web_list? If so, are any examples available other than the one in vugen help?
I just noticed the web_list function and didn't see it in relation to any specific protocol...
On Mercury's site I found sample code with a function TokeniseList - It states that it was created to do what I am asking.
With a lot of trial and error and help from a great mentor - the TokeniseList function appears to be moving me in the right direction. I can use it to read through what was captured by a web_reg_save, parse out the parameters in the save and provide a random one for me to submit with the next web_submit statment.
With the web_reg_save I am capturing the full <select.... > as my LB and </select> as my RB. I then pass that to the TokeniseList function with <option value=\" and \"> as my separators in an attempt to only capture the actual value and not what is listed in the dropdown. This doesn't exactly work - but I do a check to see that what I'm saving is an int. If so it is captured - and used as a possible value to be submited - based on whatever is randomly selected. I then repeat this process for the next dropdown that is populated.