Multiple templates based on a condition

Hi everyone. I have a requirement that has left me scratching my hair out.
Basically, I have a report with a parameter. Based on the parameter I want to use a different RTF template. The query in my rdf file remains the same but I want to use a different template file based on whatever is the value of my report parameter.
Is this possible in BI Publisher? I read something about subtemplates but I'm not sure it's exactly what I am looking for.
Any help will be welcome.
Thanks

Yes you can do that through sub templates. Please do have a look at the section To handle parameterized layout in link http://www.oracle.com/technology/products/xml-publisher/docs/BIP-SubTemplate.pdf

Similar Messages

  • Single iDOc to multiple files based on a condition

    Hi Friends
    need your help in one scenario which is something like this:
    there is one iDOC as the sender and this iDOC has to be mapped to files based on a condition means let us say if there is a particular field "R" in iDOC(WPDBBYY01) than it should go and create the file "ABC"
    and if the particlar field is P or G or M than it should create another 2 files named "XYZ" and "WUV" .
    Please guide me how can i put this condition ?
    Any help would be rewarded with points
    Thanks

    Have a single receiver and 2 inbound interfaces.
    So you will have 2 different mappings. In the first mappng source is IDOC and the target is file ABC.
    In the second mappping the source is IDOC and the target is 2 files XYZ and WUV.
    In Interface determination, add both the inbound interfaces and put the condition for each interface.
    Regards,
    Jaishankar

  • How to create multiple idocs based on complex condition

    HI Users,
    my scenario is jms(xml file) to idoc. for each file have multiple records for each record i need to create multiple idocs.
    source structure:
    <lineitem>
    <student sid="cid">456</student>
    <hreference>
    <reference rtype="number">123</reference>
    </hreference>
    <hreference>
    <reference rtype="number">789</reference>
    </hreference>
    <hreference>
    <reference rtype="char">147</reference>
    </hreference>
    now condition is One input message must create only one output message for each unique  rtype="number" and sid="cid" combination.
    for example
    1. rtype="number" and sid="cid" the value combination means 123456 for this one idoc
    2.  rtype="number" and sid="cid" the value combination means 789456 for this one idoc
    --> the below file shows with out sid="cid"
    <lineitem>
    <student sid="abc">456</student>
    <hreference>
    <reference rtype="number">123</reference>
    </hreference>
    <hreference>
    <reference rtype="number">789</reference>
    </hreference>
    <hreference>
    <reference rtype="number">147</reference>
    </hreference>
    in this case we have to consider only rtype="number" so here we need to create  3 idocs.
    Could anyone help me in this regard.
    Thanks in advance

    Hi Swathip,
    Change the occurence of the IDoc to "unbounded", so that multiple IDocs can get create
    Try with below logic
    If (SID = "CID")
    Then
         If(rtype = "number")
              concat(student,reference ) ---> removeContext ---> Idoc          
    Else
         rtype ---> removeContext ---> Idoc
    If combination of unique  student and reference can occur more than once in the XML, use sort command and splitByValue (Value Change)
    Edited by: chandra shekhar on Jul 3, 2011 12:53 PM

  • How to  hide information on the rtf template based on some condition

    Hi,
    I'm writing a new rtf template for our custom PO print program in EBS 11.5.10.. In reports 6i, you can have a format trigger on a frame or repeating frame and you can achieve this.. Can you please let me know if this is possible in XMLP and how can i do it..
    Thanks,
    Shree

    Hi Shree,
    see for example if you want to get the employees record group by department number then...in this case if you want to hide some columns of employees then use if condition...where you are using ur column name.....
    like this .....if you want to hide salary column for dept no 20 then
    if dept no<> 20 then sal end if;...... use this at the column def....
    its like a dynamic data column generation.....for the exact code you can refer to XML Publisher User Guide......Chapter is Creating RTF Template.....section is dynamic Data Columns...
    Regards
    Ravi

  • Writing in to multiple sheets in Excel file based on input condition

    Hi All Experts,
    i need to write in to multiple sheets in one Excel file output.
    is it possible with UTL_FILE ? or Any options there in Oracle to do this ?
    Can anyone please suggest me on this.
    Thanks,
    Ravi

    I have seen all of them they are all just simple SQL pulls from database in to Excel file..No, definitely not
    My requirement is i need to write in to one single Excel file with MULTIPLE sheets based on input condition-> [xml_spreadsheet|http://matzberger.de/oracle/spreadsheet-en.html]
    so for each parameter need to write into separate sheet in one Excel File..-> [xml_spreadsheet|http://matzberger.de/oracle/spreadsheet-en.html]
    I hope you understand my problem atleast now...I think I understood your problem at first sight.
    If you simply want to throw 2 queries at the package and get back an Excel file with 2 worksheets you just have to look at the first page of the [tutorial |http://matzberger.de/oracle/spreadsheet-tut-en.html]. Half way down the page there's an example.
    If you want a special formatting then you can do this too, it's described step by step.
    Regards
    Marcus

  • How to delete a row of a template by giving a condition in the smartform

    hi all,
    I HAD A TEMPLATE IN A SMARTFORM.
    WHICH CONSISTS OF 4ROWS AND 4 COLOUMNS.
    MY REQUIREMENT IS .
    IF I SPECIFY A PARTICULAR PLANT(WERKS) CONDITION FOR EXAMPLE 2060.
    THE ENTIRE 4TH ROW WITH CONTENTS HAS TO BE DELETED.
    AND FOR OTHER PLANTS IT HAS TO BE NORMAL.
    NOTE :  NOT ONLY THE CONTENTS BUT ALSO THE ENTIRE 4TH ROW NEEDS TO BE DELETED
    regards

    Hi,
    There are 2 ways to achieve the results you want.
    1) Instead of creating a TEMPLATE under node, use TABLE option available. Provide name of the internal table of 4 * 4 as Resource internal table in DATA tab of Table. Before Table node, add program lines containing the logic to remove the line based on the condition you want.
    2) Create 2 different templates. One containg 4 rows, another containg 3 rows. In CONDITION tab of both the template , provide the conditions for which the templates will be visible. Solution will definitely work out still not preferable as the scenario you mentiioned is clearly a requirement of Table and not template.
    Regards,
    Amee.

  • Creating multi-page document with multiple templates

    Hi,
    I am new to Pages and am attempting to create a photo book that I can export as a PDF and have printed through an online service. I have successfully created multiple templates in Pages that I want to use in my book, but cannot figure out how to create a new page based on an existing template. If I select "New" or "New from Template Chooser" I end up with a brand new document, not a new page in my existing document. If I select Insert --> Pages, I am only given the choice to insert a Text or a Blank page. How do I insert a new page based on a template? Or, how do I apply a template to a blank page?
    Thanks very much,
    Eric

    Okay, I have figured out a way to accomplish my goal. I have my master Pages document that I am adding pages to by:
    1. File --> "New from Template Chooser"
    2. Selecting my template
    3. A new document is opened
    4. I add my photo and custom text
    5. Copy the new page from the Pages area in the left nav
    6. Paste the new page back into my master document
    This works, although is a bit cumbersome. Would much prefer to be able to simply add a page in my master based on an existing template, but I still don't see how to do that...

  • How to default the  template based on a responsibility

    Hello All,
    I am working on 12.1.1 and XML Publisher version 10.1.3.2.1
    I have a concurrent program with multiple templates, one each for different language/territory combinations. The layout of each template is different. In the template definition, I have different localized template files for each lang/terr combination
    template_en_GB- UK
    template_en_IE - Ireland
    template_de_DE -Germany
    template_sv_SE -Sweden
    Template_en -Default
    When the user submits the request, for UK, Ireland and Germany it picks the correct template as defined in the territory but for Sweden the template is always defaulted to the default template file in the template definition and the user needs to change it to their desired template each time. How do I default the template based on the language/territory of Sweden combination. It is working fine for all other territories buit not for Sweden. We have not used the add.layout option in any report so I don't want to use that option.
    Is any setup I am missing for Sweden?
    We are having Sweden rollout soon.
    Thanks,
    Joohi
    Edited by: 935051 on 11-Jan-2013 03:09

    if for other template it's work fine
    then IMHO only SR

  • XML publisher multiple templates in a single report

    Hello
    We are currently implementing PeopleSoft benefits where the user will have an option to select a benefit template from multiple selections and create a report form based from the combination of template he selected.
    My question would be based from the multiple templates, is it possible if the templates be printed out into just one report using xml publisher?
    thank you!

    Yes. This is possible by using sub templates.
    You can declare sub templates in the beginning and then call the sub template.
    You will need to register the sub templates in "Content Library" (Reporting Tools > XML Publisher> Content Library) to be able to call thses from another template.

  • Dynamic insertion of elements based on dynamic condition

    I need to achieve the following:
    Input:
    <Customer>
         <name>Name1</name>
         <email>Email1</email>
         <phone>Phone1</phone>
         <Number>Num1</Number>
    <Customer>     
    Output:
    <Customer>
         <name>Name1</name>
         <email>Email1</email>
         <phone>Phone1</phone>
         <Number>Num1</Number>
         <Addresses>
              <Address>add1</Address>
              <Address>add1</Address>
              <Address>add1</Address>
         </Addresses>
    <Customer>
    Based on the number of Addresses that exist for the customer, multiple <Address> elements should be added.
    I can't determine number of Addresses at the beginning. It is deterrmined dynamically based on certain condition.
    So each time when the condition is met, I need to get the count of <Address> elements that exist and insert the new one last.
    My logic:
         Switch (case)     ==> Add <Address> only if condition is met
              count ==> count(bpws:getVariableData('outputVariable','payload','/ns1:Customer/ns1:Addresses')) ==> 0 first time
              <Addresses>
                   <Address>add1</Address> ===> Now I need to insert this.
              </Addresses>
    I have the following in my bpel:
    <assign name="AssignInsertAfterExisting">
    <copy>
    <from expression="count(bpws:getVariableData('outputVariable','payload','/ns1:Customer/ns1:Addresses'))"/>
    <to variable="NumberOfAds"/>
    </copy>
    <copy>
    <from expression="'123 street'"/>
    <to variable="nextAddress"/>
    </copy>
    <bpelx:insertAfter>
    <bpelx:from variable="nextAddress"/>
    <bpelx:to variable="outputVariable" part="payload"
    query="/ns1:Customer/ns1:Addresses/ns1:Address squareBrakets NumberOfAds squareBrakets"/>
    </bpelx:insertAfter>
    </assign>
    But with the above I am receiving the folllowing error:
         Assign Operation Misuse.
         The to-spec does not yield any data; insertAfter operation cannot be performed.
    Please check the BPEL source at line number ..
    I can I insert dynamically insert elements into array. I have seen the example provided in samples, but my problem is little different than that.
    Edited by: user10367892 on Aug 4, 2009 3:16 AM

    append is appending value of variable to existing element, instead of creating a new element in the array:
    For Eg:
    Input:
    <bpelx:append>
    <bpelx:from variable="nextAddress"/>
    <bpelx:to variable="outputVariable" part="payload" query="/ns1:Customer/ns1:Addresses/ns1:Address"/>
    </bpelx:append>
    Output if nextAddress = Address2 and if <Address>Address1</Address> already exists
    <Customer>
         <Addresses>
              <Address>Address1Address2</Address>
         </Addresses>
    </Customer>

  • Display Templates based on Roles

    Hi,
    I have a requirement in which i need to display different template based on the user roles(eg : Manager, Clerk ..) .Is it posible??
    Thank you

    Hi,
    perhaps you can use a single layout-rtf and use conditional regions to choose the layout you wish at runtime. If you have different layout-rtfs I would say it depends on the calling application and how you call BI Publisher.
    Regards
    Rainer

  • DBPolling based on two conditions

    Hi All,
    We have a requirement in our bpel to process to poll the DB based on two conditions as we know how to poll on DB for one conditions.
    Any help is highly appreciated.
    Thanks and Regards,
    Nagaraju .D

    Sorry it is late here, I was thinking of selecting data, forget what I have said.
    Polling condition needs to be a sequence so there is no possibility of missing rows. Things like date, id etc
    If you need to use multiple conditions you need to concatinate the fields as part of the select statement. You may need to create a view for this.
    Obviously if you are doing a physical delete, or a logical delete there is no such issue as BPEL will read every row that is in the table, or where the flag is set to not processed.
    Hopefully this helps, sorry for mucking you around
    cheers
    James

  • To Select Template based on the responsibility

    Hi All,
    i have created a rdf with multiple templates.
    Whether it is possible to select templates automatically based on the responsibility.
    For ex:
    When the user selects xxx responsibility then xxx template should be default template suppose if user select aaa responsibility the aaa template should be default template.
    Please help me in getting solution for this.
    Thanks
    Rajesh

    I am not giving the solution, one way is, you need to call your program (xxxx) from another program(yyyy, it is a new program). While calling program xxxx from program yyyy, you need to calculate the template name based on the responsibility and use that in fnd_request.add_layout.

  • How to use multiple values in an IF condition in RTF

    Hi,
    I have a scenario as mentioned below.
    IF column value in ('A','B')
    display C;
    end if
    IF column value not in ('A','B')
    display D;
    end if
    My query is how to provide multiple values in an IF condition.?
    Thanks,
    Anand

    But suppose "x.jar" needs a library from "y.jar". How do you put another JAR on the classpath of an applet in a Web page?
    <applet code="z.class" archive="a.jar,b.jar,c.jar">

  • Can we take standard report for all sales orders based on the condition typ

    Hi all,
    Based on the condition type, we need to take a report for sales orders on the particular date.
    Thanks and Regards.....VM

    Hello again.
    Searching for a solution, I found a Logical Database for sales orders, that have all the information that you need.
    Using like reference the post of Bhagavatula, in the same transaction SQVI you can use, instead of the suggested join, you can select a logical database called VAV in Data source.
    This logical database links the tables, VBAK, VBAP, VBUK and KONV that is the central point of the question.
    You can list the information of logical database using the transaction SLDB.
    In 'Logical Database' inform VAV.
    Press F8 to list all the fields.
    More information about logical database in:
    Link: [SAP Logical Database|http://help.sap.com/saphelp_46C/helpdata/EN/9f/db9b5e35c111d1829f0000e829fbfe/content.htm]

Maybe you are looking for