rtf - BI Publisher - Display Data Horizontally -


i have following data model:

<sale_list>     <sale>         <year>2010</year>         <item>100001</item>         <amount>1,199.00</amount>     </sale>     <sale>         <year>2010</year>         <item>100002</item>         <amount>1,200.00</amount>     </sale>     <sale>         <year>2012</year>         <item>100001</item>         <amount>1,899.00</amount>     </sale>     <sale>         <year>2012</year>         <item>100003</item>         <amount>1,649.00</amount>     </sale>     <sale>         <year>2013</year>         <item>100004</item>         <amount>2,199.00</amount>     </sale>     <sale>         <year>2013</year>         <item>100005</item>         <amount>3,199.00</amount>     </sale> </sale_list> 

in rtf template, using for-each display year:

<?for-each:sale?> <?year?> <?end for-each?> 

normally, result displayed vertically, this:

2010 2010 2012 2012 2013 2013 

how display result horizontally, this: 2010 2010 2012 2012 2013 2013

<?for-each@inlines:sale?> <?year?> <?end for-each?> 

if want print values in horizontal table columns, need dynamic columns. have use:

<?split–column–header:name?> <?split–column–data:name?> 

if have installed bip word addon on windows system, have sample templates provided oracle. go down bi publisher desktop folder, , check samples folder. on system, location is:

c:\program files (x86)\oracle\bi publisher\bi publisher desktop\template builder word\samples\rtf templates\advanced\dynamic columns 

there dynamic data columns.doc file there, explains neatly how this.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -