这应该是一个非常简单的修复,我根本无法弄清楚并且需要帮助。我有一个记录提交记录的脚本。当用户单击提交按钮时,此记录提交会生成一个唯一的 ID。生成的 ID 用于新表单。
过去我可以简单地使用“web_reg_save_param”并且该值将被保存。但是,在这种情况下,直到提交记录后才会给出该值。所以我无法像过去那样从 URL 中捕获它。
以下是记录的内容,然后我将我尝试过的内容和警告消息包含在调试中。如果需要任何进一步的说明,请告诉我。
提前谢谢您。
web_submit_data("subpage",
"Action=somewebsite.com/subpage",
"Method=POST",
"RecContentType=text/html",
"Referer=somewebsite.com/subpage?id=xxxxx1",
"Mode=HTML",
ITEMDATA,
//this value is what I need to be correlated
"Name=recordID", "Value=c39d54a59112fcb223978bb6869d47d2", ENDITEM,
//other values that are present on the form which can be reused
"Name=variable", "Value=someValue", ENDITEM,
LAST);
I've tried to do the following -
web_reg_save_param("ID","LB=recordID=","RB=&","Search=All","NotFound=ERROR",LAST);
web_submit_data("subpage",
"Action=somewebsite.com/subpage",
"Method=POST",
"RecContentType=text/html",
"Referer=somewebsite.com/subpage?id=xxxxx1",
"Mode=HTML",
ITEMDATA,
//this value is what I need to be correlated
"Name=recordID", "Value={ID}", ENDITEM,
//other values that are present on the form which can be reused
"Name=variable", "Value=someValue", ENDITEM,
LAST);
But the "ID" is coming up as blank.
Warning: The string 'ID' with parameter delimiters is not a parameter.
最佳答案
我能够使用:
web_reg_save_param_ex(
"ParamName=recordID",
"LB=id=\"id\" value=\"",
"RB=\" type",
SEARCH_FILTERS,
"Scope=Body",
"IgnoreRedirections=No",
"RequestUrl=*/subpage*",
LAST);
关于c - Hp VuGen 11.5 基本相关空白值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30958352/