Highlighted
Absent Member.
Absent Member.
184 views

Help with web_reg_save_param LB

Jump to solution
Can someone assist with the LB for this string?

Electronics (1049)

I am trying to parameterize the link name 'Electronics (1049)' as the number can change dynamically. Any assistance will be greatly appreciated!
0 Likes
1 Solution

Accepted Solutions
Highlighted
Established Member..
Established Member..

Re: Help with web_reg_save_param LB

Jump to solution
Hi Joekl,

Is this from server response?
I believe you want to correlate value 1049?
If yes then you can try to find first time occurrence of this value in body of the server response. once you find this value in server response select value or whole thing "Electronics (1049)" right click and select create parameter. It will be correlated the value automatically.

Check out the server response in tree view.

Or you can try below one if you know on what request this value gets generated.

Place below code just above the request where this (1049) value gets generated.

web_reg_save_param("NewParam",
"LB=OmniturePageName=categorybrowse\">",
"RB=",
Ord=1;
LAST);

//Order you need to find out try Ord=all to get the order or value

Good Luck!!!!


Thanks,
Champ




View solution in original post

0 Likes
3 Replies
Highlighted
Established Member..
Established Member..

Re: Help with web_reg_save_param LB

Jump to solution
Hi Joekl,

Is this from server response?
I believe you want to correlate value 1049?
If yes then you can try to find first time occurrence of this value in body of the server response. once you find this value in server response select value or whole thing "Electronics (1049)" right click and select create parameter. It will be correlated the value automatically.

Check out the server response in tree view.

Or you can try below one if you know on what request this value gets generated.

Place below code just above the request where this (1049) value gets generated.

web_reg_save_param("NewParam",
"LB=OmniturePageName=categorybrowse\">",
"RB=",
Ord=1;
LAST);

//Order you need to find out try Ord=all to get the order or value

Good Luck!!!!


Thanks,
Champ




View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Help with web_reg_save_param LB

Jump to solution
ajay.x.kumar - That worked beautifully with a couple slight modifications.

I used:

web_reg_save_param("NewParam",
"LB=OmniturePageName=categorybrowse\">Electronics",
"RB=",
"Ord=1",
"Search=all",
LAST);

Thanks!
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Help with web_reg_save_param LB

Jump to solution
Closing thread - Solution found...
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.