|
web_reg_save_param("Analytic_TaskID",
"LB=<a href='#' onclick=\"OpenDoTaskWindow('",
"RB='",
"Search=Body",
"Ord=All",
"IgnoreRedirections=Yes",
LAST);
...
...
int i=0;
int j=0;
i=atoi(lr_eval_string("{Analytic_TaskID_count}"));
for(j=1;j<=i;j++)
{
sprintf(temp,"{Analytic_TaskID_%d}",j);
lr_output_message("Analytic_TaskID_%d is %s:%s",j,lr_eval_string(temp),temp);
...
...
web_submit_data(
...
"Name=taskID", "Value=temp", ENDITEM,
''');
}
日志信息
the count of Analytic_TaskID is 2
Action.c(141): Analytic_TaskID_1 is 20100108095833CP20100108094738:{Analytic_TaskID_1}
web_submit_data失败...
当我把sprintf(temp,"{Analytic_TaskID_%d}",j);
改成sprintf(temp,"Value={Analytic_TaskID_%d}",j);
后面web_submint_date里改为"Name=taskID", temp, ENDITEM,就能够通过。我现在想用{Analytic_TaskID_%d}
这个动态值在别的地方,所以我不想用第二种方法。。。
我也用了 lr_save_string(temp,"temp1");将其保存在参数里,再在web_submit_data里面用,但是还是不行,
请各位大侠教教我该怎么办啊? |
|