I am using QALoad version 5.6. Can DO_GetFormValueByName() and DO_SetValue() be used in a WWW HTTP Visual script (c++)?
Using the vistree to variablize CGI parameters into a rule generates:
__xx = Get(REPLY, STRING, receedingstring,followingstring);
These search rules are a pain and some of our forms are created using single quotes and some use double quotes in the hidden field definition.
Is there a way when generating a visual script to have it build the Get() and Set() variablization for all fields automatically? I understand something like this may have been available in prior releases automatically generating the DO_GetFormValueByName() and DO_SetValue() handling...
Is there a way to convert (using 5.6) to a non visual script for WWW?
Re: DO_GetFormValueByName 5.6 in Visual Scripting hid
No and no. Unfortunately Cpwr (in their infintite wisdom) decided to make scripting more work. I myself will never understand why they cannot have automatic parsing like they used to...
Once you create a rule for your cgi values, it should work for you the next time you record a script though...
I believe that you could use DO_GetFormValueByName() - it compiles anyhow, but you may have to deal with some null terminated string type issus since you can't pass it CLoadString types but all cpp functions are expecting CLoadString types. But since there is no automatic parsing, why wouldn't you just sue the GET and SET cpp commmands?
I'm sure that you cannot use DO_SetValue() since that is for DO_HTTP (EZ scripts) and not Post_To or Navigate_To from Visual Nav cpp scripts.
A problem is a difference between what is perceived and what is desired, that
we want to reduce (Dewey 1933)