User defined Parent child report

I trying to create parent child (dril down report).
I able to refer parent column as bind variable in child report but unable to refer child column as bind variable in subsequent child report.
select a,b from parent.
select x,y,z from child1
where x = :a
select e,f,g from child2
where e = :x ==> this does not work
Did anyone tried this, if yes please me know did it worked for you and how
thanks
-K

I agree whole heartedly :)
If you want to make things even more interesting, create some 3rd generation child reports and carry the bind variables throughout the multiple levels - here's an example
http://www.thatjeffsmith.com/archive/2012/09/grandparent-parent-child-reports-in-sql-developer/

Similar Messages

  • Defining Report LayOut for a parent child report

    I have a parent child report. I want to print this report in PDF using BI Publisher. Now I wanted to define a layout for that report using BI template builder. My stratagey for defining Report layuout is
    1. Write a query containing all fields that I need
    2. Convert that query data to XML, one way or the other
    3. Load that XML into template builder.
    4. Define the layout.
    Now the problem is that I need some fields for parent and some from child. If I do not use group buy clause in the query I will not be able to use the tabular format in template builder (taht I wanted to use).
    IF I use a group By caluse then I am unable to select the child fields as they are not the part of group by clause.
    Plz help

    You have 2 repeating frames: R_contracts and R_ads. Create a frame M_disclaimer after R_ads, within R_contracts to hold the disclaimer page. This page will print after all the ad records have been printed, and before the new contract starts.
    You can set Page Break Before on M_disclaimer to print this frame on a new page.

  • Creating a new page and new layout in a Parent/Child report.

    Hi,
    Currently I have a Parent/Child Report in Oracle Reports 6i. The report shows Contracts as the parent and the detail of the contracts are the Ads. Sometimes there are many ads which extend the contract to another page. Just a normal Parent/Child report. This report can display many contracts at once. My problem is that at the end of each contract I need a new page with a different layout, for a disclaimer page. I've tried many different scenarios using Anchors and page breaks. Is this even possible with Oracle Reports 6i, to have a new page with a different layout in a contract level repeating frame? Any suggestions would help.
    Thanks.

    You have 2 repeating frames: R_contracts and R_ads. Create a frame M_disclaimer after R_ads, within R_contracts to hold the disclaimer page. This page will print after all the ad records have been printed, and before the new contract starts.
    You can set Page Break Before on M_disclaimer to print this frame on a new page.

  • Error while using user defined function in reports

    Hi,
    When I use the below user defined function in oracle reports I got the wrong number of arguments error
    select test_function(id,a_number,v_date-14,b_number) from dual;
    If I remove -14 from the argument it works. But iIneed to subtract 14 days from the date.
    Thanks for your help.

    select test_function(id,a_number,v_date-14,b_number) from dual;
    you have to give the command like this to_date(v_date,'dd-mon-yyyy')-14
    because the v_Date you choose in the parameter form is not having the corrent date format
    the format dd-mon-yyyy is the format in which v_date is passed by the user.

  • Parent/Child Report

    I have a parent/child data report but am not seeing the data for the child portion. I have a repeating frame which is printing the parent portion. Within that frame I have another repeating frame which should be displaying the child portion of the data but it is not. I have a data link between the two based on an id number. I think the problem is that the child portion is not being passed the id number from the parent. I have some field names which are showing up, but not the data itself associated with these field names. So I think my frames in my layout are good. Why is the parent not passing the id number to the child? I'm thinking there must be something wrong with my data model. Any suggestions on creating this type of report?

    Thanks for your suggestion. In looking at this some more I see now that the queries are finding my data, but the data is not printing. Simply put, my parent query has student name & number, my child query has attendance dates for that student. The parent portion is working fine with the student name & number appearing on the report, but my child attendance dates are not showing on the report. The repeating frame in which they reside is also not showing. I know the queries are pulling the right data though, because the number of pages I am getting for each student corresponds to that student's attendance data. But the entire frame and data within it are not showing on my report. I have checked to see that the Visible value is set to Yes. Does anyone know what I am overlooking?

  • Need to call user defined table in Report

    Hi there,
    In my report, need to call user defined database table. This table contains 2 columns one for checkbox. After calling this table, user has to check required rows and save changes. can we create transaction code for this table and call from within report? anybody pls suggest how to implement this requirement.
    Regards,
    Zakir.

    Zakir,
    U can do it in both the ways (TXN or rept).
    If rept, use an itab to check and insert rows to the DB tab.
    If mod pol, use a table control and update db tab...
    Reward if helpful,
    Karthik

  • [eval 1.1.0.21]sort in user-defined ended with ; report produces ORA-00911

    reproduce it with :
    1) user defined reports --> add report --> SQL :
    select * from scott.emp;2) click on the sort icon in the header of the column
    the workaround is to not include the ; in the sql
    regards
    Laurent
    Message was edited by:
    Laurent Schneider
    prefixed!

    Laurent,
    Please can you prefix your comments with Eval 1.1.0.21.4.1? We'll be doing regular eval releases for the next few weeks and many of the folk on the forum are still on 1.0 (15.57), so we need to try to keep queries clear.
    I know what you are testing and using, but others migt not.
    As for the comment: Yes, thanks - no need for ';' on any user defined reports. You'll see if you copy the shipped reports they don't have it either. Useful to note.
    Sue

  • Problem with sorting involving user defined types and reports

    Hello!
    I have a problem with sorting involving Reports and user defined objet types.
    I have created the following object types
    CREATE TYPE type_balance_compte AS OBJECT
    NUM_CPT_SEQ NUMBER(8)
    ,NUM_CPT VARCHAR2(35)
    CREATE TYPE TB_type_balance_compte IS TABLE OF type_balance_compte
    At the reports query I use:
    SELECT ...
    FROM table(cast(test_pkg.balance_comptes(:P_num_soc) as TB_type_balance_compte)) c
    The procedure balance_comptes will retrieve data from various tables into the type.
    The report is ordered by a certain string field that usually contains characters and numbers.
    I need to have numbers always before characters, meaning the data should come in this order in the report for example:
    0
    1
    A
    B
    So, before the report query, I have placed a call to DBMS_SESSION.SET_NLS( 'nls_sort', 'binary' ) to guarantee NLS_SORT in case it is originally set to FRENCH.
    The problem here is that even after this call, I have the report ordered like this
    A
    B
    0
    1
    And not the numbers before as it should be.
    To try and find out where the problem was, I have created a table to use instead of the object type described above. In this case, it worked correctly. So all I know by now is that is has something to do with the type or cast, but what exactly? Does anybody now how to solve this without using a table?
    Many thanks
    Ariadne

    I have placed a call to DBMS_SESSION.SET_NLS( 'nls_sort', 'binary' ) why not order directly then:
    SQL> select *
          from table (sys.dbms_debug_vc2coll ('A', 1, '5', 'C', 'a'))
    order by nlssort (column_value, 'NLS_SORT = binary')
    COLUMN_VALUE                                                                   
    1                                                                              
    5                                                                              
    A                                                                              
    C                                                                              
    a                                                                              
    5 rows selected.?

  • Export Parent Child Report data

    Hello,
    Does anyone know if it is possible to export Child - parent report data in one file?
    Kind regards,
    Oli

    Thanks for your suggestion. In looking at this some more I see now that the queries are finding my data, but the data is not printing. Simply put, my parent query has student name & number, my child query has attendance dates for that student. The parent portion is working fine with the student name & number appearing on the report, but my child attendance dates are not showing on the report. The repeating frame in which they reside is also not showing. I know the queries are pulling the right data though, because the number of pages I am getting for each student corresponds to that student's attendance data. But the entire frame and data within it are not showing on my report. I have checked to see that the Visible value is set to Yes. Does anyone know what I am overlooking?

  • Parent/child reporting

    Hello all,
    I am struggling a bit with a reporting requirement and maybe you as experts can help me to come up with a solution.
    In a report we want to show the turnover of (parent/global) accounts based on a custom field 'expected turnover' in the Opportunity object type. We can show this of course per account, so that's not the problem. The problem is that we want to calculate all the expected turnover for the account in the top of the account hierarchy. We have for example company A (headquarters), which is parent of B, which in turn is the parent of C, which is the parent of D and E. We can do business with all the companies, so they can all have opportunities with the field 'expected turnover' filled out.
    Example:
    Company D has 1 opportunity with an expected turnover of 1,200,000 and another opportunity with an expected turnover of 500,000.
    Company E has 2 opportunities, each with an expected turnover of 450,000
    Company C has one opportunity with an expected turnover of 200,000
    Company B has 1 opportunity with an expected turnover of 1,350,000 and an opportunity with an expected turnover of 750,000.
    Company A has no opportunities at the moment.
    Now we want to report on the total expected turnover for the entire company of which A is headquarters. So we want to know E+D+C+B, but only company B is directly linked to company A, so the question is, how can we report using the indirect links between all the companies.
    We cannot change the account structure, so we cannot say that Company A is the parent on all the accounts. Also we cannot add a field to the account that can select the master account, because there is only one field which allows the user to select another account, and putting the master account or parent account in manually, leaves too much room for errors.
    Does anyone know how this can be solved?
    Thanks in advance.
    Kind regards,
    Niels Rekers

    Niels,
    I know you said you didn't want to put in the master account manually but I think it's the only way. However what if you created a Parent Reporting ID, this will avoid any mistypes of account names? Create a unique identifier for each record and then for those that have a parent account overwite the unique ID with the Parent Id eg
    Company A Parent ID=1234
    Company B Parent ID=1234
    Company C Parent ID=1234 etc
    This would then give you a field that will link your records together without affecting the Account heirarchy.
    Either this or a very long formula that would need modifying every time an account was created.
    These are my only suggestions.
    To maintain this going forwards you create a new "create account" weblink that passes the Parent ID onto the new record, so if they want to create a new account for company F then they go to Company A and click create Account.
    A good way to get a unique ID is to take the last 6 characters of the Row ID into another field as a default value.
    cheers
    Alex

  • PM Notification: User-Define Values for Reported By and Tech Inspected by

    Hi Friends,
    My user wants the name to be filled in the field Reported by and Tech inspected by in the Notification Should be from a dropdown list.
    Please suggest some solution, any customer exit or user exit.
    Regards
    Pankaj Verma

    Programmer used field validation in IW21/IW22, IW31/IW32 screen for that functionality.
    Sorry, I don't have code or specific enhancement names. All I can say is that after enhancement, it worked very well.
    Thanks-

  • User Defined Object Child Item Updating

    Hi Team,
    May i know how can i update the particular child item in UDO tables.
    In Between, i will check if existing item is not found, i will add a new child
    If IsNewItem Then
                        'Add Child
                        oChild = oAF_SPL1.Add
                    Else
                        'Update Child
                        oGeneralParams = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)
                        oGeneralParams.SetProperty("DocEntry", strCode)
                        oGeneralData = oGeneralService.GetByParams(oGeneralParams)
                        oChild = oGeneralData.Child("CHILDTABLEANAME")
                        oChild.Item(LineNum).SetProperty("FIELDNAME", VALUE)
                    End If
    Currently, i am using query to retrieve the lineId from child table. Does SDK able to pass in any additional params instead of LineNum to set current line of child item to update.

    Hi Yin,
    Yes, you can only update the main table, not a separate child record. using the API.
    Regards
    Ad

  • How to Call User Defined Procedure in Report

    I have a procedure which return some values.and i want to call this procedure in PLD.In PLD's  properties field there is a tab named Content , when i select source type as procedure and give the procedure name the PLD is unable to call this procedure.
    Regards
    Edited by: Philip Eller on Jun 26, 2008 11:09 AM

    Hi Sandeep,
    Please kindly refer to the definition of this type:
    You can use this type of field to print secured images, such as official
    stamps, which you are not legally permitted to save on your computer as
    regular pictures, but as *.dll files. The source types available for
    External Data fields include the values Procedure Name, Database,
    Formula and System Variable.
    To select an external data source type to print a fixed image:
    1. Choose Properties - Field > Content tab.
    2. Select Procedure Name in the Source Type field:
    3. Enter the name of the required *.dll file in the Procedure
       Name field.
    The *.dll file must be located in the extensions folder defined in
    Administration > System Initialization > General Settings > Path tab >
    Extensions Folder.
    Hope this clarifies the issue.
    Regards,
    Canna Mu
    SAP Business One Forums Team

  • Child reports and bind variables

    I'm working on a user defined parent/child report. What I'm having an issue with is using a parents bind variable value in a child. To simpify my example:
    The master query is:
    select count(*), document
    from download_audit
    where activity_date > sysdate-:DAYS
    group by document
    which returns a count of downloads for each document in the last :DAYS days. I want the child report to then list the person that downloaded a selected document:
    select document, user_id, activity_date from download_audit
    where activity_date > sysdate - :DAYS
    and document=:DOCUMENT
    This does not work because the initial :DAYS bind isn't sent to the child.
    If I add the :DAYS as a selected column to the master sql it works. e.g.
    select count(*), document, :DAYS days
    from download_audit
    where activity_date > sysdate-:DAYS
    group by document
    My question is, do child bind variables all have to be selected columns in the master query or is there a way to have a "global" bind variable that gets carried from master to child?
    I'm using SQL Developer 3.2.20.09 on OS X Lion
    Edited by: RoboMan on Nov 16, 2012 11:23 AM

    I agree whole heartedly :)
    If you want to make things even more interesting, create some 3rd generation child reports and carry the bind variables throughout the multiple levels - here's an example
    http://www.thatjeffsmith.com/archive/2012/09/grandparent-parent-child-reports-in-sql-developer/

  • PL/SQL in user defined reports

    Is it possible to use PL/SQL in user defined reports? As far as I know, it isn't, but...
    And one more question: can we do something like this in user defined reports:
    ' select * from :TABLE '
    where
    :TABLE is a bind variable?
    Thanks in advance
    Aliq

    I want to create a parent-child report, which in simply version does three things:
    parent
    1. takes all the table names from user_tables
    2. for each table_name (taken from user_tables) it takes a few rows from this table (selet A,B,C from table_name).
    child
    3. for each table name (from master) gives additional information from this table (select D,E,F from table_name)
    And I wonder if it's possible.

