Highlighted
New Member.
1167 views

how to extract the value captured in by a correlation parameter.

Hi

I am having a correlation parameter as

web_reg_save_param("PageNo","LB=aria-label='Current Page. Page ","RB= </a>\n","Savelen=1","SaveOffSet=5","ORD=1",LAST);

here the PageNo is capturing only a single value as "9"

how can i capture this value into an integer

I have tried

int PageNo_cap;

pageNo_cap=atoi(lr_eval_string("{PageNo}"));

but getteng an error

Please help me to solve this

Regards

PINNK

0 Likes
1 Reply
Highlighted
Honored Contributor.
Honored Contributor.

Re: how to extract the value captured in by a correlation parameter.

Hi,

 

Use lr_save_int for pageNo_cap to pass into the script in integer format.

 

Regards,

Raghul M

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.