Using LEVEL Pseudo column to format repeating frame

I am trying to display a hierarchy in Reports. I use the 'Connect By' Clause in SQL and gather the hierarchical data, and want to display the results in a tree fashion. How can I do it?
I only come up with one answer, to use the LEVEL PSEUDO-Column and indent the repeating frame based on the value for LEVEL. I want to know how I can set the X and Y co-ordinates of the repeating frame dynamically?
Please help me with this if you have other ideas?
Thanks.
-Shan

Unfortunately, you can't programmatically set the geometry (x,y, width, height) values of any objects in the reports output.
The best you can do is have another object (or number of objects) that are turned on/off and then use collapsing anchors and format triggers to move the repeating frame to the left. If you only have one object, you can set it's horizontal expansion to variable and then fill it with a number of characters to get the desired "indent".

Similar Messages

  • What is connect by and level pseudo column? how it works?

    what is connect by and level pseudo column? how it works?
    Please explain this concept by giving an example..
    Thanks
    Prashant

    Read the following documents with examples :
    http://psoug.org/reference/connectby.html
    http://www.sqlsnippets.com/en/topic-11821.html
    http://docs.oracle.com/cd/B19306_01/server.102/b14200/queries003.htm

  • How to Suppress Report Total When Using Sum on Columns & Break Formatting

    I need to know how to NOT show the report total line when using the sum functionality with a break in a report.
    I am summing two columns, a debit amount and credit amount. I am breaking on the first column which is the level of a hierarchical query. I want to see something like this:
    Parent Record xxxxxxxxxxxxxx
    Parent Sum $$ $$
    Child Record xxxxxxxxxxxxxx
    Child Record xxxxxxxxxxxxxx
    Child Sum $$ $$
    However, when I run the report, I also get a report total line under the child sum which is really meaningless for this report.
    I have also tried creating this report as an interactive report. When applying the sum on the two columns, I do get the sum totals on the break only - no report total - however, it is reversing the order of the hierarchical query results putting the child records first and the parent records second.
    Thanks in advance for your help.

    Hi, and welcome!
    I don't think that there's an easy way to "switch off" the Total line on a report. The nearest I could suggest would be to either hide the entire row or colour the text so that it's the same as the background - either way, the total is calculated but the user won't see it.
    If you put something like the following into your report region's Region Footer:
    <script type="text/javascript">
    var outertable = document.getElementById("#REGION_ID#");
    var innertable = outertable.getElementsByTagName("TABLE")[1];
    var rs = innertable.rows;
    var lastrow = rs[rs.length-1];
    if (lastrow.cells[0].innerHTML == '<b>TOTAL</b>')
    rs[rs.length - 1].style.display = "none";
    </script>Then, on your report's Report Attributes page, scroll down to the Break Formatting section and put TOTAL into the "Display this text when printing report sums" setting. Also, in the "Layout and Pagination" section, set "Enable Partial Page Refresh" to No.
    The above code is based on the report and region templates that I'm using here: [http://apex.oracle.com/pls/otn/f?p=267:147] (Theme 18, "Report Region" region template and "Standard" report template). Your report may use different templates, so the first two lines on the code may have to change. #REGION_ID# would be replaced with the region's ID value (which would be "R" followed by a long number). As long as you can identify the HTML tag that uses this ID value, you can then get to the actual table that contains the data as it would be a TABLE within that tag - the [1] above is the second table within the region. In some instances, you may have to use "region_#REGION_ID#" as the starting point.
    Andy

  • How to use a header column in a repeating group

    I am trying to create a BIP report (11.1.1.6.2) with an XML file as source. The XML files start with a few header fields, followed by the actual data. For example:
    <DATA>
    <PARAMETERS>
    <P_ORDER>Order</P_ORDER>
    <P_CUSTOMER>Customer</P_CUSTOMER>
    </PARAMETERS>
    <LIST_DETAILS>
    <DETAIL>
    <V_ORDER>12345</V_ORDER>
    <V_CUSTOMER>Oracle</V_CUSTOMER>
    </DETAIL>
    <DETAIL>
    <V_ORDER>67890</V_ORDER>
    <V_CUSTOMER>Microsoft</V_CUSTOMER>
    </DETAIL>
    </LIST_DETAILS>
    </DATA>
    The desired output should combine a field from the <PARAMETERS> group and a field from the <DETAIL> group in one line. So with this example data it should look like this:
    Order: 12345
    Customer: Oracle
    Order: 67890
    Customer: Microsoft
    In my RTF template I created a repeating group <?for-each:DETAIL?> and put everything in that repeating group. Unfortunately BIP leaves the values for the fields in the <PARAMETERS> group empty.
    I also tried to nest two repeating groups. First: <?for-each:PARAMETERS?>, within that: <?for-each:DETAIL?>. This does not solve the problem.
    How can I achieve my desired output?
    Paul

    try
    <?xdoxslt:set_variable($_XDOCTX,'LVarORDER',P_ORDER)?>
    <?xdoxslt:set_variable($_XDOCTX,'LVarCUSTOMER',P_CUSTOMER)?>
    <?for-each:DETAIL?>                                 |           <?V_ORDER?>
    <?xdoxslt:get_variable($_XDOCTX,'LVarORDER')?>      |
    ----------------------------------------------------|-----------------------------------
    <?xdoxslt:get_variable($_XDOCTX,'LVarCUSTOMER')?>   | <?V_CUSTOMER?><?end for-each?>

  • Footer for a report with 2 repeating frames with down/across print directio

    I have a report with a frame for title shown in first page. the content of the report is shown on two columns in a repeating frame(R2) which enclose an other repeating frame (R1). In R2, just after R1, I have a frame for totals. Both repeating frame have down/across print direction. All repeating frames and title frame are enclosed by a regular frame(let say frame A) that have vertical elasticity fixed. at the end of the report i must display an other frame(frame B) with signatures. I put frame B in frame A, just after R2. If I set vertical elasticity to fixed or contract for R2, when the title frame is missing i get an empty space in the bottom of the page(except the first page, where the title appear)(R2 is anchored to title frame). if I set vertical elasticity to variable for R2, the frame B is not shown on last page with records, but in next page. I need a solution to keep the frame B in last page of the report which have records. the problem appear only when I have records in second column.
    Can somebody help me, please?

    Hi,
    I think without using Across/Down instead of Down/Across this is not possible. But then the output is
    1 2 3 4
    5 6 7 8
    If you need to have
    1 3 5 7
    2 4 6 8
    then you had to add some logic in an additional column for sorting the output. (sounds easy, but the logic need some work depending the count of records and their position.
    Regards
    Rainer

  • Viewing repeating frame data

    Hi all
    My reports has many enclosing frames. They show single record column data and column data inside repeating frames. One of the enclosing frame , say F1, has its "Print object on" property set to "First page" and "Vertical elasticity" to "expand". The enclosed repeating frame , say R1, inside F1 has its "Print object on" property set to "All pages" and "Vertical elasticity" to "expand".
    There are 36 records in the database for the field inside the repeating frame R1, and there are also some column data shown in F1 above the repeating frame R1 : so the repeating frame R1 has to be shown last.
    When I launch the report there are only 6 of the 36 records shown in the bottom of the page. Logically the 30 remaining records should appear in the next page. But the reports does not show the remaining data and it shows immediately data inside the next enclosing frame !
    So how can I show the remaining 30 records in the next page ?
    Thank you very much indeed.

    I tried that but it did not work. If I used Print All Pages for main content frame it will just have 1 page output versus multiple pages as expected.
    Two important points:
    1) R1 (the repeating frame in M2) has Vertical Elasticity as Expand because it also contains more repeating frames under it. Problem could be solved if the R1 would have vertical elasticity as Fixed instead;
    2) I also could have fixed this by having M2 (it contains a repeating frame with actual data) with Vertical Elasticity as Fixed instead of Expand. But once I do that, I get Report error M3 (frame that shows the summary at the last page) "has an illegal print condition"? Anyone know why this error occurs?

  • Problem with graphs on repeating frames

    Is it possible to use graphs showing correct data within repeating frames?
    We experienced problems with graphs within repeating frames, each occurrence of a graph shows the same picture (using data that corresponds to the first frame).
    Tnx in advance.

    Sounds like the source data for the Graph is the wrong Group.
    Dave

  • How to make an order on repeating frame using Formula Column?

    Hi All,
    I have a repeating frame dependent on some query, how to make an order on this repeating frame using a formula column defined in its group and dependet on values from the query?
    Note: I'm using Reports 6i

    Place your formula column at the top of the itm group and set the BREAK_ORDER to assc.. or desc...
    Hope this helps
    Hamid
    if problem solved, close the thread.

  • Using Page Level Summary Column in Report 6i

    Hi Folks,
    I'm trying to create a report in which I want a Page level Summary column i.e., the Summary column should reset at each page and should display the sum of a particular field on each page depending upon how many records are displayed on each page. But whenever I choose the Reset Property to Page the following error is displayed" Page level summaries are not supported in the defaulting" and in certain case the summary column displays the sum only on the last page of the report and the rest of the pages do not display the summary column. The database has three tables i.e., master-detail-detail.
    Do I need to make some changes in the Data Model or what?
    TIA
    Hassan

    Hi Hassan,
    it only works onceWell, this is definitely not expected. Maybe you can try to see after running the report once whether all the values you set in your report (from my last post) remain the the same, or somehow they revert back to their default values.
    if I do some formatting of the report... summary also disapperasYou could try placing the page level summary in another frame, below your group repeating frame, with enough gap between them. Also, try setting the value for "max no of records" to some lower value, which makes sure there is space for the summary column on every page.
    Another idea for making a page level summary is - you can place the summary BEFORE your group repeating frame, which means the summary will print on top of every page. In this case, you won't even have to worry about setting "max no of records per page" to some particular value. See if this suits your needs.
    Navneet.

  • Format Fields in a Repeating Frame

    Hi All,
    I have a repeating frame with multiple fields in it. I was trying to change font and size of those character fields when some parameter changes. If I put the "if ... then.." in each field's format trigger, it worked. Since those fields are included in the frame, I was thinking can I just use frame's format trigger to change its fields attributes? Is there anyway I can refer to individual field while using srw functions?
    Thanks a lot for any help.

    Typically you want to use the following order when dealing with how to manipulate data:
    - do it on the server
    - do it in the data model
    - finally, do it in the layout
    If you do want to do this in the layout, then you'll need to keep track of the the previous value in a PL/SQL package variable and set this value in the format trigger. You can then reference the previously set value on the next instance of the repeating frame.
    However, this creates difficulties since a format trigger for a single instance of an object may execute more than once (basically when it doesn't fit on the previous page). To get around this problem, you'll need a count column in the data-model to check when you need to update the package variable value in the format trigger.
    If you can, take a look at changing your data to calculate this value and just display it in the layout.

  • Using a Separator in a Repeating Frame - Solved (Sort of...)

    Hi Folks,
    I've got a report with a repeating frame going across it. I want to put a slash ('/') between the entries but NOT at the start or end so it looks like:
    Acceptance Test/Before Use Test/After Use Test
    Is this possible in Reports and, if so, how can I achieve it? There's nothing obvious about it on these forums or on MetaLink...
    Thanks,
    Simon.
    Message was edited by:
    SAFC 1973

    Hi ,
    those entries are fields for repating frame right?
    ok then,
    2 ways to do this.
    1)
    take bioler plate with text '/' for the required columns you want to seperated in the layout.
    2)
    concatenate the columns with '/' in the query itself for the required clumns u want
    in the data model
    try with this.
    --Basava.S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Map the hierarchical queries pseudo column level

    Is it possible to map the hierarchical queries pseudo column level in the Workbench?
    I have an object for which I use connect by queries. I would like to map the pseudo column level. is this possible? if yes, how
    If the mapping is not possible how do I get the level using a report query?
    Is there any other way to retrive level?
    Thanks
    Edited by: amehta5 on May 4, 2010 11:52 AM
    Edited by: amehta5 on May 4, 2010 11:55 AM

    Thanks James, appreciate your feedback.
    I tried report.addItem("level", builder.getFunction("LEVEL"));
    but the query TopLink generates has LEVEL() and it errors out.
    Code -
    Expression startExpr = null;
    Expression connectBy = builder.get("manager");
    Vector<Expression> order = new Vector<Expression>();
    order.addElement(builder.get("name"));
    report.setHierarchicalQueryClause(startExpr, connectBy, order);
    report.addAttribute("name");
    report.addItem("level", builder.getFunction("LEVEL"));
    Query generated by TOpLink - SELECT NAME, ID, LEVEL() FROM EMPLOYEE WHERE (EMPLOYEE_TYPE = ?) CONNECT BY PRIOR EMPLOYEE.MANAGER_ID = EMPLOYEE.ID ORDER SIBLINGS BY NAME
    bind => [M]
    Edited by: amehta5 on May 6, 2010 6:11 AM

  • Conditional formatting based on page number that resets on repeating frame

    Hello everyone,
    I have searched through multiple forums on multiple sites and haven't come across anyone who has accomplished this.
    I have a report with pages numbers that reset on a repeating frame.
    I have a text boiler plate that I want to only show up on page 1. On every occurrence of page 1.
    SRW.GET_PAGE_NUM does not work because it returns physical page number.
    I'm trying to access the value of the field for my page number. The value comes from "source" drop down with value of "Page Number".
    I've tried accessing the <&page number> in the PL/SQL of my conditional formatting trigger but no luck.
    This report is 14K plus pages so I'd rather not be inserting and selecting the value back out of the database.
    Does anyone have any ideas??
    Thanks,
    Alan

    To avoid inserting/selecting from the database
    Maybe you could create a small package on the database to store page numbering information.
    Then use get/set routines per your requirements.
    CREATE OR REPLACE PACKAGE rep_page_no IS
       gPageNo NUMBER;
       PROCEDURE set_it(pPage NUMBER);
       FUNCTION get_it RETURN NUMBER;
    END rep_page_no;
    CREATE OR REPLACE PACKAGE BODY rep_page_no IS
       PROCEDURE set_it(pPage NUMBER) IS
       BEGIN
          gPageNo := pPage;
       END set_it;
       FUNCTION get_it RETURN NUMBER
       IS
       BEGIN
          RETURN(gPageNo);
       END get_it;
    END rep_page_no;Then in your repeating frame you could access this package rather than insert/select from any database table.
    Let me know if this works, I might like to try it.
    Thanks

  • Is it possible to show the same repeating frame in 2 columns?

    Hello, and thank you all in advance for any help!
    Here is the situation:
    I have simple report with 1 repeating frame and 3 data columns in it.
    I want to be able to have a second column on each page that continues the data from the repeating frame. That is to say, one the left the data would go from top to bottom like normal, then instead of going to page 2, it would go into a column to the right on the same page.
    The repeating frame is small enough to fit at least 2 of them horizontally.
    I cannot seem to find the way to make this layout work. Is it possible?
    Thanks again,
    -Arin

    Nevermind everyone!
    I got it to work with Print Down/Across...silly me.
    Thanks anyway!
    -Arin

  • Headstart/Designer 6i / Report Generation / Format Trigger / Repeating frames.....

    Good morning all!
    Product version...
    Headstart 6i
    Des.6i 6.5.52.5.0
    Des.tools 7.2.52.2.0
    Des.report generator 6.5.52.1.0
    Dev. report builder 6.0.8.14.2
    Any idea on how to generate from Designer, a format trigger on a report's repeating frames???
    Thank you,
    Michel

    You can customize report in Report Builder. The Report Builder can be run from Repository Reports menu (Run -> Report Builder).

