BI Publisher (MOSC)

MOSC Banner

Re-grouping XML and grand totals

edited Feb 17, 2015 4:13PM in BI Publisher (MOSC) 6 commentsAnswered

Hello,

First time trying to do this, so bear with me.

I have a flat xml like:

<G_4>

<PLANT_CODE>

<CUST_NAME>

<CUST_CODE>

<INV_NUMBER>

<INV_VALUE>

<TOTAL_DUE>

<FRM_1_30>

<FRM_31_60>

<OVER_60>

</G_4>

So, this is at the Invoice Number grain. Now, the user wants a summarized view at the CUST_NAME level. So in SQL terms, GROUP BY CUST_NAME and show SUM(TOTAL_DUE), SUM(FRM_1_30) etc.

Reading up the report designers guide, I saw that in an RTF template, I would do :

<?for-each-group:G_4;./CUST_NAME?><?sort:current-group()/CUST_NAME;'ascending';data-type='text'?>

And then for the summary fields do something like:

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