Maybe you are looking for

  • How to randomly change an image upon refresh?

    Hello, I just started my website and i was wondering if it is possible to randomly change an image upon reloading the page? I can't really find the answer anywhere and the widget confuses me.. anyone knows the answer to this one?

  • Multi Currency for outgoing Payment

    Hi, I am facing with an issue,while i am executing F110,the system is picking the local co code currency. Though i have maintained different bank accounts in FI12. For eg Bank1 : INR Bank2 :USD Bank3: EUR The document currency is in EUR and i want to

  • Firefox sync creates duplicate search/form history results

    I have Firefox synced on 3 PCs and a laptop. Some of the sites I visit, sync creates multiple duplicates in form/search boxes. Two that I know of for sure are outlook/hotmail (the box you enter your e-mail address) and my bank website (where I enter

  • Chart adustments

    Hello All, I am having an issue with charts. My setup is Apex 4.1.1 Internet Explorer. I currently have drilldown charts setup to pass values to the next page for the next chart to render the new information. Here's my issue when I pass 2 to 4 values

  • IMovie 08 is unusable due to "Hiro video codec is unavailable" will iMovie11 upgrade fix it?

    iMovie 08 is unusable due to a window that pops up telling me ; "Hiro video codec is unavailable" I have to force quit, in order to close iMovie. If I uninstall iMovie 08 and buy iMovie 11 upgrade from the App store will this fix the problem, or will