I am having trouble getting to grips with the basics of creating Excel templates for Oracle BI Publisher.
I am working in disconnected mode. I can load the sample XML data fine and select fields, but my output will have all values of the named field in the one cell. How do I get each value to fill a cell within the column?
Firstly, here is the sample XML data:
<?xml version = '1.0' encoding = 'utf-8'?>
<!--Generated by Oracle BI Publisher -Dataengine, datamodel:__891572_Temp1_xdm -->
<DATA_DS>
<G_1>
<EXPENDITURE_TYPE_NAME>Accruals</EXPENDITURE_TYPE_NAME><EXPENDITURE_TYPE_ID>300000001811328</EXPENDITURE_TYPE_ID>
</G_1>
<G_1>
<EXPENDITURE_TYPE_NAME>Accruals sub contractors</EXPENDITURE_TYPE_NAME><EXPENDITURE_TYPE_ID>300000001811332</EXPENDITURE_TYPE_ID>
</G_1>
<G_1>
<EXPENDITURE_TYPE_NAME>Basic</EXPENDITURE_TYPE_NAME><EXPENDITURE_TYPE_ID>300000001803121</EXPENDITURE_TYPE_ID>
</G_1>
<G_1>
<EXPENDITURE_TYPE_NAME>Data Migration</EXPENDITURE_TYPE_NAME><EXPENDITURE_TYPE_ID>300000001811336</EXPENDITURE_TYPE_ID>
</G_1>
<G_1>
<EXPENDITURE_TYPE_NAME>Delivery Drivers</EXPENDITURE_TYPE_NAME><EXPENDITURE_TYPE_ID>300000001811353</EXPENDITURE_TYPE_ID>
</G_1>
</DATA_DS>
Here is a screenshot of the previewed output. It contains the 5 values within the sample data, but all within one cell.
Here is the XDO metadata:
Version
ARU-dbdrv
Extractor Version
Template Code
Template Type TYPE_EXCEL_TEMPLATE
Preprocess XSLT File
Last Modified Date
Last Modified By
Data Constraints:
XDO_?XDOFIELD1? <?EXPENDITURE_TYPE_NAME?>
If I try to apply grouping on this field, it does place values into separate cells within the one column, but it just applies the first value in the sample data repeatedly as seen below.
Here is the XDO metadata with grouping:
Version
ARU-dbdrv
Extractor Version
Template Code
Template Type TYPE_EXCEL_TEMPLATE
Preprocess XSLT File
Last Modified Date
Last Modified By
Data Constraints:
XDO_?XDOFIELD1? <?EXPENDITURE_TYPE_NAME?>
XDO_GROUP_?XDOG1? <xsl:for-each-group select=".//G_1" group-by="./EXPENDITURE_TYPE_NAME"> </xsl:for-each-group>
My desired output would look like this:
It feels like there is something real obvious I am missing here, but I just cannot figure it out!
Thanks