Cross Tab report in RTF

Hi,
I'm trying to create a cross tab report in RTF, it is a time sheet report and the data needs to be print based on the days of week
the report should print in below format
                              Week: Dec 08 TO Dec 14
      Employee                 Sun          Mon          Tue          Wed          Thu          Fri          Sat
                                     Dec08     Dec09       Dec10     Dec11         Dec12     Dec13     Dec14
          EMP1                    0                0               8            0                8
          EMP2                    0                0               8            9               10
I could get the correct grouping of week range and dates, however the number of hours are not printing in correct cell,
for ex. EMP1 has worked 2 days (dec 10th & 11th) but my rtf output is printing that number of hours under Dec 08th & dec 09 th respectively.
Need your help in understanding what is wrong with my RTF template.

The RTF and XML is available in below link,
https://app.box.com/s/vk2tb5xpuce9ccyvpz0c
In the XML the data is available for only a few days for each user, however when there is no working hours for a user in a day of the week we have to keep 0 hrs else the number of hours worked on that day.
Thanks

Similar Messages

  • Unable to convert the RDF layout to RTF Layout for cross tab report

    Hello All,
    I have a RDF, which has cross tab layout. For this I need to create RTF template.
    I have the XML file. I'm not able to get the cross tab report in RTF as RDF.
    Below is the part of XML data.
    Pleaes let me know how do i achive this.
    <?xml version="1.0" ?>
    - <!-- Generated by Oracle Reports version 6.0.8.27.0
    -->
    - <XXAQS_EXPENSE_COST_DIV>
    - <LIST_G_CS_1>
    - <G_CS_1>
    - <LIST_G_2>
    - <G_2>
    <DEPT>11100</DEPT>
    - <LIST_G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>501010000</ACCOUNT>
    <DESCRIPTION>Salaries</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>100126</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>501020000</ACCOUNT>
    <DESCRIPTION>Overtime</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>14811</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>501030000</ACCOUNT>
    <DESCRIPTION>Bonus</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>28968</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502000000</ACCOUNT>
    <DESCRIPTION>Allowance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502010000</ACCOUNT>
    <DESCRIPTION>Food Allowance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502020000</ACCOUNT>
    <DESCRIPTION>Housing Allowance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>15612</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502030000</ACCOUNT>
    <DESCRIPTION>School Fees Allowance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>1249</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502040000</ACCOUNT>
    <DESCRIPTION>Other Allowance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>1873</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>503000000</ACCOUNT>
    <DESCRIPTION>Sales Incentive and Commissions</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>503010000</ACCOUNT>
    <DESCRIPTION>Sales Incentive</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>503020000</ACCOUNT>
    <DESCRIPTION>Sales Commissions</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504000000</ACCOUNT>
    <DESCRIPTION>Employee Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504010000</ACCOUNT>
    <DESCRIPTION>Vacation Pay</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>8636</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504020000</ACCOUNT>
    <DESCRIPTION>Air Tickets</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>5265</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504030000</ACCOUNT>
    <DESCRIPTION>End of Service</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>26367</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504040000</ACCOUNT>
    <DESCRIPTION>Medical Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>15441</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504050000</ACCOUNT>
    <DESCRIPTION>Contract Labour</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>2500</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504060000</ACCOUNT>
    <DESCRIPTION>Recruitment Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504070000</ACCOUNT>
    <DESCRIPTION>Visas Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>1625</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504080000</ACCOUNT>
    <DESCRIPTION>Drivers Liscencs</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090000</ACCOUNT>
    <DESCRIPTION>Traveling Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>2601</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090100</ACCOUNT>
    <DESCRIPTION>Traveling Food</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090200</ACCOUNT>
    <DESCRIPTION>Traveling Car Rent</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090300</ACCOUNT>
    <DESCRIPTION>Traveling Hotel</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090400</ACCOUNT>
    <DESCRIPTION>Traveling Taxi</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090500</ACCOUNT>
    <DESCRIPTION>Traveling Telephones</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504100000</ACCOUNT>
    <DESCRIPTION>Gratuity Pay</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505000000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505010000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses - Iqama Expense</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505020000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses - Car Registration Renewal</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505030000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses - MVPI</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505040000</ACCOUNT>
    <DESCRIPTION>Company License</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505045000</ACCOUNT>
    <DESCRIPTION>Permits and License Drivers License</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505050000</ACCOUNT>
    <DESCRIPTION>Permits and licenses-Others</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>506000000</ACCOUNT>
    <DESCRIPTION>Director's Remunerations</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>507000000</ACCOUNT>
    <DESCRIPTION>Audit Fees</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>10866</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>508000000</ACCOUNT>
    <DESCRIPTION>Legal Fees</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>509000000</ACCOUNT>
    <DESCRIPTION>Professional Fees</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510000000</ACCOUNT>
    <DESCRIPTION>Communication Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510010000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Telephone</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>748</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510020000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Telefax</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>51</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510030000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Postage</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510040000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Mobile</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>175</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510050000</ACCOUNT>
    <DESCRIPTION>Communication expense – Satellite Connectivity</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>511000000</ACCOUNT>
    <DESCRIPTION>Stationery</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>511010000</ACCOUNT>
    <DESCRIPTION>Printing and Stationary</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>511011000</ACCOUNT>
    <DESCRIPTION>IT Expense</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>512000000</ACCOUNT>
    <DESCRIPTION>Supplies</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>512010000</ACCOUNT>
    <DESCRIPTION>Operating Supplies</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>3385.796</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>512020000</ACCOUNT>
    <DESCRIPTION>Lubricants Supplies</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513000000</ACCOUNT>
    <DESCRIPTION>Rental Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513010000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Housing</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513020000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Warehouses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513030000</ACCOUNT>
    <DESCRIPTION>Business Promotion - Rental Signage</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513040000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Vending Machines</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513050000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Municipality</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513051000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Signage</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513060000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Other</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514000000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514010000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Repairs and Maintenance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>883.381</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514020000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Fuel and Oil</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>50</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514030000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Rep and Maint - Outside Job Orders</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>150</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514040000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Others</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515000000</ACCOUNT>
    <DESCRIPTION>Insurance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515010000</ACCOUNT>
    <DESCRIPTION>Insurance - Fire Insurance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515020000</ACCOUNT>
    <DESCRIPTION>Insurance - Workmen Compensation</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515030000</ACCOUNT>
    <DESCRIPTION>Insurance - Fidility Insurance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>900.61</AMOUNT>
    </G_AMOUNT>
    ---------------------------------------------------------------------------------

    try this, there must be simpler one i guess...
    1. take a form field, and make its type as number. Paste the below one <?xdoxslt:set_variable($_XDOCTX,'v1',2)?>
    2. now take a table with as below,
    A l B |
    C l D1 l D2 l E1 l E2 l
    observe that i. A, C are in one column
    ii. cell B is on top of D1, D2
    iii. we have no cell on top of E1 and E2 cells
    iv. 'l' represents the wall of the cell :)
    A: <?horizontal-break-table:1?> SCHEMECODE
    B: <?for-each-group@column:G_SCHEMECODE;ASSET_TYPE?> <?ASSET_TYPE?> <?end for-each?>
    C: <?for-each-group:G_SCHEMECODE;SCHEMECODE?> <?xdoxslt:set_variable($_XDOCTX,'v1',2)?> <?SCHEMECODE?>
    D1: <?for-each-group@cell:current-group();ASSET_TYPE?> <?MARGIN?> <?xdoxslt:set_variable($_XDOCTX,'v1',xdoxslt:get_variable($_XDOCTX,'v1')-1)?>
    D2: <?AMOUNT_SECURED?> <?end for-each?> <?end for-each?>
    E1: <?for-each@column:xdoxslt:foreach_number($_XDOCTX,1,xdoxslt:get_variable($_XDOCTX,'v1'),1)?>
    E2: <?END FOR-EACH?>
    3. If you are confused gimme your email id, i will pass the template. But you should add credits to me.. :)

  • Problem with Cross-tab report (RTF Template) null values, current-group()

    Hi, experts!
    I generate Cross-tab report using RTF Tamlpate and I have problem with grouping.
    My XML file have to be with one group only because I want to using dynamic regrouping inside the RTF template.
    Here is my data structure (XML file):(Look the images for details)
    http://img156.imageshack.us/img156/3997/xmlstructureay9.jpg
    =======================
    WITH GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/2951/resultcrosstabbycustomehf8.jpg
    When I'm using grouping and I want to have for each group cross-tab report I have the following problem: (Look the images for details)
    http://img156.imageshack.us/img156/8786/resultcrosstabbycustomect9.jpg
    And this is my code I'm using inside the RTF template with groups:(Look the images for details)
    http://img156.imageshack.us/img156/4253/fieldbrowserxb7.jpg
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    =======================
    WITHOUT GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/9545/resultcrosstabwithoutgrzg7.jpg
    When I generate one cross-tab there is no problem: (Look the images for details)
    http://img156.imageshack.us/img156/7030/resultcrosstabwithoutgrsr1.jpg
    This is my code I'm using inside the RTF template WITHOUT groups:(Look the images for details)
    http://img151.imageshack.us/img151/7030/fieldbrowserwithoutgrours8.jpg
    Can someone give me a hand to deal with this?
    Thank you!

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

  • Problem with Cross-tab report (RTF Template)

    Hi, experts!
    I generate Cross-tab report using RTF Tamlpate and I have problem with grouping.
    My XML file have to be with one group only because I want to using dynamic regrouping inside the RTF template.
    Here is my data structure (XML file):(Look the images for details)
    http://img156.imageshack.us/img156/3997/xmlstructureay9.jpg
    =======================
    WITH GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/2951/resultcrosstabbycustomehf8.jpg
    When I'm using grouping and I want to have for each group cross-tab report I have the following problem: (Look the images for details)
    http://img156.imageshack.us/img156/8786/resultcrosstabbycustomect9.jpg
    And this is my code I'm using inside the RTF template with groups:(Look the images for details)
    http://img156.imageshack.us/img156/4253/fieldbrowserxb7.jpg
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    =======================
    WITHOUT GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/9545/resultcrosstabwithoutgrzg7.jpg
    When I generate one cross-tab there is no problem: (Look the images for details)
    http://img156.imageshack.us/img156/7030/resultcrosstabwithoutgrsr1.jpg
    This is my code I'm using inside the RTF template WITHOUT groups:(Look the images for details)
    http://img151.imageshack.us/img151/7030/fieldbrowserwithoutgrours8.jpg
    Can someone give me a hand to deal with this?
    Thank you!

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

  • Anyone help me in cross tab report

    Hi All,
    this is my first time to build cross tab report in xml publisher
    my code is
    <?xml version="1.0"?>
    <!-- Generated by Oracle Reports version 10.1.2.0.2 -->
    <TEST>
    <LIST_G_SUMFIXED_ASSETS_COST>
    <G_SUMFIXED_ASSETS_COST>
    <LIST_G_ASSET_NUMBER>
    <G_ASSET_NUMBER>
    <ASSET_NUMBER>2402</ASSET_NUMBER>
    <DESCRIPTION>Intangible Assets </DESCRIPTION>
    <LIST_G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Dec-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    <G_FIXED_ASSETS_COST>
    <FIXED_ASSETS_COST>1</FIXED_ASSETS_COST>
    </G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Nov-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    <G_FIXED_ASSETS_COST>
    <FIXED_ASSETS_COST>2</FIXED_ASSETS_COST>
    </G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Oct-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    <G_FIXED_ASSETS_COST>
    <FIXED_ASSETS_COST>3</FIXED_ASSETS_COST>
    </G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Sep-06</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    <G_FIXED_ASSETS_COST>
    <FIXED_ASSETS_COST>4</FIXED_ASSETS_COST>
    </G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Sep-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    <G_FIXED_ASSETS_COST>
    <FIXED_ASSETS_COST>50</FIXED_ASSETS_COST>
    </G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    </LIST_G_PERIOD_NAME>
    </G_ASSET_NUMBER>
    <G_ASSET_NUMBER>
    <ASSET_NUMBER>2403</ASSET_NUMBER>
    <DESCRIPTION>Lands Al-Mashail school</DESCRIPTION>
    <LIST_G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Dec-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Nov-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Oct-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Sep-06</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    <G_FIXED_ASSETS_COST>
    <FIXED_ASSETS_COST>1400000</FIXED_ASSETS_COST>
    </G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Sep-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    </LIST_G_PERIOD_NAME>
    </G_ASSET_NUMBER>
    <G_ASSET_NUMBER>
    <ASSET_NUMBER>2404</ASSET_NUMBER>
    <DESCRIPTION>Buildings Um-Hany Arabic school</DESCRIPTION>
    <LIST_G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Dec-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Nov-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Oct-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Sep-06</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    <G_FIXED_ASSETS_COST>
    <FIXED_ASSETS_COST>109501.785</FIXED_ASSETS_COST>
    </G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Sep-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    </LIST_G_PERIOD_NAME>
    </G_ASSET_NUMBER>
    <G_ASSET_NUMBER>
    <ASSET_NUMBER>2405</ASSET_NUMBER>
    <DESCRIPTION>Buildings Um-Hany Arabic school</DESCRIPTION>
    <LIST_G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Dec-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    <G_FIXED_ASSETS_COST>
    <FIXED_ASSETS_COST>2468.5</FIXED_ASSETS_COST>
    </G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Nov-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Oct-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Sep-06</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    <G_PERIOD_NAME>
    <PERIOD_NAME>Sep-08</PERIOD_NAME>
    <LIST_G_FIXED_ASSETS_COST>
    </LIST_G_FIXED_ASSETS_COST>
    </G_PERIOD_NAME>
    </LIST_G_PERIOD_NAME>
    </G_ASSET_NUMBER>
    </LIST_G_ASSET_NUMBER>
    </G_SUMFIXED_ASSETS_COST>
    </LIST_G_SUMFIXED_ASSETS_COST>
    <SUMSUMFIXED_ASSETS_COSTPERREPO>4548732.119</SUMSUMFIXED_ASSETS_COSTPERREPO>
    </TEST>
    this my code in rtf file
         <?for-each-group@column: G_PERIOD_NAME; PERIOD_NAME?>
    PERIOD_NAME
    <?end for-each-group?>
    <?for-each-group: G_ASSET_NUMBER; ASSET_NUMBER?>
    <?ASSET_NUMBER?>     
    <?for-each-group@cell:current-group();PERIOD_NAME?>
    <?sum(current-group()/FIXED_ASSETS_COST)?>
    <?end for-each-group?>
    <?end for-each-group?>
    and this sample of output
    Asset Dec-08 Nov-08 Oct-08 Sep-06 Sep-08
    2402
    0 0 0 0 0
    2403
    0 0 0 0 0
    2404
    0 0 0 0 0
    2405
    0 0 0 0 0
    2406
    0 0 0 0 0
    2407
    0 0 0 0 0
    2408
    0 0 0 0 0
    2409
    0 0 0 0 0
    2410
    0 0 0 0 0
    2411
    0 0 0 0 0
    2412
    0 0 0 0 0
    2413
    0 0 0 0 0
    2414
    0 0 0 0 0
    2415
    0 0 0 0 0
    2416
    0 0 0 0 0
    2417
    thanks in advance

    Thanks Vetsrini for your help but when i tried to apply your code it give me the following error
    Font Dir: E:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    FOProcessor setData: E:\Documents and Settings\Administrator\Desktop\asset report\test\New Folder\testqq.xml
    FOProcessor setLocale: en-us
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:586)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:383)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:201)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
         at RTF2PDF.runRTFto(RTF2PDF.java:626)
         at RTF2PDF.runXDO(RTF2PDF.java:460)
         at RTF2PDF.main(RTF2PDF.java:251)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
         at oracle.xdo.parser.v2.XSLTContext.peekExprValue4Grouping(XSLTContext.java:861)
         at oracle.xdo.parser.v2.XPathFunctionCall.evaluate(XPathFunctionCall.java:526)
         at oracle.xdo.parser.v2.PathExpr.evaluate(XSLNodeSetExpr.java:851)
         at oracle.xdo.parser.v2.XSLForEachGroup.processAction(XSLForEachGroup.java:78)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:508)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
         ... 16 more
    thanks again

  • Cross tab report-dyanamic columns for months and quarterly sum

    Hi all,
    I work on report creation in BI Publisher.I need to display values in a cross tab report in a way that it shows data for 3 months and then a column for its quarterly sum.
    For ex:-
    Market --Jan       Feb    Mar    Q1_sum Apr May Jun Q2_sum ---------------like wise for n months
    Market1 100 --80 --30 -- 210 --10 -- 80 --90 --210
    Market2 120 --90 --40 --250 --100 --70 --30 --200
    Market3 130 --70 --60 --260 --140 -- 0 --40 --180 ('--' just to maintain indentation)
    The values of number of months( date range) and the names of market are derived dyanamically .
    The code from my sql query presently shows months-range (Jan ,feb,mar..), Quarterly sum to be displayed, Market names etc as child elements in multiple occurences main Query set.
    <Main Query>
    <Market>abc</Market>
    <Region>abc</Region>
    <Months-Range>abc</Months-Range>
    <Quarterly_sum>abc</Quarterly_sum>
    <Main Query>
    <Main Query>
    </Main Query>
    Please guide me on code in rtf template for the same.
    Thanks
    Edited by: user9061488 on Jul 13, 2010 1:32 AM
    Edited by: user9061488 on Jul 13, 2010 3:48 AM

    Hi,
    Do u have time dim in your metadata??
    If not,
    Create a time dimension year,quater,month,day
    http://lh4.ggpht.com/_rhCtHYLiamQ/S7PQvxYBbzI/AAAAAAABZXI/ef_Ur9AmyUo/s800/04_year_quarter_bmm.jpg
    After that in fact table by using the (ago/todate) function ....pull the respective columns to pivot table columns section(date column) and measures col in measures section and enable the grand total in columns section so that it will show grand total for every quarter
    thanks,
    saichand.v

  • PeopleSoft XMLP : Conditional Formatting for Cross tab report

    I have developed a XMLP cross tab report using ps query. Report runs good for (.htm,pdf,rtf) extension . But I am unable to format the data based on condition.
    Code which get displayed at the data field : <?sum ($G1[(./DESCR=current()/DESCR)]/JOB_REQ_NBR)?>
    any help ot suggestion ?
    Report layout(table) in .rtf format
    H GDESCR*E* Total (Header Row)
    GXLATLONGNAME G999*E* 999*E*
    CTotal G999*E* 999

    <?xml version="1.0" ?>
    - <query numrows="10" queryname="HF_EREC_BU_JOBREQCOUNT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
    - <row rownumber="1">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="2">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="3">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="4">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="5">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="6">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="7">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="8">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="9">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="10">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    </query>

  • Cross tab report vertical display?

    Is it possible for a cross tab (or other RTF template report format) to accomplish this?
    The one issue with our cross tab report is the data needs to be grouped by day. This is the format we would like to achieve:
    Employee-----Mon-----------Tues-------------Wed
    John------------08:15AM-----08:15AM------11:00AM
    ------------------12:15PM-----08:15AM------16:00PM
    ------------------01:15PM-----08:15AM------17:00PM
    ------------------17:30PM-----08:15AM------19:30PM
    Mary-----------10:00AM-----08:15AM------10:00AM
    ------------------14:15PM-----11:15AM------14:15PM
    ------------------15:15PM-----12:15AM------15:15PM
    ------------------19:30PM-----17:15AM------19:30PM
    In this way, each employee (John and Mary) shows the time they started work and below that the time they went on their lunch break below that the time back from lunch break and below that the time they finished work.
    With a cross tab report we are getting these results:
    Employee-----Mon-----------Tues-------------Wed-----------Thurs
    John------------08:15AM-----12:15PM------01:15PM------17:30PM
    Mary-----------10:00AM-----14:15PM------ 15:15PM-------19:30PM
    The data is going across the row instead of down. John's 12:15PM time going to lunch should display directly below the 08:15AM time he started work as in the first example.
    Any suggestions to get a cross tab report (or any other kind of format) to display data like that?
    Thank you very much! :)

    We are working with XML Publisher (built into PeopleTools in PeopleSoft CRM 9. Tools 8.49.0.4. The XML is created from a PeopleSoft query (in App Designer) and looks like this:
    <?xml version="1.0" ?>
    - <query numrows="10" queryname="XML_QUERY1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
    - <row rownumber="1">
    <PKT_POST_ID>PKT_POST_I</PKT_POST_ID>
    <PKT_CHECKIN_TYPE>P</PKT_CHECKIN_TYPE>
    <EMPLID>EMPLID samp</EMPLID>
    <ROW_ADDED_DTTM>2009-11-09T16:52:55-05:00</ROW_ADDED_DTTM>
    <ACTIVITY_CODE>ACTIVITY</ACTIVITY_CODE>
    <PHONE>PHONE sample data</PHONE>
    <DESCR80>DESCR80 sample data</DESCR80>
    <PKT_RC_NUMBER>PKT_RC_NUM</PKT_RC_NUMBER>
    <DESCR50>DESCR50 sample data</DESCR50>
    <DESCR>DESCR sample data</DESCR>
    <COMPANYID>COMPANYID sampl</COMPANYID>
    <BO_NAME>BO_NAME sample data</BO_NAME>
    <BO_NAME_1>BO_NAME_1 sample data</BO_NAME_1>
    <ADDRESS1>ADDRESS1 sample data</ADDRESS1>
    <CITY>CITY sample data</CITY>
    <STATE>STATE</STATE>
    <EXP17_44>EXP17_44 sample</EXP17_44>
    <EXP18_40>EXP18_40 sample</EXP18_40>
    <EXP12_52>EXP12_52 sample</EXP12_52>
    <EXP9_52>EXP9_52 sample</EXP9_52>
    <EXP11_164>EXP11_164 sampl</EXP11_164>
    </row>
    - <row rownumber="2">
    <PKT_POST_ID>PKT_POST_I</PKT_POST_ID>
    <PKT_CHECKIN_TYPE>P</PKT_CHECKIN_TYPE>
    <EMPLID>EMPLID samp</EMPLID>
    <ROW_ADDED_DTTM>2009-11-09T16:52:55-05:00</ROW_ADDED_DTTM>
    <ACTIVITY_CODE>ACTIVITY</ACTIVITY_CODE>
    <PHONE>PHONE sample data</PHONE>
    <DESCR80>DESCR80 sample data</DESCR80>
    <PKT_RC_NUMBER>PKT_RC_NUM</PKT_RC_NUMBER>
    <DESCR50>DESCR50 sample data</DESCR50>
    <DESCR>DESCR sample data</DESCR>
    <COMPANYID>COMPANYID sampl</COMPANYID>
    <BO_NAME>BO_NAME sample data</BO_NAME>
    <BO_NAME_1>BO_NAME_1 sample data</BO_NAME_1>
    <ADDRESS1>ADDRESS1 sample data</ADDRESS1>
    <CITY>CITY sample data</CITY>
    <STATE>STATE</STATE>
    <EXP17_44>EXP17_44 sample</EXP17_44>
    <EXP18_40>EXP18_40 sample</EXP18_40>
    <EXP12_52>EXP12_52 sample</EXP12_52>
    <EXP9_52>EXP9_52 sample</EXP9_52>
    <EXP11_164>EXP11_164 sampl</EXP11_164>
    </row>
    </query>
    I can send you the RTF template too. Thank you!

  • Unable to create cross tab report with multiple level dynamic columns

    Hi Gurus,
    We are trying to develope group above cross tab report with BI Publisher.
    i am unable to achieve multiple level columns dynamically.Using cross tab wizard i can achieve single level measure column ,but not the second level column.
    Output should look like this:
    Country1
    Region1 Region2 Region3 --(level1 column)
    d1 d2 d3 d1 d2 d3 d1 d2 d3 -- (level2 column)
    Row1 10 20 30 70 80 90 40 70 90 --data
    Row2 21 24 54 65 23 64 64 76 87
    Here regions and d1 d2 d3 may vary based on xml data.Also we have page break on country.
    Thanks,
    Mahesh

    Hi kavipriya,
    Any update on this.I have set the rtf and xml to ur gmail id.
    Thanks,
    mahesh

  • Crystal Report Cross Tab Report

    In crystal report 2008, i created a cross tab report. Column shows sales order number and rows show item number.
    For columns that shows sales order #, I also wanted to show sales person name field right beside it. In cross tab expert, I added the field salesperson name.
    However, crystal cross tab shows the sales person at a separate column with duplicate information. I only want to show sales order no. with sales person name under one column. Is there a way to achieve this? Thanks.

    This would be a hard job.
    Have you tried Pivot Table function in Excel? You can play with it and get some ideas.
    Thanks,
    Gordon

  • Cross-Tab Report export to Excel

    I have a cross-tab report that I need to export to excel and keep the same formatting.  When I export the report the first column is Part # the next is operation #.  The report is grouped on Part number, but each part may have multi operation.  When I look at the report in Crystal or as a PDF the part # is at the top then each operation is a seperate row that follows.  When I export it to excel it works fine but instead of the part # appearing at the top then follow by each operation the part number ends up on the last operation in the list.  How can I export this and keep the format the same?  by the way I have tried both xls data only and xls 2007 options

    Hello Experts,
    I also tried to export the CR cross tab report in Excel Data only format.
    Also I want to display Row label i.e. my Rows are different dates so I created a text field and named as Date & Time but when export it to Excel Data Only, the date time label appears 1 row above then rest of the columns. It works good while looking on InfoView but export messed it up.
    Can you please suggest.

  • Sort in Cross-Tab report

    I have a cross-tab report that lists dates as headers and employees as rows. The data at every cell shows the qty (it is like timesheet report). The totals are shown for every row and column. The report layout looks something like this:
    ----------- <date> <date> <date> .... <Total>
    <name> <qty> <qty> <qty> <qty>
    <name> <qty> <qty> <qty> <qty>
    <name> <qty> <qty> <qty> <qty>
    <Total> <qty> <qty> <qty> <qty>
    The report definition looks like this (I numbered the columns to make it easier to write about them):
    01: <?horizontal-break-table:1?>
    02: <?for-each-group@column:EMPLOYEE_TIME;./TRANSACTION_DATE?><?sort:TRANSACTION_DATE;'ascending';data-type='date'?>
    03: <?TRANSACTION_DATE?>
    04: <?end for-each-group?>
    05: <?for-each-group:EMPLOYEE_TIME;./EMPLOYEE_NAME?><?sort:EMPLOYEE_NAME?><?variable@incontext:G1;current-group()?>
    06: <?EMPLOYEE_NAME?>
    07: <?for-each-group@cell://EMPLOYEE_TIME;./TRANSACTION_DATE?>
    08: <?sum ($G1[(./TRANSACTION_DATE=current()/TRANSACTION_DATE)]/TRANSACTION_QTY)?>
    09: <?end for-each-group?>
    10: <?sum ($G1/TRANSACTION_QTY)?>
    11: <?end for-each-group?>
    12: <?variable@incontext:T;.//EMPLOYEE_TIME?>
    13: <?for-each-group@cell://EMPLOYEE_TIME;./TRANSACTION_DATE?>
    14: <?sum (current-group()/TRANSACTION_QTY)?>
    15: <?end for-each-group?>
    16: <?sum ($T/TRANSACTION_QTY)?>
    The XML data is not sorted in any way and the report sorts it by employee and date. As you see at the line 02 I applied the sort by the transaction date. The sort works as expected, however the actual QTY are not showing at correct cells. If I remove sort it works fine but the dates are in random order. I suspect it is because I sort transaction date at header level and the QTY is not aware about it. I tried to apply the sort at line 07 but it does not help.
    Does anyone has any idea how to get this report to display data correctly?

    I have a SR which has associated bug 6131270.
    Here is the latest from my SR:
    UPDATE
    =======
    Hi Tomas,
    The bug has been updated. Development has recommended
    "You also need the patch from bug 4332399 to solve the java.util.EmptyStackException. "
    Please review above bug if you have access.
    Please consider applying Patch 4332399 - XSL:SORT FAILED IN A 2 LEVEL XSL:FOR-EACH-GROUP CASE
    Backport is included in patch 5840358 for EBS customers.

  • How to count number of columns in cross-tab report

    I have created a cross-tab report and have managed to get the data out as below:
                 Jan     Feb     Mar....(display of months will auto expand) Avg/Mo  Total
    UserA     4          3        4                                                                         11
    UserB     6          1        1                                                                          8
    UserC     5          5        5                                                                         15
    Total       15        9        10                                                                        33 
    I want to insert a calculated column (Avg/Mo) into the cross-tab report based on the formula: Total/Number of Months. I used this calculation formula  for Avg.Mo column:
    (GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/GetNumColumns)
    However, I get the wrong average since GetNumColumns count the total number of columns including the column of Avg/Mo and Total.
    How do i get the number of columns, excluding the Avg/Mo calculated column and Total column?
    PS: I can't use hardcode since the number of months/columns will auto expand the months progress...
    Edited by: jutamind on May 26, 2010 9:27 AM

    ok managed to solve this by slightly changing the formula:
    GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/(GetNumColumns-2)

  • How to put report title and page no to appear in multiple pages,when using cross tab reports

    Post Author: shaminranaweera
    CA Forum: General
    I am using crystal reports 9.0 with odbc foxpro database conectivity
    I have designed a cross tab report and it is on the report header part and all the report details  are fine,except that the report title and  and page no's only show on the first page of my report.Pls tell me how can i put my report title and page no on all the pages in my crosstab.

    Post Author: foghat
    CA Forum: General
    You need to put your title in the page header if you want it to appear on every page.  The report header only displays once per report.

  • How to add an image or static text in the header of EACH page of a cross-Tab report

    Post Author: rtutus
    CA Forum: General
    Hi, I use Crustal 11.0.
    I have a cross Tab. I display the items on the left column and the months horizontally, the items are grouped by category field. The values are the sum of quantities are displayed for each month. Like this:
                             Items         Jan       Feb       March .....................Total
    Category 1                       
                             Item11         val11     Val12      Val13                     Total values
                             Item12         val21     Val22      Val23                     Total values
                             Item13         val31     Val32      Val33                     Total values
    Category 2                       
                             Item21         val11     Val12      Val13                     Total values
                             Item22         val21     Val22      Val23                     Total values
                             Item23         val31     Val32      Val33                     Total values
    Category 3                       
                             Item31         val11     Val12      Val13                     Total values
                             Item32         val21     Val22      Val23                     Total values
                             Item33         val31     Val32      Val33                     Total values
    The problem, I want to add a page header for each page of the report.
    When Crystal reports first displays my cross-tab in the designer, CR displays the cross tab in the Report header section. I d like to add text or image for each page and not only at the begining of my Cross-Tab.
    If I just add an image or text at the top of the report designer, which is my report header, I get the image or text only on the begining of the 1st page of my report but never in the other following pages.
    If I try to work around the problem and move the cross Tab to a group section instead, and then put the Image in the group header, I get what I want, but the problem is that:
    The columns header: Jan, February....December are displayed for each group of my report and not only in the beginning of the report. I get something like this:
                             Items         Jan       Feb       March .....................Total
    Category 1                       
                             Item11         val11     Val12      Val13                     Total values
                             Item12         val21     Val22      Val23                     Total values
                             Item13         val31     Val32      Val33                     Total values
                             Items         Jan       Feb       March .....................Total
    Category 2                       
                             Item21         val11     Val12      Val13                     Total values
                             Item22         val21     Val22      Val23                     Total values
                             Item23         val31     Val32      Val33                     Total values
                             Items         Jan       Feb       March .....................Total
    Category 3                       
                             Item31         val11     Val12      Val13                     Total values
                             Item32         val21     Val22      Val23                     Total values
                             Item33         val31     Val32      Val33                     Total values
    You see the months get duplicated. Any way, my real need is to add an image or text in the header of EACH page of a cross-Tab report.
    Thanks a lot for your help.

    Hi Divya,
    you could do for example in the wdDoInit() of the view
    wdContext.currentContextElement().setPicture("picture.gif");
    Now you assign this context variable to the Tab using the Tab_header's imageSource-Property. When you click on its value column, you see a button with three dots on it. If you click on this button, you will get all context nodes and attributes for this View. Usable variables are clearly marked, you now choose the one named Picture or what ever name you prefer to use. But it must correspond to the one set in the wdDoInit.
    I think setting a picture (not necessarily for the tab-page) is done in one of the excellent tutorials. If you are a newcomer I strongly recommend doing some of the tutorials.  I have learned tremendously from them.
    Hope this helped
    Harald

Maybe you are looking for

  • Printing problem with forms 4.5 on windows xp

    Hi, We have an application using forms 4.5 on DB version Oracle 9207 running on winxp. Recently the clients were formatted for virus infection problems. Now when a print job is fired from a client to a shared printer, system flashes error *" NO PRINT

  • Reading an image in byte form

    hii guys i m trying to read an image and convert it to byte array and later to do some change in that byte array and later recreate a new image. For that i m using FileInputStream and FileOutputStream and its read and write methods but now i dont kno

  • How do I get the little screen back, that tells me how much ink I have left in my print cartridges?

    How do I get the little screen back, that tells me how much ink I have left in my print cartridges? It used to show up whenever I would print something, now it doesn't and I have no idea how much ink is left in the cartridges.  I have a HP Photosmart

  • Help! Error Screen when starting up laptop!

    When I opened my laptop, the screen was blank (black) and I could not hear the hard drive whirring. I took the battery out, then put it back in, and then started up the computer. I now see a white screen with this text: Illegal instruction at _SRR0 f

  • JButton that enables a JComponent

    Hi all. For my application i would like a button that, when clicked, enables a text field otherwise disabled. i thought it would be easy to do with a mouseListener on the button that, when intercepts an event from BUTTON1, would simply call the setEn