Community in read only mode June 18 & 19
This community will be set in READ ONLY mode for a while on Tuesday June 18 into Wednesday June 19 while we import content and users from our Micro Focus Forums community site. MORE INFORMATION
NIRALI
Member.
157 views

CORRELATION OF DYNAMIC BOUNDARY

plz help me to correlate dynamic values

I have these types of valure

"Name=chat_with_user_id", "Value=1052", ENDITEM,
  "Name=chat_from_user_id", "Value=1069", ENDITEM, 

second method

"Name=fromUser_id", "Value=1069", ENDITEM,
  "Name=toUser_id", "Value=1052", ENDITEM,

i have tried to mannualy correate it  like

web_reg_save_param(
                "ParamName=user_id",
                "LB/IC=chat_with_user_id\=",
                "RB/DIG=1###",
                "Ordinal=All",
                LAST);

"Name=chat_with_user_id""Value={user_id}"ENDITEM//1052
        "Name=chat_from_user_id""Value={user_id}"ENDITEM//1069

    "Name=fromUser_id""Value={user_id}"ENDITEM,
        "Name=toUser_id""Value={user_id}"ENDITEM,

 

output is

 Error -26377: No match found for the requested parameter "ParamName=user_id". Either the specified boundaries were not found in the response or the matched text is longer than current max html parameter size of 841 bytes. The total length of the response is 22 bytes. You can use "web_set_max_html_param_len" to increase the max parameter size.      [MsgId: MERR-26377]

 

help????

0 Likes
2 Replies
h2o_2 Honored Contributor.
Honored Contributor.

Re: CORRELATION OF DYNAMIC BOUNDARY

It might an issue with teh whitespace. try to compare.

You  can always try using the forms option rather than LB/RB option or use regular exp.

0 Likes
Highlighted
vivek5 Respected Contributor.
Respected Contributor.

Re: CORRELATION OF DYNAMIC BOUNDARY

Hi Nirali,

You can use the below regular expression with Web_reg_save_param_regex function.

Regular Expression -  \"Name=chat_[a-z]*_user_id\", \"Value=(.*?)\",\sENDITEM

Ex- 

web_reg_save_param_regexp (

    "ParamName=Correlation1",

    "RegExp=\"Name=chat_[a-z]*_user_id\", \"Value=(.*?)\",\sENDITEM",

    "Ordinal=All",

 

LAST );

Try this once and let me know if it works.

Thanks,

Vivek

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.