One record in the master Query, many in the child. Data Template Woes

Hi Folks.
Can't get my head around this and I wonder if anyone could shed some light.
I have the following simple data template set up.
<dataTemplate name="Invoice" description="Default Invoice" version="1.0">
<parameters>
<parameter name="P_INVOICE_ID" dataType="character"/>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[select invoice_id                  
             from vw_invoice_summary
             where invoice_id IN (:P_INVOICE_ID)]]>
</sqlStatement>
<sqlStatement name="Q2">
<![CDATA[Select invoice_line_item_id
            from invoice_line_item
             where invoice_id = :invoice_id]]>
</sqlStatement>
</dataQuery>
</dataTemplate>
When I set the Parameter to a valid invoice ID, I only get the following result. There should be two sets of data being returned. One set with the single parent record and the second set with roughly thirty records.
<?xml version="1.0" encoding="UTF-8" ?>
- <INVOICE>
<P_INVOICE_ID>16946</P_INVOICE_ID>
- <LIST_Q1>
- <Q1>
<INVOICE_ID>16946</INVOICE_ID>
</Q1>
</LIST_Q1>
</INVOICE>
Where is the Q2 data set? Can anyone see what I'm doing wrong? Can anyone point me to the right section of the documentation? I have read and re-read the BIP Users Guide (Section 4) but I guess I must be missing something.
Any help gratefully received.
Many thanks.
Simon

Hi Ike.
Quick question for you.
I have the Groups defined and my template is working well with them.
My final sticking point is the incorporation of a parameter.
My template starts like this...
<dataTemplate name="Invoice" description="Invoice">
<parameters>
<parameter name="invoiceid"/>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[select * from vw_invoice
                   where invoice_id IN(:invoiceid)]]>
