Running total with Layout Editor with BI Publisher 11g

Hello,
I'm trying to create a report with BI Publisher Layout Editor using the "running total" option. My XML looks like this:
<G_1>
<REGION>MZ</REGION>
<G_2>
<INVOICE_NB>1</INVOICE_NB>
<VALUE>1000</VALUE>
</G_2>
<G_2>
<INVOICE_NB>2</INVOICE_NB>
<VALUE>3000</VALUE>
</G_2>
</G_1>
and I want to insert in the layout a data table with this information:
|REGION | RUNNING TOTAL
|MZ | 1000
| | 4000
I inserted a new data table with the region and the value. I grouped the Region to the left (Grouping -> Group Left).
Then I selected the Value column and clicked on Formula -> Running Total, but nothing happened with this last step. Am i forgotting something? How can I display Running Totals on a Data Table with BI Publisher (using Layout editor and not RTF Templates)?
Thank you,
Josep

Use the following: Declare a variable before the loop: <?xdoxslt:set_variable($_XDOCTX, 'RTotVar', 0)?>
In your loop: Include the following code for your Running Total Column: <?xdoxslt:set_variable($_XDOCTX, 'RTotVar', xdoxslt:get_variable($_XDOCTX, 'RTotVar') + VALUE)?><?xdoxslt:get_variable($_XDOCTX, 'RTotVar')?>
For an example of the RTF : Look for the files under your local BI Publisher Desktop installation: BI Publisher Desktop\samples\RTF templates\Advanced\Running Total
Thanks,
Bipuser

