Issue using data link in XML Publisher

Dear All,
I am new to XML Publisher, for the first time trying data link concept in XML Publisher tool. The issue is very simple, I have two queries Q1(say it fetches sales_order_number, application_name ) and Q2 (say it fetches sales_order_number , error_number, error_description). And sales_order_number is passed as input using data link to Query Q2 from query Q1 and Q2 will retrive more than one row for a given sales_order_number.
Say for a given dept_name 1001 the output will be something similiar like
Q1:
SO# | Appl.Name
1001 | 'Invoice '
Q2:
SO# | Error.# | Error Desc
1001 | 1512 | No Data Found
1001 | 1513 | Invalid Entry
1001 | 2674 | Error while inserting the record
and the query which I have used in XML template goes like this
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[select sales_order_number, application_name                 
                  from T1
                 where sales_order_number = :in_sales_order_num]]>
</sqlStatement>
<sqlStatement name="LINES">
<![CDATA[
select sales_order_number , error_number, error_description
from T2]]>
</sqlStatement>
<link name="Dummy_LINK" parentQuery="Q1" parentColumn="sales_order_number" childQuery="Q2" childColumn="sales_order_number" condition="="/>
</dataQuery>
<daraStructure/>
And the grouping is as follows
<group name="G_Q1" source="Q1">     
     <element name="sales_order_number" value="sales_order_number"/>
     <element name="application_name" value="application_name"/>     
<group name="G_Q2" source="Q2">
     <element name="sales_order_number" value="sales_order_number"/>
     <element name="error_number" value="error_number"/>
     <element name="error_description" value="error_description"/>     
</group>
</group>
And in the RTF template I have properly used <?for-each:G_Q1?> <?for-each:G_Q2?>- --
<?end for-each?><?end for-each?>
Ideally the header (Q1) should have one row and the lines (Q2) should have 3 rows. But the issue here is even Q1 produces 3 rows.
If in case Q2 has 4 records, then Q1 also plots 4 records in the report output. Hope I am explaining the issue correctly. Any help to resolve the issue would be a great. Thanks in advance.
Regards,
Antony.

try like this
<?if: (TYPE='A') or (TYPE= 'B')?><TABLE STRUCTURE><?end if?>
or
<?if:contains('A~B', TYPE )?><TABLE STRUCTURE> <?end if?>

