Highlighted
Super Contributor.. Super Contributor..
Super Contributor..
265 views

How to retrieve more than one Parameter values from the same row?

Hello,

Is there any function in Ajax Truclient, which can be used to retrieve multiple parameter values in the script from same row? For example: Wants to retrieve values from column 2 and column 3 but both the values are from row 1.

Thanks

 

0 Likes
1 Reply
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to retrieve more than one Parameter values from the same row?

Hi,

It is not different than how you do that in other protocols.

Define a parameter of type file, add the relevant columns and make sure the policy is set to select items from the same raw for each parameter. Each column is actually a different parameter behind the scenes.

In TruClient script you need to use Evaluate JavaScript step to retrieve the parameter value using TC.getParam API

See Parameters help for more details about parameters and TruClient API help for how to use TC.getParam API

Good luck,

Shlomi

 

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.