Similar Messages

  • Having trouble with Layout Editor

    Hi,
    I'm using Oracle Forms Builder 6, with patch 18. Whenever I try to open the layout editor, I'm getting an error saying "Oracle Forms Designer has encountered a problem and needs to close. We are sorry for the inconvenience." and the whole program closes. This happens no matter which application I work on, even on a new form. It seems that this is a known bug and fixed in patch 12, but probably not. I have uninstalled and reinstalled the programs more than 10 times now, but still not working, and it was working good till 2 days ago.
    My system is Windows XP SP2, Dual core 1.86Ghz with 2GB memory.
    Any help?
    Thank you in advance.

    > and it was working good till 2 days ago
    What other software did you install 2 days ago?
    Something has corrupted your system. If you have a System Restore point prior to the failure, I would try restoring to that point.
    If that does not work, try to completely uninstall Forms and then re-install it.

  • Facing problem with layout editor in screen painter .

    Hi gurus,
    I have installed IDES ECC 6.0 in my home system. Now when I go to layout editor in screen painter, I am getting rows in the screen. As per my knowledge there is an installation problem ..How to rectify that ? Could any one please tell me.
    Thanks & Regards
    Vardhan

    some times SAP Gui behaves like this, in my case i faced this problem many times, some times after shutdown my sap logon pad. and restart the sap , go to se51 , it will open the Screen painter normally. But some cases i uninstalled the Gui, and re installed .then only it opens properly. select all components when installing.

  • Probelm with layout Editor

    i have 5 JButtons and i want to put them on a panel vertically and not horizontally?
    i am using Flow Layout editor but it is placing the button horizontally in 1 row
    how to put each button under other button

    which 1 i have used null layout also but whr=en i ad this panel to my main panel it does not appear

  • Add a new font in the online Layout editor in BI Publisher (OBEE 11g)

    Hi ,
    Possible to add a new font in the online Layout editor (Font list) in BI Publisher (OBEE 11g).
    Thanks,

    In the layout editor, you can simply drag the fields so they don't overlap.
    See http://www.youtube.com/watch?v=7emNa7THMLg
    Sandeep Gandhi

  • How can I merge documents with layout written with pages? How can I copy pages-document with layout and paste it into another pages document?

    Hi
    I am working with pages for a book and have made already a layout whre photos and graphs etc. are partly outside of the area for the text, their posotion is not fixed the the text.
    And now I nedd support: When I add text or a photo to the layout the text moves and the unfixed photos etc. keep there position. This means I have to update each photo or graph to shift it to the new position ore I have to place photos etc. within the frame of the text, which is not the kind of layout I am going for.
    I hope for two reliefs, which I do not know how to realize it.
    1. If I specify each chapter as a new partition starting with own page (then I hoped) the new section would shift together into a new page and the positions of photos etc. and text would stay fix. But unfortunately this seeems not to be the case. Question: is this possibe orno? If yes, how to do it?
    I could divede the whole txt chapter by chapter into individual documents, which are seperatly created and worked. At the end I would have to merge all this document into one. Is it possibe to merge different pages-document into one document?
    Who can help me?
    Thanks Hartmut

    Images and other object can either be floating or be inline. Yours are floating and will not move with the text. Inline object will move with the text but can't be outside the text layer. It doesn't help if you have created section in the document. Floating images doesn't care. Nor will it help if you create several documents that you want to merge later. Doesn't make any difference.
    My suggestion is that until your text is finished you have the images inline. Then as a last editing you can start make the images floating and move them a little.

  • Runtime tab canvas does not look the same as designed in layout editor.

    I created a tab canvas with the following physical properties:
    Corner Style - Chamfered
    Width Style - Variable
    Active Style - Bold
    The canvas looks nice in the layout editor, with the above properties. However, at runtime, the tab canvas seems to ignore the above properties and instead shows up with non-chamfered looking (whatever chamfered means) fixed-width rectangular tabs and the active tab page label is not in bold font. Is there a runtime setting that I'm missing here?
    null

    I am experiencing the exact same thing. The width of the tabs in the layout editor is varied depending on the length of the text. However, at run-time, the width of the tabs is fixed, causing the tabs to be wider than the window and a set of VCR buttons to appear in the upper right corner of the canvas. Personally, I think this is a Forms bug. Why would they intentionally let us set the width to variable at design-time only to force a fixed width at run-time?

  • Oracle report running total Resseting balance

    Dear All,
    I am developing report on Oracle R12 fixed Assets, I have to calculate the running total for each asset.
    In brief
    Asset 1
    cost Deprciation Adjusted Cost
    50 - 2 48
    48 -5 45
    45 - 4 41
    I achieved that by using
    if :p_val is null then
    :result := nvl(:cost,0)-nvl(:depriciation,0);
    :P_val :='5';
    return :result;
    else
    :result := nvl(:result,0)-nvl(:depriciation,0) ;
    return :result;
    end if;
    working fine
    But problem is when the next asset start on same report
    Asset 2
    cost Deprciation Adjusted Cost
    100 5 36
    it substracts the last total (running total of previous asset with depriciation which was 41 in this example).
    Oracle Champs pl advice me how to solve this.
    I really dont got any idea how to solve this.
    thanks

    Dear,
    Thanks for your reply , in your reply what you said I tried this but in pl/sql I am not actually achieving the result. The balance is not resetting at next group if you give one accurate line it would be really helpfull.
    thanks

  • Oracle report running total Resetting balance on next group

    Dear All,
    I am developing report on Oracle R12 fixed Assets, I have to calculate the running total for each asset.
    In brief
    Asset 1
    cost Deprciation Adjusted Cost
    50 - 2 48
    48 -5 45
    45 - 4 41
    I achieved that by using
    if :p_val is null then
    :result := nvl(:cost,0)-nvl(:depriciation,0);
    :P_val :='5';
    return :result;
    else
    :result := nvl(:result,0)-nvl(:depriciation,0) ;
    return :result;
    end if;
    working fine
    But problem is when the next asset start on same report
    Asset 2
    cost Deprciation Adjusted Cost
    100 5 36
    it substracts the last total (running total of previous asset with depriciation which was 41 in this example).
    Oracle Champs pl advice me how to solve this.
    I really dont got any idea how to solve this.
    thanks

    Dear,
    Thanks for your reply , in your reply what you said I tried this but in pl/sql I am not actually achieving the result. The balance is not resetting at next group if you give one accurate line it would be really helpfull.
    thanks

  • Running Total in Group Header

    Post Author: bahamaER
    CA Forum: Crystal Reports
    Hello, I have been reviewing threads for running totals and would like some assistance on creating a running total for a group with a condition that will display in the group header, the running total should also reset for each group. Is this possible?
    I know that there are some constraints such as the variable being reset to 0 in the header for each group as well as the group records have not been rendered when the header formulas are being assessed. I have been able to accomplish the task of running totals with conditions for groups using a running total field and also 3 separate formulas placed in the group header, detail and footer. The display is only correct in the group footer; my goal is to have the footer formula in the group header.  Any ideas?  I am currently using CR 8.5 but will be upgrading to CR 2008.
    Thankyou

    Hi,
    If you are trying to calculate Total and display it in Group Header for field value placed in Detail, then you will get incorrect/no value for total, as Crystal Reports prints/processes the report line by line and it will not be able to process the Total for field in Detail section in Group Header.
    Its is by Design.
    For a workaround:
    - Insert the same probematic report (Say A.rpt) as a Subreport in Group Header of this report(Say A.rpt).(Say in GroupHeader A1) and link the Main Report to the
    - Insert Section Below (Say GroupHeader A2)
    - Calculate Total in Section Group Header A2)
    This workaround will reduce the Performance of the report as Subreport will be proceed for each Group Value.
    Regards,
    Kiran

  • Running Query print Layout  procedure

    Hi
          Kindly give me the procedure to run Query Print Layout Designer with example
    R.Vijai

    Hi
    In Query manager - highlight your query - click Create Report - new window opens - - to access you must double click the report in that window. Customise your report and save.
    To se print preview - Open query manager - highlight query - print preview.
    Regards
    Daan

  • Regarding Running Totals

    Hi All,
    I have a requirement where I need to calculate the running balance for each customer as below table.
    CUSTOMER_NAME   TRN_AMT   RUNNING BALANCE
    CUST_A 500 500
    CUST_A 100 600
    CUST_B 300 300
    CUST_B 150 450
    I am able to get the running balance for the entire report. But I am not able to achieve the running balance for each customer.
    Please help me in this regard.

    BIPuser wrote:
    Take a look at the Running Total.rtf template under your BI publisher Desktop installation (example: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\samples\RTF templates\Advanced)
    Thanks,
    BipuserHi,
    I couldn't find those RTFs in the mentioned location. Also I searched in the entire folder, but couldn't find it out. Please provide me any link which I can access to get the templates.

  • How can I display the vendor associated with result of my running total sum

    I have a report that lists vendors with their most vecent order dates.  I need to set up a rotation so that the vendor with the latest order date is next to be selected.  I used the running total summary to pick the latest date.  How can I display the vendor associated with result of my running total summary?

    If your "latest" order date means the "oldest" order date, why don't you try this:
    Go to Report tab -> Record Sort Expert -> Choose your order date in ascending order
    This will make your oldest order your first record shown. 
    You can then create a running total count for each record.
    Lastly, in your section expert under conditional suppress X+2 formula, write this:
    {#CountRecords}>1
    The result will only show the oldest record in your report.
    I hope that helps,
    Zack H.

  • How to publish Motion 5 templates with another editor's Final Cut Pro x

    How to publish Motion 5 templates with another editor's Final Cut Pro x

    That's also simpel,
    Let the Motion 5 designer deliver the map that he made. For example he made a title effect with the title "We Are Awesome Company Title" than you get that map after the head "Effects" map. So he must send that map with all the stuff in it to an editor and the editor place that map in Motion Templates -> Effects.
    Restart Final Cut Pro X and there you go.

  • Problem with Screen Painter - Graphical Layout Editor.

    Hi Friends,
    I have a strange problem with my Graphical Layout Editor. I first had the problem that the alphanumeric Editor gets displayed even the checkbox for Graphical Layout Editor is checked. Then I had gone through sdn forums and found that the <b>eumfcdll.dll</b> was missing.Thanks to sdn forums. When I copied that file into the path specified it worked fine. But the problem is my layout screen is not displayed fully. It is just displayed at the top of the window and only in that region I can drag and drop the elements. Remaining part of the window is uneditable.
    what is the problem? Do I need to make any further settings?
    Regards,
    Raju.

    try to re-install GUI patch .
    <b>Yeah , its like CNTLALTDEL(restart) , So half of the problems get resolved.</b>
    regards
    prabhu
    Message was edited by: Prabhu Peram

Maybe you are looking for