</sqlStatement>
<sqlStatement name="Q2">
<![CDATA[Select.................
I am trying to call it using a SOAP Envelope containing this...
<parameterNameValues>
<item>
<name>invoiceid</name>
<multiValuesAllowed>true</multiValuesAllowed>
<values>
<item>18421,16946,19178</item>
</values>
</item>
</parameterNameValues>
The result being recorded in BIP Schedules is "Data not defined".
What am I doing wrong? Any thoughts?
Kind regards.
Simon.

Similar Messages

  • ** How to show the master query group for once in Report??

    Hi
    I've developed a master-detail groups at a report
    The master one has it's repeating frame and the detail one has another repeating frame and put at another page at the layout.
    The porblem is that the master one is shown (the same record) in pages for times equal to the number of the detail records which is own for that master record!
    Example:
    if the master record has got three details then the master data will be show for three times (three pages) at run time and then the page number 4 will show the three detail records.
    How to make the master data to be shown only for once (page number 1 only) and then show the detail three records at the next page (page number 2) at run time???

    Hi,
    the question back is, what you've done for this. At default the master record is only shown once. Could it be, that the master-fields are inside the repeating frame for the details?
    Regards
    Rainer

  • Why does using a digital connection from headphones out on a Mac into a stereo disable the master volume control on the Mac?

    When you use an analog connector, it does not disable the master volume on the Mac. It's only when you use a digital connector, and it's ALL digital connectors. It still allows you to use the iTunes volume control but, when you stream anything else on the web on your computer, you have to use the stereo's volume control because the master volume control on the Mac has been disabled. Does anyone know why?

    I had the same problem, instead of logging in the router with the iMac (impossible) I did it with my iPad, I guess you can do the same with an iPhone.
    -Disconnect the iPad from your wifi network and connect it to the TP-Link repeater.
    -Open the web browser (I use chrome) be sure you don't have any other open tab, just the one to access tptlinkextender.net
    -The configuring page opens, from there follow the steps of detecting your network and adding the password.
    *If your MAC address is hidden it'll appear without name, in that case you have to configure it manually (write the name on the space for that)
    Now go, be happy and do good.

  • Can anybody provide the SQL query to find the files uploaded in a particular folder?

    Hi All,
    Can anybody provide the SQL query to find the documents (document name) uploaded in a particular folder? While clicking on folder in
    GUI I'm hitting the Timeout error. I would like to find the files uploaded into this folder from SQLPLUS.
    Any help is greatly appreciated.
    With best regards,
    Nevin

    Nevin,
    Be great if we could know the version of Portal. For Rel. 1, here's the query
    select id,masterthingid from wwv_things
    where siteid = &site
    and cornerid = &corner
    &site - Content Area id
    &corner - Folder id
    if you don't know the folder id, use
    select id from wwv_corners where siteid = &site
    and name = &folder
    Hope this helps. I have run into this situation before. Usually, the culprits were
    one of the following:
    1. Junk Characters in description of item (caused due to Copy-Paste)
    2. Special Characters in the File name
    Hi All,
    Can anybody provide the SQL query to find the documents (document name) uploaded in a particular folder? While clicking on folder in
    GUI I'm hitting the Timeout error. I would like to find the files uploaded into this folder from SQLPLUS.
    Any help is greatly appreciated.
    With best regards,
    Nevin

  • An error occurred during translation of your HTML master page. For more information, please navigate to the master page by clicking the preview button in the Master Page Gallery or directly typing its URL

    I apply theme before singing all users into application ,now  visitor/member are not affected color text so we are reapplying themes 
    I am not able to reapplying SPColor /my site Host template "  An error occurred during translation of your HTML master page. For more information, please navigate to the master page by clicking the preview button in the Master Page Gallery
    or directly typing its URL" while applying theme i am getting error
     

    is it your public site/ community site or team site?
    what level of subscription you have?i would say try to delete the site and try to create a new.
    http://community.office365.com/en-us/forums/154/t/147705.aspx
    are you able to open the site in the sharepoint designer?
    or try to send them the private message to the support team.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Give me the sql query which calculte the table size in oracle 10g ecc 6.0

    Hi expert,
    Please  give me the sql query which calculte the table size in oracle 10g ecc 6.0.
    Regards

    Orkun Gedik wrote:
    select segment_name, sum(bytes)/(1024*1024) from dba_segments where segment_name = '<TABLE_NAME>' group by segment_name;
    Hi,
    This delivers possibly wrong data in MCOD installations.
    Depending on Oracle Version and Patchlevel dba_segments does not always have the correct data,
    at any time esp. for indexes right after being rebuild parallel (Even in DB02 because it is using USER_SEGMENTS).
    Takes a day to get the data back in line (never found out, who did the correction at night, could be RSCOLL00 ?).
    Use above statement with "OWNER = " in WHERE for MCOD or connect as schema owner and use USER_SEGMENTS.
    Use with
    segment_name LIKE '<TABLE_NAME>%'
    if you like to see the related indexes as well.
    For partitioned objects, a join from dba_tables / dba_indexes to dba_tab_partitions/dba_ind_partitions to dba_segments
    might be needed, esp. for hash partitioned tables, depending on how they have been created ( partition names SYS_xxxx).
    Volker

  • The Power Query ribbon and the Power Pivot ribbon are gone !

    Hello,
    I created in Excel 2013, using Power Query, two large tables (more than 4 000 000 rows) according this principle: << However,
    the query pane that shows up on the side while data is loading lets you disable "load to worksheet". The data will continue to download. Once the download is done, you can click on "Load to Data Model" which will then get the data into
    the underlying xVelocity/data model.>>
    I built two calculated columns in order to create PRimary and Foreign keys for relations.
    I saved the xlsx file several times
    I Closed the xlsx file
    I reopened the xlsx file but, bad news, the
    Power Query ribbon and the Power Pivot ribbon are gone !
    I can check the the data connections are still there.
    What happened? What did I miss ?
    Thanks for your help
    Error message when I refresh connections :

    When I restart the computer, Power
    Query and Power
    Pivot ribbons come back. But if I enter a
    formula, they go away again.
    What could be the solution?

  • Same the same query against all the schemas

    Hi all,I am a newbie to databases
    I have a requirement where in in need to run the same query against all the schema s in the database.what would be the best way to do it.other than logging into each user and running query.Its a complex query I can't do a direct select  from sys or other even for I will have to change a lot of things.Is there a easier way to do it ??
    Thanks in advance

    990051 wrote:
    Hi all,I am a newbie to databases
    I have a requirement where in in need to run the same query against all the schema s in the database.what would be the best way to do it.other than logging into each user and running query.Its a complex query I can't do a direct select  from sys or other even for I will have to change a lot of things.Is there a easier way to do it ??
    Thanks in advance
    you have a choice between logging into each user & running the SQL or you can log into each user & run the SQL.

  • Can I adjust all the master gains for all the keyframes at once?

    I edited a whole scene and keyframed some corrections but I wanted to change a few settings for the keyframes such as master gain. Is there anyway to fix this so I can just adjust all the master gians for all the keyframes at once? Thanks!

    If its the vignette geometry that is keyframed, and not the corrections, as written, (there is a distinction) then the color values are presumably NOT keyframed, as the keyframe only applies to that room/component of the grade, and not the whole grade. Your Primary In correction, in this case, is NOT keyframed and all the normal rules for revising corrections apply.
    Apple COLOR has a systemic definition: a change in values for a ROOM is a "correction", and the accumulation of corrections for a clips is a 'grade'.
    Keyframes only govern the behaviour of the room that they are created in, and don't apply across the board to the whole grade. The advantage is that the corrections can act independently.. the disadvantage is that the grade itself cannot be copy-and-pasted into another keyframed clip without any preparations.
    There are ways of doing that that are not in the Manual.
    I concur with your view of tracking, and you do have to do a wetware estimate to decide whether the investment is worth it... maybe a start and end keyframe is all you need, and adjust the trajectory as required.
    Wetware= that 'goo' between most people's ears, that starts right behind their eyes.
    jPo

  • How can I change the report query source on the fly

    I am new to Bi Publisher,
    I have a user that wants to select certain columns in the table then have bi publisher make a pdf on just those columns
    without making different reports for each of there choices, how can i make the report variable?
    Thanks,
    Doug

    Hi Doug,
    You can also use lexical parameters to determine the columns in a Data Template (or Oracle Report)... taking it to the extreme the major components of a BI Publisher data template could be dynamic.... something like:
    select &select_clause
    from &from_clause
    where &where_clause
    Regards,
    Gareth
    http://garethroberts.blogspot.com
    http://www.virtuate.com

  • Passing a default value to the master block and do the auto query

    Hi
    My problem is i have a MD FORM to which i have to pass a default value and do an auto query so that when i run the form the form should open with this default value and do the query and get the details.
    I tried many things like trying to set the value of the column using p_session.set_value and then calling the same form using wwa_app_module_link by using the value in the condition but every time unless i press the query button i did not get the values.
    Now i don't know what to do.
    My portal version is 3.0.7.6.2
    Some body please help me
    thanks
    Sreedhar

    I don't think this works for 3 parameters, but I know it will work for 1. Maybe you can do something with it.
    1. Create a link to the destination component (YourProvider.YourLink)
    2. Use the code below to use that link to pass the value of a form field to the destination component. 'FieldName' is the field on the destination component you want to query, and '_FieldName_cond' is the condition. This creates the destination URL.
    3. wwa_app_module.set_target(l_url) will send you to the URL you generated.
    l_url := PORTAL.wwv_user_utilities.get_url('YourProvider.YourLink', 'FieldName', v_YourParameterValue, '_FieldName_cond', '=');
    portal.wwa_app_module.set_target(l_url);
    I'm not the best at this, but this works for me in most cases.

  • Modbus Ethernet Slave seems to fail when the Master query information simultaneously for more than 16 Coils or Discrete Inputs.

    I'm developing an control application by using the Modbus TCP/IP for communicating with the host computer.
    I'm using the Modbus Library for LabVIEW
     (http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=F1582737BACF5CA8E0340003BA7CCD71&p_node=DZ52363&p_source=External).
    The LabVIEW MB Ethernet Slave seems to fail when the MB Ethernet Master
    query information simultaneously for more than 16 Coils or Discrete
    Inputs.
    The Modbus Application Protocol Specification (http://www.Modbus-IDA.org) state that:
    1- The function code 0x01 'Read Coilsis' is designed to read from 1 to 2000 contiguous status of coils in a remote device.
    2- The function code 0x02 'Read Discrete Inputs' is designed to read
    from 1 to 2000 contiguous status of discrete inputs in a remote device.
    To test the behaviour of the LabVIEW MB Ethernet Slave I have modified
    the 'MB Ethernet Example Slave.vi' by adding more Coils and Discrete
    Inputs. I have added up ONLY to 20 Coils and 20 Discrete Inputs.
    By using the 'MB Ethernet Example Master.vi' the answer to the MB query
    is correct for the first 16 Coils or Discrete Inputs. Starting from the
    17th Coil or Discrete Input the MB Ethernet Slave doesn't give any
    answer.
    By shifting the start point address the answer remain correct for the first 16 Coils or Discrete Inputs.
    I have tested the slave by using also a third part MB Ethernet Master and the behaviour is the same.
    1) There is a reason for this behaviour?
    2) There is a Modbus Library for LabVIEW that satisfy the  'Modbus
    Application Protocol Specification' managing from 1 to 2000 contiguous
    status of Coils or Discrete Inputs?
    Thanks,
    Asper

    I have the same problem with the MB Ethernet.
    I need 40 Outputs.
    The first 16 work perfectly. The next 8 coils do not work, The next 8 work, The next 16 do not work,The next 8 work,The next 24 do not work And work for the last 8. Conclusion, to activate the 40 outputs, I needed 88 coils.
     Because 48 coil, do nothing Can someone help me and i cant implemet the jim solution

  • In a helpset with multiple chms, how do you make the master toc appear in all child chms?

    I'm using RoboHelp 11. The software product I'm documenting is modular so the help is also divided into many chms (requirement). One of the other requirements is that the TOC from the master project appear, no matter which which chm contains the link called by the software. I've done this with merged WebHelp (kudos to Peter Grainge), however I haven't been successful doing it for HTML help using RoboHelp. Has anyone attempted this successfully? Any tips would be appreciated.

    This requires you to make the following changes:
    In each of the projects, open the window being used to display the CHM. Click Advanced Properties and enter the file name of the master project's TOC in the "Table of Contents" field.
    Having compiled all the files, open up the Master project's .HHP file in Notepad. Look for the [MERGEDFILES] section. This should have a list of all the CHMs that make up the final deliverable. It has been some time since I've used CHMs, so I can't remember if you have to do this in all the projects. Try it in the master project first and you'll find out if you do.

  • In DBI , how to find out the Source Query used for the Report

    Hi All,
    How to find out the Source Query used to display the data in the DBI Reports or Dashboards. We can get it in Apps Front end by Going to Help and Record Histroty. But DBI Runs in Internet Explorer so i dont know how to get the source query ( SELECT Query ) Used.
    In IE we have View --> Source . But that does not help since it gives the HTML Coding and not the SELECT Query used.
    If anyone has ever worked on it...Please help me in finding it.
    Thanks,
    Neeraj Shrivastava

    Hi neeraj,
    You can see the query used to display reports.Follow these steps to get the query.
    1)Login to oracle apps
    2)Select "Daily Business Intelligence Administrator" responsiblity.
    3)Now click on "Enable/Disable Debugging" (Now u enabled debugging)
    4)now open the report which you want to see the query of
    5)In view source it displays query along with the bind varilables.
    Feel free to ping me if you have any doubts
    thanks
    kittu

  • How to retain the master slide background at the end of the quiz reporting page of a project

    I have noticed that the content of the master slide is not retained till the end in the quiz results page of the project. What should I do to retain the contents till the end of the project?

    Hi,
    Thanks for your time. I have checked the transitions. i didnt give any transition to the slides in the project and i also check the preferences too, i had disable the options that is to fade in and fade out. My problem is "I have 12 slides in this with an intro slide and 10 question slides and then the quiz results page. In that result page, it is showing the result at the end of the result slide the pause button in the skin turned to play button. While clicking that play button it shows only the results, review quiz button and retake quiz button only. It doesn't display the images, widgets, text and some other options which is used in master slide or in the slide itself " Why those things have disappeared? Can you guide me how to overcome this issue.
    The solution for the playbar is quiet good. One more doubt in that, The play bar should be displayed in that page but it should be disabled, Is there any solution for this? If yes, kindly share with me

Maybe you are looking for

  • ITunesSetup dont want open

    I downloaded last version of iTunes, but when i doubleclick on it WindowsXP says that digital signature is not valid and it did not open. Now when i click at setup it did not react, redownload did not help. Checking options of file it really show tha

  • How to handle system errors in XI using BPM? please help!

    Hi Experts,      I have a requirement where I have to handle system errors. For example when I am making RFC call using RFC adapter if the remote destination is down then I have create a understandable error message and store it in another SAP table.

  • Missing photos when importing from a Fuji s602zoom digital camera

    I noticed that when I import the photos from my digital camera (as above), sometimes there are some missing. No error messages displayed and the import seems to finish OK. This makes life difficult as I cannot now trust iPhoto and have to check every

  • How to dimension the JTable columns?

    Hello All, I would like to Know how to choose the horizontal size of the each JTable columns , I did not find anywhere? Thanks in advance

  • New modem for upgrade to Triple Play?

    I currently own my own modem for Comcast internet but am upgrading to the Triple Play and know that I need I modem that also is telephone capable. I have my own router.   I have been told to buy the Arris TM722G (or Arris TM862G for included router).