- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2018 01:39 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2018 01:46 PM
Try this:
var currencycode = "USD";
var cost = 1040;
current.cost.setValue(currentcode + ';' + cost);
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2018 01:45 PM
You can try
current.cost.setDisplayValue(1040);
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2018 01:46 PM
Try this:
var currencycode = "USD";
var cost = 1040;
current.cost.setValue(currentcode + ';' + cost);
Thanks