cancel
Showing results for 
Search instead for 
Did you mean: 

Expression Binding Issue - Multiple Math.Rounds

02-18-2021 6:44 AM
209 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (0)

Answers (0)