Siebel Open UI, Tools, Scripting and EAI (MOSC)

MOSC Banner

sum function in BIP

edited Nov 30, 2018 12:30AM in Siebel Open UI, Tools, Scripting and EAI (MOSC) 4 commentsAnswered

I am trying to sum up the tag value under for loop, but its not giving the desired sum.Have tried below options

1.<?for-each:TsOrderEntry-LineItems?><?SBTSTotalMRCWithVAT?><?end-for-each?>

<?sum(SBTSTotalMRCWithVAT)?>

2.

Decalring the Varible :<?xdoxslt:set_variable($_XDOCTX, 'var', 0)?>

Do the calculation :<?xdoxslt:set_variable($_XDOCTX,'var', xdoxslt:get_variable($_XDOCTX,'var‘)+ SBTSTotalMRCWithVAT)?>

Display the Variable : <?xdoxslt:get_variable($_XDOCTX, 'var')?>



attached is the xml where i need to sum up "SBTSTotalMRCWithVAT" tag value

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center