Highlighted
Absent Member.. Absent Member..
Absent Member..
859 views

Add parameter value to web_url link

Hi

 

I have a vugen multi script. First part is SOAP request that generates ticket ID
TicketID is the name of the parameter

Second part is http_web. I have a constant url "https://myURL/ticket=

I want to add the parameter value from step 1 into that URL

 

thank you for the help!

0 Likes
2 Replies
Highlighted
Super Contributor.
Super Contributor.

Re: Add parameter value to web_url link

Hi,

There are a couple of ways that you can achieve this.

1.  Use sprtintf and lr_eval_string in the substition vlaue (%s)

2.  I 'think' you can just reference it as part of the string.  So, url value in your funciton paramater can be:   "https://myURL/ticket={YourParamaterName}",

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Add parameter value to web_url link

thanks for the reply. I tried both suggestions, and I am getting the same error with both of them:

"meory violation: Exception ACCESS_VIOLETION received

I used the following commands:

1. web_url ("MyURL/ticket={TickedID}");

2. sprintf("MyURL/ticket=", lr_eval_string("{TickedID}"));

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.