lr关联失败
<input type="text" disabled="true" value="04/28/12 09:57:11" style="width: 50%" name="entity.registrationDateStr" id="registrationDateStr"></input>这是服务器返回的信息,其中04/28/12 09:57:11这个时间需要关联,关联函数
web_set_max_html_param_len("999999");
web_reg_save_param("WCSParam_Diff2",
"LB=input type=\"text\" disabled=\"true\" value=\"",
"RB=\" style=\"width: 50%\" name=\"entity.registrationDateStr\"id=\"registrationDateStr\"", "Search=Body",
LAST);
可是每次运行都提示失败
Action.c(713): Error -26377: No match found for the requested parameter "WCSParam_Diff2". Check whether the requested
boundaries exist in the response data. Also, if the data you want to save exceeds 999999 bytes, use
web_set_max_html_param_len to increase the parameter size
Action.c(713): web_url("0") highest severity level was "ERROR", 3274 body bytes, 179 header bytes, 17 chunking overhead bytes
不加web_set_max_html_param_len("999999");
时的错误是:
Action.c(711): Error -26377: No match found for the requested parameter "WCSParam_Diff2". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(711): web_url("0") highest severity level was "ERROR", 3274 body bytes, 179 header bytes, 17 chunking overhead bytes
求路过的高人停下脚步,帮忙看看,先谢了 首先你要确定关联函数是不是放对地方了。
如果放对地方了,而且服务器正确返回的话,你可以把关联的边界值放宽,然后把取到的结果打印出来,看看是不是某个地方有不可见的字符。 回复 3# anna03
谢谢你的回复
可以肯定是的关联位置没有错,早上打印了一下日志:
\t\t<form enctype="multipart/form-data" action="/psmanage.cform" method="post" name="cform
Action.c(712): " id="cform"><div class="t-invisible"><input value="H4sIAAAAAAAAAFvzloEVAN3OqfcEAAAA" name
Action.c(712): ="yx:formdata" type="hidden"></input></div><div id="content"><table cellspacing="0" cellpa
Action.c(712): dding="0" border="0" width="100%" class="searchtab"><tr><td colspan="4" nowrap="nowrap" he
Action.c(712): ight="28" class="inputico"><span>New Work Order</span></td></tr><tr><td nowrap="nowrap" he
Action.c(712): ight="32" width="15%" class="td_title"><span>No.</span><span class="red12b">*</span></td><
Action.c(712): td nowrap="nowrap" width="35%"><input type="text" disabled="true" value="S2012050211853" s
Action.c(712): tyle="width: 50%" name="entity.sheetCode" id="sheetCode"></input></td><td nowrap="nowrap"
Action.c(712): width="15%" class="td_title"><span>Department</span></td><td nowrap="nowrap" width="35%"><
Action.c(712): input type="text" disabled="true" style="width: 50%" name="entity.deptName" id="deptName">
Action.c(712): </input></td></tr><tr><td nowrap="nowrap" height="32" class="td_title"><span>Requester</sp
Action.c(712): an></td><td nowrap="nowrap"><input type="text" disabled="true" value="Administrator" style
Action.c(712): ="width: 50%" name="entity.regUserName" id="userName"></input></td><td nowrap="nowrap" hei
Action.c(712): ght="32" class="td_title"><span>Telephone</span></td><td nowrap="nowrap"><input type="text
Action.c(712): " disabled="true" value="000000" style="width: 50%" name="entity.phoneNumber" id="phoneNum
Action.c(712): ber"></input></td></tr><tr><td nowrap="nowrap" height="32" class="td_title"><span>Request
Action.c(712): Time</span><span class="red12b">*</span></td><td nowrap="nowrap"><input type="text" disabl
Action.c(712): ed="true" value="05/02/12 09:33:51" style="width: 50%" name="entity.registrationDateStr" i
Action.c(712): d="registrationDateStr"></input></td><td></td><td></td></tr><tr><td nowrap="nowrap" height
Action.c(712): ="32" class="td_title"><span>Category</span><span class="red12b">*</span></td><td nowrap="
Action.c(712): nowrap" width="21%"><select style="width: 50%" name="entity.type" id="type"><option select
Action.c(712): ed="selected" value="">-- Select --</option><option value="PROCESS_SHEET_DAILY">Daily Main
Action.c(712): tain</option><option value="PROCESS_SHEET_URGENCY">Temporary Task</option></select></td><t
Action.c(712): d nowrap="nowrap" height="32" class="td_title"><span>Priority</span><span class="red12b">*
Action.c(712): </span></td><td nowrap="nowrap"><select style="width: 50%" name="entity.priority" id="prio
Action.c(712): rity"><option selected="selected" value="">-- Select --</option><option value="Critical">C
Action.c(712): ritical</option><option value="low">Low</option><option value="mediun">Medium</option><opt
Action.c(712): ion value="high">High</option></select></td></tr><tr><td valign="top" nowrap="nowrap" heig
Action.c(712): ht="32" style="padding-top:5px;" class="td_title"><span>Content</span><span class="red12b"
Action.c(712): >*</span></td><td colspan="3" nowrap="nowrap"><textarea rows="3" cols="45" style="width: 8
Action.c(712): 0%" name="entity.str36" id="str36"></textarea></td></tr><tr><td nowrap="nowrap" height="32
Action.c(712): " width="12%" class="td_title"><span>Planned Start</span><span class="red12b">*</span></td
Action.c(712): ><td><input readOnly="readOnly" type="text" style="width: 50%" name="entity.expectedStartD
Action.c(712): ate" id="expectedStartDate"></input><script language="javascript" type="text/javascript">C
Action.c(712): alendar.setup({inputField:'expectedStartDate', trigger:'expectedStartDate', onSelect:funct
Action.c(712): ion(){ this.hide() }, showTime:24,dateFormat:top.gTxt('CM_DATETIME_PICKER_DATETIME'), time
Action.c(712): :'0'});</script></td><td nowrap="nowrap" height="32" width="12%" class="td_title"><span>Pl
Action.c(712): anned Finish</span><span class="red12b">*</span></td><td><input readOnly="readOnly" type="
Action.c(712): text" style="width: 50%" name="entity.expectedFinishDate" id="expectedFinishDate"></input>
Action.c(712): <script language="javascript" type="text/javascript">Calendar.setup({inputField:'expectedF
Action.c(712): inishDate', trigger:'expectedFinishDate', onSelect:function(){ this.hide() }, showTime:24, Action.c(712): dateFormat:top.gTxt('CM_DATETIME_PICKER_DATETIME'), time:'2359'});</script></td></tr><tr><
Action.c(712): td nowrap="nowrap" class="td_title"><span>Approved by</span><span class="red12b">*</span><
Action.c(712): /td><td nowrap="nowrap"><input readOnly="true" type="text" style="width:50%" name="entity.
Action.c(712): currActorUsername" id="currActorDisplay"></input><a href="javascript: void(0);" onclick="j
Action.c(712): avascript: selectMultiUser('currActorDisplay','currActor');">Select</a></td><td></td><td><
Action.c(712): /td></tr><tr><td valign="top" nowrap="nowrap" style="padding-top:2px;" class="td_title"><s
Action.c(712): pan>Configuration Item</span></td><td nowrap="nowrap"><table cellspacing="0" cellpadding="
Action.c(712): 0" border="0" style="width:100%;" id="loop_table"></table></td><td valign="top" align="rig
Action.c(712): ht" style="padding-top:2px;"><input type="button" value="Add" onclick="javascript:ajaxAddR
Action.c(712): ow('-2037135994', 'loop_table', 'null' )" class="tablebut_2font"></input></td><td></td></t
Action.c(712): r></table><input type="hidden" name="entity.id" id="sheetId"></input><input type="hidden"
Action.c(712): value="Administrator" name="entity.regUserName" id="sheetRegistrantUserName"></input><inpu
Action.c(712): t type="hidden" name="entity.regLoginName" id="sheetRegistrantLoginName"></input><input ty
Action.c(712): pe="hidden" name="entity.record.currActor" id="currActor"></input><table cellspacing="0" c
Action.c(712): ellpadding="0" border="0" align="center" width="99%"><tr><td align="right"><input type="su
Action.c(712): bmit" value="Submit" class="edit_button" name="submitBtn" id="submitBtn"></input></td></tr
Action.c(712): ></table><input type="hidden" value="17" name="entity.instanceId" id="instanceId"></input>
Action.c(712): <input type="hidden" name="entity.nodeId" id="nodeId"></input><input type="hidden" name="e
Action.c(712): ntity.taskId" id="taskId"></input><input type="hidden" name="entity.workflowInstanceId" id
Action.c(712): ="workflowInstanceId"></input><input type="hidden" value="1" name="entity.orgId" id="orgId
Action.c(712): "></input><input type="hidden" value="1" name="entity.registrant" id="registrant"></input>
Action.c(712): <input type="hidden" value="05/02/12 09:33:51" name="entity.registrationDateStr" id="regis
Action.c(712): trationDateStr"></input><input type="hidden" value="S2012050211853" name="entity.sheetCode
Action.c(712): "></input><input type="hidden" name="entity.creationBy" id="creationBy"></input><input typ
Action.c(712): e="hidden" name="entity.creationDate" id="creationDate"></input><script language="javascri
Action.c(712): pt" type="text/javascript">function setRegistrant(){$("currActor").value = "";$("currA
Action.c(712): ctorDisplay").value = "";}setRegistrant();</script></div><div name="message"></div><script
Action.c(712): language="javascript" type="text/javascript"></script><input value="H4sIAAAAAAAAAJVWz28bR
Action.c(712): RSebOw4NpX6C1UKlDalVHalaOMKKlAsKFEgaiQXUArqAaF2sjOxp5mdWWbG9rolSIAQfwEHJOCAEBdzAf4C6AFxqvh
Action.c(712): x4gQXqlblygGkljezXq9TYuPsYT3vzcz33vvme7P+8k+U1wqdCWToXzPUZ9pQTLo+oZo1BFX+plShH0pCuR9IYTCzz
Action.c(712): nXZebbXY98UPpj10FQdFQLJW6HQBh2oX8VtvNgyjC/WAawWK1SbBJxyGlJh/OUNbRQOzIuJ/fHyV7fv9Y7d9dDcGip
Action.c(712): yKaMV2RKmjvKYA4ZBh5KAHIvG4kWjmGjU6qgYcKz1Szikb6K30XQdzTQpazRN3/IY6Y+KTBAar3Lc6DtyNkR/nHeZp
Action.c(712): SudYUuyDqg5JzL4WSmCJmSQ2gWwOQu2+mZJCrLBhz0zUjQpTwMVpdiiXSI7ItsAjkhRrTNE8LTSHQ9JEcqWpkN7Ulc
Action.c(712): o2zSDcS7ZMg8sgjUqC+5cA+y8Nl0+qKyNFcMbnBq0f+hoL+AIaM53GDFNtzKOEDxRFIEELIWXjbp88rpjd9ugvBsYl
Action.c(712): DOqBUgH4WCZ6foBW6ccGyYFSPCwRfctur+sFO5aquN3fnrso+/xJ9Noag3lNLtGkzidHLxKcbTjAYyDGcZ5rJuQZb7
Action.c(712): w67c3jlz5cRp5q6jEJSarIC6pQEymCfw2JSdxdO55i4r2dWbhfcAO48gxX4Khl0QD+Kf21iUrrine//yHk595bx33U
Action.c(712): C5pFB3h9MxmhOwonBJfULIzPNl2Ek/oVejc3oKnfbSSek7c/Pr+p//0vnANO9tvN1fkVGzf3n14ot0eg465g146Wz1
Action.c(712): VC7FqMLFUrc1HmBBoNxg6lH1jSZwekPjkJHVsMsqJ/ypoZtWOfn/k7+eeuXXoZpK7gm0vC95NmXl6csSUFYf613e3b
Action.c(712): x2/dKfnOaETpq3OSSZ8zgg2aSPkwW4lxg66DHo0k/HrqeTfAG3b6yeh7/H/6H3XhRnfpYTvM9XqqdHc9jV/dvLqzzN
Action.c(712): CqHC1z/22zt5975cPPUCyEY4MypkbkeUaSXKbH19MsixrynHpu8mjg8gnRkCuwCk0pOqmGVTGZ7Bz+WSZZOnsH9kGY
Action.c(712): xB2uSv2IPM6E1vuUC5R9PMfwb0bTpA5uJ4206vAQNdR8z9SHMinY69BHSgWmaV5Da0O1wALA1Ypjzy08sKoOavO0bM
Action.c(712): Z2eXTtYm4Mujh4fTakpFKFfYadPSJ6yF88XCDLgF5oRT+hhF+kv+2A6y4Sg0qAnnUULgvs6JfG0LFV3H8glsC/1Qqp
Action.c(712): sn0wnw5sMSXYbD4ysULWEAYa9jPjP3N6gMrrXDCkuzEwsgCkly3E539C6ZM8S5wCQAA" id="-2037135994" type
Action.c(712): ="hidden"></input>\n
其中红色的两处为需要关联信息
对应脚本为:
web_reg_save_param("WCSParam_Diff1",
"LB=input type=\"text\" disabled=\"true\" value=\"",
"RB=\" style=\"width: 50%\" name=\"entity.sheetCode\" id=\"sheetCode\"",
"Search=Body",
LAST);
web_reg_save_param("WCSParam_Diff2",
"LB=input type=\"text\" disabled=\"true\" value=\"",
"RB=\" style=\"width: 50%\" name=\"entity.registrationDateStr\"id=\"registrationDateStr\"",
"Ord=All",
"Search=Body",
LAST);
web_url("0",
"URL=http://10.18.223.146:8080/PSManage/edit/SHEET_PROCESS/pmsheetapplyfor/0",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.18.223.146:8080/FrameLeftMenu/46/-100/-100",
"Snapshot=t75.inf",
"Mode=HTTP",
LAST);
其中第一个关联函数能取到值,第二个关联函数取不到值,我现在怀疑是第二关联函数有特殊字符‘/’可不知道如何解决这个问题 是不是\应该用\\?或者你把边界值取短一点看看,能关联到东西不?
页:
[1]