Highlighted
Absent Member.
Absent Member.
222 views

About Correlation

Hi

 

i am getting different boundries for Payment option and  my code is

 

    // <li class="first-child"><a href="#a" onClick="javascript&colon;fnpaymode(1);" class="sel">Credit Cards</a></li>
    web_reg_save_param("Payment_Method1","LB=sel\">","RB=</a></li>","ORD=ALL",LAST);
    
    //<li><a href="#b" onClick="javascript&colon;fnpaymode(2);">Debit Cards</a></li>
    web_reg_save_param("Payment_Method2","LB=;\">","RB=</a></li>","ORD=ALL",LAST);

 

Now my concern is how can i combine the Payment_Method1 &Payment_Method2

 

 

Thanks in Advance

0 Likes
3 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: About Correlation

Hi 

 

You can define a regex for both case , see example : 

 

web_reg_save_param_regexp(
        "ParamName=Payment_Method",
        "RegExp=fnpaymode[(][0-9]+[)];\"[ class=\"sel\"]*>([a-zA-Z ]+)</a>",
        "Ordinal=all",
        SEARCH_FILTERS,
        "Scope=Body",
        LAST);

 

 

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: About Correlation

Hi

 

Thank u so much for your reply

 

if you don't mind can u explain the RegExp in detail please

 

 

 

 

Thanks in advance

 

 

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: About Correlation

Hi Orenga

 

I have several buses with several  boarding points for each one. i have structed to get boarding points on each bus. i am getting default boarding points.

 

my concer is

 

Example :

 

Bus A have 1,2,3,4 boading points and bus B have 5,6,7,8 boarding points but when select the  bus B i am getting boarding points of Bus A(1,2,3,4).

 

so how can get bus B Boarding points(5,6,7,8)

 

 

My code here;

 

For Bus:

 

//<h2 class='TravelAgntNm' title='APSRTC'>APSRTC</h2><a href='javascript&colon;void(0);' rel='' class='canclbtn custom-width cancel' id='canclP249285670'>Cancellation Policy  </a>
    web_reg_save_param("Buses","LB='>","RB=</h2><a href='","ORD=ALL",LAST);

 

Random Function

 

lr_save_string(lr_paramarr_random("Buses"),"Buses1");
lr_output_message("The Selected Bus is ::: %s",lr_eval_string("{Buses1}"));

 

For Boarding Points:

//<option value="151^MARATHALLI (M) 8453415795  080 - 22971202 / 03 /04 /05 /06^07:45 PM^NEAR BMTC BUS STAND,MARATHALLI,BENGALURU-560037 +918453415795 , 080 - 25401882 , 42099909 SINOSH TOURS & TRAVES OPP  KALAMANDIR^^">MARATHALLI (M) 8453415795  080 - 22971202 / 03 /04 /05 /06-07:45 PM</option>
    web_reg_save_param("Boarding_point","LB/IC/DIG=value=\"##^","RB=^^\">","ORD=ALL",LAST);

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.