Highlighted
Frequent Contributor.
Frequent Contributor.
854 views

Parameterizing values in dropdown in Truclient

Hello All,

I was trying to parameterize the values from drop down in Truclient.

Its the address which I have to type it then it will fetch the related addresses where I have to select any address.

I tried parameterizing this , It didnt work. Can anyone let me know how will we parameterize the values in Truclient. 

I was using TC.getParam("Address") instead of the actual address, however it didnt worked. 

Pls suggest.

Screenshot attached for reference.

 

0 Likes
3 Replies
Highlighted
Valued Contributor.
Valued Contributor.

Re: Parameterizing values in dropdown in Truclient

Hi,

Please try the following in the JavaScript editor:

var path = "//li[text()=\"" + ArgsContext.TC.getParam("ParamName") + "\"]";
evalXPath(path);

*ParamName is the name of the parameter you would like to use.

Thanks,

Einat.

Highlighted
Respected Contributor.
Respected Contributor.

Re: Parameterizing values in dropdown in Truclient

Hi Rony,

Try these simple steps below:

1. Create parameter file with values as needed in VU Generator itself before clicking Develop Script mode.

2. Click Develop Script and go to step where to use this one, click that step -> Go to the Value in Arguments section for that step and copy this LR.getParam('Lognumber') Note: Lognumber is my parameter name, use your own parameter name there.

Kndlt let me know whether it works or not.

Thanks!

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Parameterizing values in dropdown in Truclient

Vas, what LR version are you using? this is not applicable in LR12. There is no such thing as "Value" under the Arguements section if the step action is not "Type". 

Einat's solution is the correct way how to do it.

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.