Unable to update value in FX Currency Field

RathanS
Tera Contributor

Hello Team,

 

I am trying to update FX Currency Field by using this method :

current.total_amount.setDisplayValue('USD; 1000');

 

In my case I am storing the number value(1000) in a variable see below:

var negotiatedAmount = '1000';

current.total_amount.setDisplayValue('USD;negotiatedAmount');

I am passing "negotiatedAmount" variable in the above method but it is not working.

 

I had tried with "negotiatedAmount" variable as string and number type but it is not updating.

If I give  amount direclty like this current.total_amount.setDisplayValue('USD; 1000'); it gets updated.

 

Any help will be appreciated and thanks in advance.

 

 

 

0 REPLIES 0