How to get Display Value of selected variable whose type is Lookup Select Box on the Record Producer?

Raffy
Tera Contributor

HRSD Record Produce has a variable whose type is 'Lookup Select Box' referring the HR COR CASE Category field.

On the Record Producer's Script, I would like to set the HR Case's short description using the selected variable from the RP.

The trial 'var reqType = producer.getDisplayValue('category') + ''; and //var reqType1 = producer.category.getDisplayValue() + ''; returns option value, rather than Display option Text.

My last trial would be to query again on the source of Lookup Select Box data and find the display value matched on the selected value, but it looks so redundant approach.

Any comments and helpful feedback?

Thank you in advance.

 

Moon1

 

1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

Following should work. 

producer.category.getDisplayValue();

 

Do you have the Lookup label fields set to the correct field in the variable category?find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

2 REPLIES 2

Willem
Giga Sage
Giga Sage

Can you convert the Lookup Select Box to a Reference variable? That way you can use getDisplayValue like you described.

SanjivMeher
Kilo Patron
Kilo Patron

Following should work. 

producer.category.getDisplayValue();

 

Do you have the Lookup label fields set to the correct field in the variable category?find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.