Page 1 of 1

Access the valueset labels as an array

Posted: February 28th, 2018, 1:52 pm
by AriSilva
Hi folks,
Is there a way to get the text of a specific value in the value set of a variable?
For example, if the variable has 7 entries in the valueset, I want to get the label of the (i)th entry.
Or I want to get the label of the label which is attached with the code 3.
Best
Ari

Re: Access the valueset labels as an array

Posted: February 28th, 2018, 3:58 pm
by josh
You can use the getlabel() function.

Re: Access the valueset labels as an array

Posted: March 1st, 2018, 7:16 pm
by AriSilva
Thanks, my mistake, I thought that getlabel was used only to get the variable label.
Best
Ari