Hi experts,
Is it possible to utilize multiple 'Math.round' statements in expression binding? I can't get it working for the life of me.
The following works perfectly;
value='{= Math.round(((${ApplicationModel>Info} / 1000) * ${ApplicationModel>Quantity})*100)/100} {ApplicationModel>UoM}'
But when I add an extra layer of complexity, and have a different calculation depending on the Item type, it doesn't work;
value='{=${ApplicationModel>Item}!=="PV Panels" ? {= Math.round(((${ApplicationModel>Info} / 1000) * ${ApplicationModel>Quantity})*100)/100} {ApplicationModel>UoM} : {= Math.round((${ApplicationModel>Info} * ${ApplicationModel>Quantity})*100)/100 {ApplicationModel>UoM} }'
Any ideas? Is it possible?
Cheers,
Ryan
Request clarification before answering.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.