How to add currencies of the world to a field?

RohanDS
Tera Contributor

Hello peeps,

I have a requirement where I need to define a variable on a catalog item that would show all the currencies of the world. For eg:

Field name: Please select the currency in which the project is being performed.

Drop down or reference should be: USD, EUR, INR, CAD, etc,,,

Is this possible? Do we have predefined table for this?

2 ACCEPTED SOLUTIONS

Karan Chhabra6
Mega Sage
Mega Sage

Hi @RohanDS ,

 

You can leverage the 'fx_currency' table for this, create a field of type reference and refer to the 'fx_currency' table.

KaranChhabra6_1-1683752716237.png

 

Output:

KaranChhabra6_2-1683752906649.png

 

 

If my answer has helped with your question, please mark it as correct and helpful

 

Thanks!

 

 

View solution in original post

Hi @RohanDS ,

 

You can add a variable attribute for this reference field, use this line as variable attribute:

ref_ac_columns=name,ref_ac_columns_search=true,ref_ac_order_by=name,ref_auto_completer=AJAXTableCompleter

KaranChhabra6_0-1683822136406.png

Output:

KaranChhabra6_1-1683822196886.png

 

If my answer has helped with your question, please mark it as correct ans helpful

 

Thanks!

 

 

View solution in original post

5 REPLIES 5

Karan Chhabra6
Mega Sage
Mega Sage

Hi @RohanDS ,

 

You can leverage the 'fx_currency' table for this, create a field of type reference and refer to the 'fx_currency' table.

KaranChhabra6_1-1683752716237.png

 

Output:

KaranChhabra6_2-1683752906649.png

 

 

If my answer has helped with your question, please mark it as correct and helpful

 

Thanks!

 

 

Thank you Karan! That was indeed helpful.

In addition to this, can I display two values from two different columns? I know we can mark only one value as true but I wanted the code as well as the country name to be displayed from the same fx_currency table.

Hi @RohanDS ,

 

You can add a variable attribute for this reference field, use this line as variable attribute:

ref_ac_columns=name,ref_ac_columns_search=true,ref_ac_order_by=name,ref_auto_completer=AJAXTableCompleter

KaranChhabra6_0-1683822136406.png

Output:

KaranChhabra6_1-1683822196886.png

 

If my answer has helped with your question, please mark it as correct ans helpful

 

Thanks!