Maybe you are looking for

  • Jdev 11g Production: Connection Name FOD Not Defined (Tutorial: ADF Visuali

    I tried out the following tutorial: ADF Visualization Components. I follow the step by step to install Jdev 11g and the FOD schemas. The step by step tutorial is helpful but ran into a problem in the beginning when I tried to run the FOD Module as st

  • Table View

    Hi all, My question is as follows: i have used table view in my page and I want to change the color of the rows with alternate rows having the same color in the table view. Can anyone help me on this? Thanks and Regards Shilpa Dhawan

  • Calling action on navigation bean skips setters on form bb

    Hi, I'm new to these forums so please bare me out :) I'm trying to always save the current form on a navigation event. Using facelets, so the navigation is general over all pages. I'm using t:panelNavigation2 for this (tomahawk) with commandNavigatio

  • Why does Adobe Flash player crash so much?

    This is not the first version of FireFox that Adobe Flash player crashes on. It happens 2, sometimes 3 times a day, my browser locks up for 45 seconds or so then I see the "Adobe Flash Player has crashed" yet again. I've read the forums, tried sugges

  • 2nd Gen Nano Firmware 1.1.2 - Honda Music Link

    I've got an 8gb Nano with firmware 1.0.2 which works just fine in my 2006 Pilot with the Honda Music Link. Does anyone know if the latest firmware, 1.1.2 works with it as well? I believe that 1.1.1 did not work with the Link.