Mutiple layouts from BI publisher based on layout selected

My end users have requested to have two different layouts on the same report based on if they have selected a PDF output or an Excel output. While I know I could create two version of the same report or I could create a parameter for the layout I was wondering if there was a way to detect what layout the user has chosen.
Thanks

Hello,
you could use the parameter _xf, which contains the output format of the report.
To  do so, you have to specify the parameter in your xslt layout:
<xsl:param name="_xf">pdf</xsl:param>
The parameter is filled by BI Publisher on runtime with pdf, excel, xslt, or whatever output format you use.
You can evaluate the parameter in your layout for example by:
<xsl:choose>
    <xsl:when test="contains('excel xlsx', $_xf)">
        <!-- do something for excel or xlsx output -->
    </xsl:when>
    <xsl:otherwise>
        <!-- do something for other layouts, e.g. pdf output -->
    </xsl:otherwise>
</xsl:choose>
HTH.
Kind regards,
Tobias

Similar Messages

  • Querying a table based on a selection criteria

    Hi Gurus,
    Could you please help me in creating a function module that picks records from the table based on certain selection criteria.For eg, If contract number(a primary field) is an import parameter and I want the Function module to export all the records with contract number starting with 1 or may be ending with 303.How could I query this??
    Thanks,
    Ashwini

    Hello,
    Creation of Function Module
    Goto TCode SE37
    Click on the Menu Goto->Create Function Group
    Create Z (ZPTP) function group and Activate Function Group even if the error occurs
    Create Function module Namely Z (ZTEST) assign to the function group (ZPTP)
    Go to the Import parameters (EBLEN TYPE EKKO-EBELN)
    Go to the Tables ( itab type ekpo)
    Goto the Source code
    tables ekpo.
    Select * from ekpo into table itab
    where ebeln eq ebeln.
    Activate the function module and run the function
    regards
    suresh nair

  • Can I publish a liquid layout site from Dw6 to Business Catalyst

    Can I publish a liquid layout site from Dw6 to Business Catalyst?

    Yes. I assume you mean estabish a free temporary site:
    - Log in to BC http://www.businesscatalyst.com/Admin/Index.aspx?to=PartnerPortal
    - Create temporary BC site http://helpx.adobe.com/content/help/en/dreamweaver/using/dreamweaver-business-catalyst.htm l#id_73485
    - Manage files with GET command (download) or PUT (upload, what you want) command http://helpx.adobe.com/content/help/en/dreamweaver/urlpointers/help.adobe.com/using/WSc78c 5058ca073340dcda9110b1f693f21-7eb4a.html

  • How to Create a Sequence Number from BI Publisher Layout editor?

    How to Create a Sequence Number (1,2,3,4,......,etc) from BI Publisher Layout editor

    Thank you for your replay, but <?position()?> we can used it in template builder only not from BI layout editor
    I found a solution in this case we can used the following query.
    SELECT
    ROW_NUMBER() OVER(order by item_status) as Row,

  • Pass Input Values to BI Publisher Report Layout from BI Answers Dashboard

    Has anyone been able successfully pass user input values from a BI Answers dashboard prompt into a BI Publisher report? I'm trying add user inputted text (notes, comments) into a report he/she runs.
    I've been trying with no success. I've matched the name of the presenation variables in Answers to the parameter definitions in BI Publisher.
    I've declared the parameter in the RTF template as below:
    1. Declaration
    <?param@begin:param1?>
    2. retrive value:
    <?$param1?>
    If i run it directly from BI Publisher, there is no issue. When I pass the value from an Answers dashboard, the text is never displayed in the report?
    Any suggestions?
    Thanks,
    Lael
    Oracle Business Intelligence 10.1.3.4.2
    BI Publisher 10.1.3.4.1
    Red Hat 5.6
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    AIX 6.1

    Hi Vishal,
    Refer: http://blogs.oracle.com/xmlpublisher/entry/running_bip_reports_in_biee_wi
    or
    http://kirti-bi-solutions.blogspot.com/2009/06/passing-parameters-from-obiee.html
    thanks,
    Saichand.v

  • Two Pages and Layout from One Data Source

    Hi
    I need to find a solution where i can based on if a flag in the data is true or not generate a 2nd page which is slightly different in layout to the 1st page.
    But at this moment in time i'm struggling to understand how i can even get crystal to generate a 2nd page.
    Background is that our system generates a delivery note with a price on it and as a part of new legislation now there has to be a 2nd page provided for the end user. Now we have a data source linked to the report and we would just like to pass in another field which is true/false to print End User Page.
    So if the flag is true i need to create a Delivery page and a end user page and if false then only the Delivery page would be generated.
    I just need some guidance as to how we may achieve this.  Iu2019m ok with crystal but not really done advanced level reports hence why iu2019m probably stuck.
    Thanks for any advice in advance

    And i suppose i could suppress any other fields from page one based on the same flag. But ideally as they layout is common i was hoping not to have to do a subreport to lay it all out again.
    Could i not based on a flag on the group footer or header say if this flag is true start a new page and then on the feilds the ones i want to hide or show say something like if page two and x is ture then show or hide as need be??

  • Calling a BPS Layout from Reporting

    We are trying to call a BPS planning layout from the report by drilling down on the forecasting data in a Report.  We are creating a report of Actuals and Forecast Data.  The delta will be calculated as an Accrual and the accrual could require the user to update the forecast so want to link to the forecasting layout from within the report. The reporting and planning will also be web based. 
    Any further thoughts or directions on the above?
    Please advise.
    Thanks,
    Imran

    You may want to run Su53 and see the error.
    You need to grant authorizations for the BPS objects that may be called when the web inyterface executes.
    PL take a look at the link:
    http://help.sap.com/saphelp_sem350bw/helpdata/en/05/242537cedf2056e10000009b38f936/frameset.htm
    Ravi Thothadri

  • How can i disable Illustrator from changing my language / keyboard layout.

    I have an azerty laptop and a qwerty external keyboard. Switching from any application to illustrator changes the language and therefore also my keyboard layout. No other application does this.

    Thanks for the reply Mike
    But i have a laptop with azerty layout (Belgian) and an external qwerty keyboard (Brittish).
    So i need both languages selected in the System Pref >> Keyboard >> Input source
    When "Brittish" is selected and i switch from Apple Mail to Photoshop to Skype to Chrome to ... it all works fine.
    Only when i switch to Illustrator it also changes my language/layout from "Brittish" to "Belgian" and stays like that. I need to manually change it back in the menu in Finder.
    I like the brittish better (with a qwerty keyboard) because of the shortcuts (eg. sqare brackets -> shortcuts for order in Illustrator are not even on an azerty (Belgian) keyboard).
    Any idea?
    b.

  • Start XML Publisher from a html based page.

    Hi.
    We have users that only have access to the html based pages in EBS.
    I wonder if I somehow can make it possible for them to start a xml publisher report request with parameters, from those html based pages.
    In the form based pages this is not a problem, just add the concurrent program to a request group. But there must be someway to do this from the html based pages as well.
    Is there a Role that can be assigned or something?
    Regards
    Daniel

    HI i have used the following code, but what should the class be?
    code=AppletClassName.class Because, i have 10 files that are packaged as a jar file. shouldi put all the .class names in here?
    <html>
    <head></head>
    <body>
    <applet code=AppletClassName.class
            archive="offwaltz.jar"
            width=600 height=600>
    </applet>
    </body>
    </html>

  • How do I copy the same app folder layouts from one device to another? We have a several iphones and ipads.

    how do I copy the same app folder layout from one device to another. We have several apple devices.
    It's a challenge when syncing a device for the first time to go through all the apps and apply them back to the same folders as on your other iphone.
    I've seen suggestions of taking pictures of the correct layout, then manually applying it to the new device. Big time waister.
    What's the work around?
    Thank you

    I'm afraid there is no short workaround. One thing that you could do if you were REALLY desperate is reset your device to factory settings and then restore it from your other device's backup, but that is rather risky and you probably don't want to take your chances just for folder layouts. I would just do it manually.

  • How can i  duplicate a document print layout from one DB to another DB?

    hi experts,
    I make all document print layouts in a test DB, and now I want to move them to my production DB.
    is there any easy way to copy a document layout from a database to another? please advise, thanks a lot.

    Hi,
    There is one more option
    1.Open the PLD in the test database
    2.Go to edit-> select all(including hidden fields)
    3.Go to edit->Copy
    4.Log off from test system(Administration-Choose company-select live database),log in live database
    5.Open the corresponding documents system pld
    6.Go to edit-select all
    7.In the properties window uncheck the visible checkbox(Under General tab)
    8.Save layout as different name say <Test>
    9.Again open the layout <Test>
    10.Go to edit-Paste and save layout.
    NB:Don't delete the existing fields,you should only hide them as mentioned in step7

  • Is there a way to move layouts from one .ibooks file to another?

    I originally used a combo (landscape + portrait) template, but, due to what I'm guessing is just the situation when dealing with a combo template, when I finished my book and Preview'd it on my iPad, I wasn't able to tap the side of the screen or slide left/right to turn the page when in portrait orientation like a "regular" ebook (I had to swipe up from the bottom of the screen to turn it). Tapping on the side worked in landscape mode, though.
    But I noticed that if I start with a portrait-only template, I can turn the page by tapping/swiping left/right.
    I'd like to be able to use the portrait-orientation layouts I created in the combo document in the new portrait-only document I'm building to replace that one. Is there a way to do that--or are layouts from the two different types of templates not cross-compatible?

    Helo Dave,
    I think you are correct here, iBA seems only able to use one page size and orientation.
    Regards,
    Nigel

  • Converting the layout from OTF format into PDF

    Hi Experts,
    I am new to SMART FORMS,I don't have a clue about how to convert the layout from OTF format into PDF format and how to store it in Presentation server.
    Please send me a Model program or step by step approach of the same.
    Useful inputs will be rewarded higher points.
    Thanks in Advance,
    Dharani

    Hi,
    The steps are given below:-
    1) First get the name of your generated function module for the smartforms.
    2) Then call the generated function module.
    3) Then use the FM:CONVERT_OTF' to convert into PDF as shown below:-
    call function 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = w_pdf_len
          bin_file              = w_pdf_xstring
        TABLES
          OTF                   = OUTPUT_DATA-OTFDATA
          LINES                = LT_LINES
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          others                = 5.
    Hope this is clear.
    Pravat.
    <i>*Reward points if helpful.</i>

  • Change portal Page layout from Web Dynpro

    I have some problem:
    I need to rearrange Portal Page layout from 2 columns to 1 collumn from Dynpro action. Decision to hide 1 Column or resize its width to 0 is good idea, but I do not now how.
    Absolute Navigation is wrong idea, because I need to go back to multiply IViews mode and I will lost my data context.
    I saw PageService - custom Portal service, where I can resize IViews.
    In my Netweaver 2004 this class is absent.
    Probably exist some Portal events to manage Page layout? Anybody knows?
    Thanks!

    Hi,
    For this we have to use eventing among the webdynpro components of two different views.You can refer this example for this.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8d7cd90-0201-0010-4a8c-dd22fa16ca0a
    Thanks,
    Murthy.

  • How to create PDF from text file with specific layout?

    I wanted to create the pdf from text file in specific layout - Landscape orientation and JIS B3 Page size while at Adobe Acrobat Pro.
    In past, I could do a right click on a text file (desktop area) and select print to print out the document into .pdf BUT only if I set the Adobe PDF to Landscape and JIS B3 Page size BEFORE.  And I could only do 15 text documents at once.
    I wanted to see if I could do the create the pdf from text file with specific layout in Adobe Acrobat without having to go to Control Panel to preset the Adobe PDF to specific layout at every time.   I would have to set Adobe PDF back to normal layout after I'm done with these pdf print outs.  I do lots of pdfs in normal layout.  Sometimes I would forget to do that.
    So, How do I do that?

    No such luck.  It would output the contents in letter size even in JIS B3 Page layout at MS word. 
    Is there a script or action where I could set the orientation and page size before creating PDF on these text files?

Maybe you are looking for