How to populate only country names in the reference variable

Roxi1
Tera Contributor

We have a variable in one catalog item, that reference variable is pointing to cmn_location table. when i click it is showing names of the location, instead it should show only country names in the variable

how can i achieve this.

we tried to put some value like ref_ac_columns= u_country;

but it is not working

3 REPLIES 3

Ahmmed Ali
Mega Sage

Hello @Roxi1 

 

If you want only countries to be selected then why not change variable reference to core_country table?

 

Let me know if any particular use case you are trying to achieve.

 

Thank you,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Amrit4
Tera Guru

Go to the cmn_location table. Right click on column options:

Amrit4_0-1681388647923.png

 once the page opens--> go to Table column dictionary entries. Here mark the display value for column label 'City' as 'True' and mark the display value for column label 'Name as' 'False'

 

Amrit4_1-1681388842729.png

Amrit4_2-1681388990702.png

 Then go up at the right and click on update. Make sure you click on update after changing the values.

Please be kind enough to Mark my answer correct once you implement this solution

Upsilon
Giga Guru

Hi, 

Try to use lookup select box rather than a reference variable. This way, you avoid the large impact if you change display field on cmn_location:

Upsilon_0-1681482526705.png

 

I hope it helps, 

Regards