Business Rule : Set currency value on insert

jay_t
Kilo Explorer

Hi All,

 

How can i set a value on a currency field on insert.? I know this type of field is based on decimals. I just don't know how to get around it.

Table : alm_asset

Field : cost

Type : currency

Format :   USD;1040

1 ACCEPTED SOLUTION

Rahul Jain11
Kilo Guru

Try this:

var currencycode = "USD";

var cost = 1040;

current.cost.setValue(currentcode + ';' + cost);

 

Thanks

View solution in original post

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

You can try 

current.cost.setDisplayValue(1040);

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

Rahul Jain11
Kilo Guru

Try this:

var currencycode = "USD";

var cost = 1040;

current.cost.setValue(currentcode + ';' + cost);

 

Thanks