We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Reference vs lookup select box

ryadavalli
Tera Expert

Hi,

I am trying to make a field look up select box variable type. Can I do the dot walking like current.variable_pool.reference_field.fieldnames?

The lookup selectbox gives us a nice look way than reference, but reference field has a advantage of   dot walking which I need. Is there any alternative?

Thanks,

7 REPLIES 7

TJW2
Mega Guru

No you cannot use dot walking with Select List variables.   The value of the variables is whatever you set in the 'value' box on the variable.


I usually set the 'value' field on Select Box variables to the sys_id so I have it to use if a glideRecord is needed.


ryadavalli
Tera Expert

Can I make the field on the catalog as reference and appear it as choicelist (drop down) ? I am trying to do that but not able to !!


Unfortunately No, you cannot make a Reference variable a 'dropdown'.


Displaying the Reference Field as a Choice List


what does this link mean then ?


http://wiki.servicenow.com/index.php?title=Auto-Complete_for_Reference_Fields#Displaying_the_Referen...