Similar Messages

  • Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher

    Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher where date should be displayed as date only not string.

    I've tried to use hierarchy node variables, but it seems like you can't specify a attribute of the hierarchy such as level.  So with the WBS hierarchy, if you create a hierarchy node variable, you specify the WBS value to select (If I understand this correctly).  I wish I could instead specify "give me all the WBS nodes that happen to have the value of the level attribute greater or equal to 3.  If I understand Juergens post, he is saying make security access so that only certain WBS levels can be returned in the query.  I suppose we can try that, but that would then preclude getting the level 1 and 2 in the future if the authorization is global.

  • Date Parameter in XML Publisher Enterprise

    Hello,
    Can someone tell me how to set up a date parameter in XML Publisher Enterprise? I cannot seem to get the right format for a date parameter, so my report will run. This report requires a date to be entered before the report can run. I am trying to use the format 'YYYY-MM-DD'.
    Any help would be greatly appreciated...
    Thank you,
    Susan

    Hi Susan,
    I also had some problems but found out the spelling is the key, so letters for day and years has to be small letter, letter for month has to be capital - a sample date format looks like
    dd-MM-yyyy ( check the possible formats of fields in RTF-Templates! )
    But anyway using date parameters seems a little instable in 5.6.2 - I have to save the parameter all the time even if I didn't change anything otherwise there was runtime errors
    Dirk

  • How to delete data definition form XML Publisher Administrator

    Hi all,
    I want to ask is there any possibility to delete existing data definition from XML Publisher Administrator responsibility?
    Version: 11.1.0.7.0
    Regards,
    Alexander.

    Hi,
    Once you opened the page, before do any action in it follow the below steps.
    1. Click the link 'About this page' in the left bottom.
    2. Click the Expand All option under page definition
    3. Then click on the view object 'TemplatesVO2' against the view attribute 'Data Source Name'
    4. A select query will be appeared in that you can find the source table for that particular page.
    Regards,
    Sathya

  • Error while creating data defintion in xml publisher

    Hi all
    when i am creating a data definition in xml publisher and click on apply button i got following error
    racle.apps.fnd.framework.OAException: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement " INSERT INTO XDO_DS_DEFINITIONS_VL(APPLICATION_SHORT_NAME,DATA_SOURC E_CODE,DATA_SOURCE_STATUS,START_DATE,DATA_SOURCE_NAME,C REATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DAT E,LAST_UPDATE_LOGIN,OBJECT_VERSION_NUMBER) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)".
    ## Detail 0 ##
    java.sql.SQLException: ORA-01779: cannot modify a column which maps to a non key-preserved table

    how about pasting the content of your data template here, so that forum members can see what could be the problem.

  • How to use if condition in XML Publisher Desk Top

    Hi..,
    How to use if condition in XML Publisher desk Top.
    Please guide me.
    Thanks,
    Suresh.

    What kind of condition you want to use?
    You can use Condition like this:
    <?xdofx:if condition then value1
    else if condition then Value2
    else Value3
    end if?>
    Please go thru XML Publisher User Guide.
    Thanks
    Ravi
    [email protected]

  • Problem with data template in XML publisher

    When I create data template in xml publisher and save it, I get next message:
    dbase:
    Failed to save data.
    Error occurred when creating xml data.
    undefined
    NaN
    NaN
    dbase is a database server
    JDBC connection name:asu_fox
    JDBC connection URL: jdbc:oracle:thin:@dbase:1521:ora03
    Text in data template:
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="data_report_2" description="data template for reports 2 and 10"
    dataSourceRef="asu_fox" version="1.0">
    <dataQuery>
         <sqlStatement name="Q1">
              <![CDATA[select kol_pl,kol_sv,trud_pl,trud_sv,nom_per_p,kod_polu_p,p_v,kod_tmc,liter,kol_skl,nom_per,shifr_dse,shifr_izd,kod_polu,kod_post,trud,kol_m,tip_rin,kod_op,kod_op0,order1,n_val,shifr_usel_val,sum_trud_val,sum_trud_val_sv from reporter.t_plan_report_2]]>
         </sqlStatement>
    </dataQuery>
    <dataStructure>
         <group name="group_all" source="Q1">
              <element name="kol_pl_l" value="kol_pl"/>
              <element name="kol_sv_l" value="kol_sv"/>
              <element name="trud_pl_l" value="trud_pl"/>
              <element name="trud_sv_l" value="trud_sv"/>
              <element name="nom_per_p_l" value="nom_per_p"/>
              <element name="kod_polu_p_l" value="kod_polu_p"/>
              <element name="p_v_l" value="p_v"/>
              <element name="kod_tmc_l" value="kod_tmc"/>
              <element name="liter_l" value="liter"/>
              <element name="nom_per_l" value="nom_per"/>
              <element name="shifr_dse_l" value="shifr_dse"/>
              <element name="shifr_izd_l" value="shifr_izd"/>
              <element name="kod_polu_l" value="kod_polu"/>
              <element name="kod_post_l" value="kod_post"/>
              <element name="trud_l" value="trud"/>
              <element name="kol_m_l" value="kol_m"/>
              <element name="tip_rin_l" value="tip_rin"/>
              <element name="kod_op_l" value="kod_op"/>
              <element name="kod_op0_l" value="kod_op0"/>
              <element name="order1_l" value="order1"/>
              <element name="n_val_l" value="n_val"/>
              <element name="shifr_usel_val_l" value="shifr_usel_val"/>
              <element name="sum_trud_val_l" value="sum_trud_val"/>
              <element name="sum_trud_val_sv_l" value="sum_trud_val_sv"/>
         </group>
    </dataStructure>
    </dataTemplate>
    I get this error with different data templates.
    Help me, please.
    Vladimir

    Hi Vladimir
    Can you test the data template posted here. http://static7.userland.com/oracle/gems/leslieStuddard/EMPLOYEES.xml
    It needs to connect to the sample scott schema, hopefully you have it installed?
    Let me know if you get the same error.
    thanks
    Tim

  • Problem with data size in XML Publisher report

    Hi Experts,
    I am working on EBS11i and database 9i. I working on XML Publisher reports, i have one XML Publisher report with generating output in EXCEL format. If i submit the report, if the data is huge (like 2.3 million records), it's ending up with warning, but if data is less, it's completing normal. Could somebody help me why it's behaving like this, is it because the report is XML Report, the xml file it's generating not have enough memory in server side if the data is huge.
    Could somebody help me how to solve this issue.
    Note: I need output in EXCEL format only.

    Pl identify the version of XMLP you are using.
    Pl post the complete warning message from the concurrent log file. Are there any additional error messages in the Output Post Processor log file ? Have you specified enough temp space using the XML Publisher Administrator responsibility ?
    How to Determine the Version of Oracle XML Publisher for Oracle E-Business Suite 11i and Release 12 (Doc ID 362496.1)
    Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite (Doc ID 364547.1)
    How to set the Temp Directory for BI Publisher ? (Doc ID 1166024.1)
    Output Post Processor (OPP) Log Contains Error "java.lang.OutOfMemoryError: Java heap space" (Doc ID 1268217.1)
    HTH
    Srini

  • Java.sql.SQLException: No corresponding LOB data found  in XML Publisher

    Hi
    I am getting java.sql.SQLException: No corresponding LOB data found : error when i submit XML Report Publisher request through SRS. I can view the output within the template by pressing the preview button during template creation .When i am submiting the request using SRS and also changing the Option to Excel in the layout format in SRS window and if i see the preview then i found this error ,
    "java.sql.SQLException: No corresponding LOB data found : SELECT FILE_DATA, DBMS_LOB.GETLENGTH(FILE_DATA), FILE_NAME, LAST_UPDATE_DATE FROM XDO_LOBS WHERE LOB_TYPE = :1 AND APPLICATION_SHORT_NAME = :2 AND LOB_CODE = :3 AND LANGUAGE = :4 AND TERRITORY = :5 at oracle.apps.xdo.oa.schema.server.XdoLobsInputStream.<init>(XdoLobsInputStream.java:108) at oracle.apps.xdo.oa.schema.server.LobHelper.getLob(LobHelper.java:877) at oracle.apps.xdo.oa.schema.server.LobHelper.getBlobDomain(LobHelper.java:911)"
    but for PDF it is working correct But it is not working when i submit XML Report Publisher.
    Could some one help me ?
    Our XML Publisher version in 5.6.2 for R12
    Template type is RTF and Template Output Type excelF aswell.
    Thanks
    Suresh

    java.sql.SQLException: No corresponding LOB data found Please see these docs.
    Why Does the 'Concurrent Program Details Report - XML Publisher' Fail with 'No corresponding LOB data found'? [ID 367456.1]
    Attempt To Publish FSG Report In One Step After XML Publisher 5.6 Upgrade Fails With No corresponding LOB data found [ID 398905.1]
    XML Report Preview : Java.Sql.Sqlexception: No Corresponding Lob Data Found [ID 418374.1]
    XML Publisher Report Issues [ID 862644.1]
    Thanks,
    Hussein

  • How to print Barcode data in Oracle XML Publisher Report

    Hi,
    We have an rdf report which prints Bar code in the starting page based on a custom procedure from MarkView. It works well with Oracle Reports.
    But since the current report was a matrix report, we are changing it to a Linear report through Oracle XML Publisher Report.
    We have all the things possible in the new Oracle XML Report.. But we are unable to print the Bar code data which is BLOB in the XML Report..
    Can anyone help me on this? We have UAT dates around the corner..
    We have an RTF Template .
    Help asap.
    Thanks
    Abhilash

    Hi Abhishek,
    Bar code Registration Steps in XMLPublisher responsibility:
    1.    Go to responsibility XML Publisher Administrator
    2.    Open Administration
    3.    Open Font Files Tab
    4.    Create Font File
    5.    Give Font Name : XX_BARCODE
    6.    File : Browse Barcode file
    7.    Apply
    8.    Go to Font mapping Tab
    9.    Open Create Font Mapping Set
    10.    Give Mapping Name: XX_BARCODE
    11.    Give Mapping Code: XX_BARCODE
    12.    Type : FO TO PDF
    13.    Apply
    14.    Open Tab Create Font Maping
    15.    Font Family: Code39-Digits(This name should be exactly the font name comes in word)
    16.    Style: Normal
    17.    Weight: Normal
    18.    Target Font Type: Truetype
    19.    Continue
    20.    Font : XX_BARCODE
    21.    Apply
    1.    Go to Template Tab
    2.    Query for your template
    3.    Open Edit Configuration
    4.    Click on FO Processing
    5.    In Font Mapping set Give XX_BARCODE
    RTF Template (word):
    1.Design the RTF template
    2.Insert the barcode against reqd field
    3.Make sure to put an * before and after the barcode so that scanner understands the beginning and end
    Please send your rtf ,xml file if you are still facing issues.
    Rgds,

  • Using dataTemplate on standalone XML Publisher doesn't work?

    Hi guys, I'm using standalone XML Publisher. I created a report based on the next Data Template:
    <dataTemplate name="BasicQueryDT" description="Simple query data template" dataSourceRef="rec_hum">
         <dataQuery>
              <sqlStatement name="basicQuery">
                   <![CDATA[
             select to_char(sysdate, 'dd/mm/yyyy') today
             from   dual
          ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_Main" source="basicQuery">
                   <element name="TheDate" value="today"/>
              </group>
         </dataStructure>
    </dataTemplate>Then I defined a RTF template to display the results, I used the Word Template Builder for this. The template is very simple and it is just a one column table with these place holders:
    <?for-each:G_Main?> <?TheDate?><?end for-each?>But when I run the report it shows nothing, just the header of the table. I know the query is executed because if I place a syntax error into the query I can see the java.sql.Exception on the XMLPSERVER console (I'm running it local by now).
    Can someone help me and point out what I'm doing wrong here?
    I'd really appreciate it.
    Thank you all.
    Mensaje editado por:
    Fer Domin

    Just run the XML first without a template, you get:
    <BasicQueryDT>
         <LIST_G_MAIN>
         <G_MAIN>
    <THEDATE>12/06/2006</THEDATE>
    </G_MAIN>
    </LIST_G_MAIN>
    </BasicQueryDT>
    Per default we always the generate Upper Case field names. So <?THEDATE?> should work in the template.
    Thanks,
    Klaus

  • Multiple Data Sources for XML Publisher in APPS?

    Is it possible to draw data from two different reports (i.e. two different data sources) into a single template, using XML Publisher in APPS?

    Gareth is correct if it's only ONE report. It's my understanding that it's two reports that you want to merge into one report. If this is the case then the options I gave you are still correct.
    Option 3: You could add a third option which is to keep the reports the same, set the output in the concurrent program(s) to xml. You will still have to merge the xml files and apply the format template which would require a javaConcurrentProgram.
    Option 4. You could do option three but with a twist. Create two format templates, apply them to each xml output, then use the pdfMerger utility to create a single document. This may or may not work based on your requirements.
    Ike Wiggins
    http://bipublisher.blogspot.com

  • Issue with conditional formatting in XML publisher report

    Hi All,
    I am working on a XML report where in I am required to use conditional formatting to highlight changes, if there is change in any of the column value. The condition is required to be implemented on a text column as well as a number column. I have tried to use the conditional formatting available in the BI Publisher Release 10.1.3.2, wherein I have compared the two columns, and when they are not equal to, then formatting should change to red color; but the same is not working in the excel output.
    Can anybody help here?
    Thanks,
    Nitin

    Cross conditional formatting ie formatting based on some other column is not supported in pivot view.
    There are some workaround.See if that helps
    http://www.obinotes.com/2010/03/pivot-view-conditional-formatting-in.html
    Regards,
    Sandeep

  • Popup blocker issue when trying to open XML publisher report in Excel forma

    Hello
    I am having the XML report in excel format, when i click on output it was blocking by popup blocker i think and when i click 'Control' button on my keyboard and then press the output it will show the window to save or open the excel. I have added my instance name in the popup blocker setting in the 'Allowed' list but still having the isseu... Anybody have any comments on this...

    General-D wrote:
    We recently upgraded to TestStand 2012, and we are having trouble with the creating a readable report.   We have the results set to .xml.   Previously we were using TestStand 4.2 and we were able to convert the .xml to .xls using a stylesheet.  But this doesn't work now.   I’m getting an error – doesn’t have a top level element.   We installed TestStand 2012 using a new enterprise site license, and I wondering if we are missing something on the install.  I don't see any TestStand 2012 folder in the C:\Program Files\National Instruments\TestStand xxx.   Also is there a better way to create reports that are already converted to .xls, so that anyone can read the reports using excel?
    Thanks, Dale
    I do not think TestStand ships with a stylesheet to do any such conversion, so I am assuming this is a custom stylesheet that you have either written or gotten from a 3rd party. It's possible something is formatted differently in the xml in TestStand 2012 that your stylesheet is not expecting. You might need to debug and modify your stylesheet to make it work with TestStand 2012.
    There should be a TestStand folder. Perhaps you are on a 64-bit OS in which case the folder would be located at:
    C:\Program Files (x86)\National Instruments\TestStand xxx
    Hope this helps,
    -Doug

  • Error when using FND FORMAT_CURRENCY for XML Publisher report

    XML_REPORTS_XENVIRONMENT is :
    /apps01/applclone/erpcloneora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /apps01/applclone/erpcloneora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    _AMERICA.UTF8
    stat_low = B
    stat_high = 0
    emsg:was terminated by signal 11
    Program was terminated by signal 11
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 3125762.
    Review your concurrent request log and/or report output file for more detailed information.
    Edited by: user11972592 on 20-May-2010 02:30
    Edited by: user11972592 on 20-May-2010 02:46

    I just tried:
    substr(to_timestamp(svs_date, 'dd-mon-yy'),1,9)which crops it but then the interactive searches dont work again so its basically the same as Date. :(
    Mike

Maybe you are looking for

  • Debayer Settings not Working??

    I've had a thread going over on RedUser here: http://www.reduser.net/forum/showthread.php?72431-Premiere-Media-Encoder-Render-Tests-Matr ox-CompressHD-Card-Results Basically in the source settings for any .r3d file in Premiere, you can choose High, M

  • Table Interface / Web: value from free characteristic

    Hi, i am using 2 queries. In the first query i got the free characteristic "calendar year month". Now i created a link with table interface to jump to the second query. With this link i would like to filter query 2 with calendar year month from query

  • Logic doesn's recognize my Roland TD3 MIDI connection.. HELP!

    Hi, Maybe someone can help me with this. I am trying to use my Roland TD3 through a MIDI cable (TD3 MIDI OUT TO MBOX 2 MIDI IN) with Logic 9, but it doesn't seem to recognize the TD3 as I rescan for midi. I know MIDI is working just fine because I ha

  • Trying to insert a Large CLOB : connection reset by peer

    I am Trying to insert a Large CLOB .. i get this error message java.sql.SQLException: Io exception: connection reset by peer I am using a prepared statement to insert a Clob. It works fine with small data. Thanks for your help in advance.

  • App-V 4.6 Content Paths

    Hi I have a question about App-V content paths using the 4.6 SP2 native infrastructure. From the App-V Management Console we have to configure the Default Content Path, then for each individual application we can configure OSD and icon paths. Additio