How to include input user parameter values in XML report output?

How can i include input user parameter values in XML report output. I a have a report which can be run by providing start date and end date. I would like to include value of these parameters in XML output to enable me to figure out dates for report, just by looking at XML output.
Rgds,
manish

I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
XML Tag Attributes: myParameter="&<P_1>"
where P_1 is your user parameter.

Similar Messages

  • Printing parameter values in xml report, and displaying it in header of the

    Hi All,
    Can anybody give me an idea to print the parameter values in the xml report.
    My requirement is like, I have 10 parameters in report builder, I have generated the xml file and created the .rtf template and finally registerted in oracle apps. But now, the requirement is to print the parameter values in the report output.I don't see any xml tags in the xml output.
    Any suggestion will be appreciated.
    Thanks in advance.

    I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
    XML Tag Attributes: myParameter="&<P_1>"
    where P_1 is your user parameter.

  • Displaying parameter value in the report output

    Hi,
    I have a requirement to display the value 'All' in the report when the user selects 'All' from the list box. Can anyone suggest a way?
    E.g.
    My LOV input to the report has following values, 'A', 'B', 'C', 'All'.
    If I select 'All', all the values A, B, C go into the query . But I need to display this I/P parameter as a field in the RTF showing 'All' in it.

    u can try like this
    if they select all u will have 'a,'b','c' as value in the xml tag right so always the string length of that xml field will be same when you select all . SAY STRING LENGTH WILL be 10 when user select ALL
    ( check the string how much is the value when you select ALL and implement this)
    we can try using string length
    <?xdoxslt:ifelse(number(string-length(XML_FIELD_TAG))>=10,'ALL',XML_FIELD_TAG)?>
    or
    <?xdoxslt:ifelse(number(string-length(//XML_FIELD_TAG))>=10,'ALL',//XML_FIELD_TAG)?>
    So it will display ALL when user selects ALL else the selected value.
    if you are not having parameter values as xml tag then you have use like this
    <?xdoxslt:ifelse(number(string-length($XML_FIELD_TAG))>=10,'ALL',$XML_FIELD_TAG)?>
    assign some points if helpful.

  • How to use different default parameter value for different report subscriptions

    In ssrs is it possible to define different default parameter values for different subscriptions? In the following example I have a report which has two subscriptions with different start date and end date values:
    Report name – Testsubscription.rdl
    Subscription-1
    Input parameter (default values):
    start_date = first day of current Month
    end_date = till date
    Subscription-2
    Input parameter (default values):
    start_date = first day of current Quarter
    end_date = till date
    I know an alternative way of doing this would be to copy the rdl file with a different name but I am curious whether this can be done within a single report definition file. I am using SQL Server 2008 R2 Standard Edition.
    Thanks!
    spp

    Hi sppdba,
    As per my understanding, there is a report with two parameter: start_date and end_date, you want to configure subscription for the report, and set different default values for start date and end date. And you want to know if it is possible to achieve you
    goal by using a single report definition file.
    Since you are using SQL Server 2008 R2 Standard Edition, we need to achieve your goal by configuring two subscriptions for the report. For detail information, please refer to the following steps:
      1. In design surface, right click start_date and open Parameter Properties dialog box.
      2. In General pane, type Name and Prompt, set Data Type to Date/Time.
      3. Click Available Values in left pane, select Specify Values.
      4. Click Add button, in Label text box, type “First day of Current Month”, click (fx) button in Value section, then type the expression like below:
    =DateSerial(Year(Now()), Month(Now()), 1)
      5. Click Add button, in Label text box, type “First day of Current Quarter”, click (fx) button in Value section, then type the expression like below, then click OK.
    =DateSerial(Year(Now()), (3*DatePart("q",Now()))-2, 1)
      6. Right click end_date and open Parameter Properties dialog box.
      7. In Available Values pane, select Specify Values.
      8. Click Add button, in Label text box, type “Today”, click (fx) button in Value section, then type the expression =Today(), then click OK.
    Now that the parameters are created, we need to configure subscription for the report. For detail information, please follow these steps:
      1. Open Report Manager, and locate the report for which you want to create a new subscription.
      2. Hover over the report, and click the drop-down arrow.
      3. In the drop-down menu, click Manage. This opens the General properties page for the report.
      4. Select the Subscriptions tab, and then click New Subscription.
      5. Select the delivery extension and data source for the subscription.
      6. Select a method of delivery, then choose report delivery options.
      7. Specify conditions that cause the subscription to process and delivery to occur.
      8. Set start_date to First day of Current Month, end_date to Today, then click OK.
      9. Create a new subscription as step4 to 7, set start_date to First day of Current Quarter, end_date to Today, then click OK.
    The following screenshots are for your reference:
    For detail information about Creating Standard Subscriptions, please refer to the following document:
    http://msdn.microsoft.com/en-us/data/ms156307(v=sql.105)
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • How to get Oracle Form Parameter Value into Oracle Report

    Hi,
    Please guide for the following:
    On a form, there is one Control Block (CB1), having two TEXT ITEMS, namely From_Date & To_Date respectively. The user inputs from and to dates, for example From_Date: 01-JAN-2009 and To_Date: 31-DEC-2009 and then press "Print Report" button.
    I want to get From_Date & To_Date in the report, as per below mentioned heading:
    SALES REPORT
    From: 01-JAN-2009 To: 31-DEC-2009
    Regards,

    You can use ADD_PARAMETER builtin,
    The following example creates a parameter List, adds two parameters to it, and then passes the List to a form by way of the CALL_FORM procedure:
    <pre>
    /** Declare a variable of type ParamList to store ** the parameter List ID */
    DECLARE
    PARAM_ID ParamList;
    BEGIN
    /* ** Create a parameter List named "input_params" */
    PARAM_ID := Create_Parameter_List('input_params');
    /* ** Add two parameters to the List to pass values for each user-defined parameters defined in the target form; for each parameter, specify its key, type (text or data), and value */
    Add_Parameter(PARAM_ID, 'FROM_DATE'', TEXT_PARAMETER, to_char(:CB1.From_Date, 'DD-MON-RRRR'));
    Add_Parameter(PARAM_ID, 'TO_DATE', TEXT_PARAMETER, to_char(:CB1.To_Date, 'DD-MON-RRRR'));
    /* ** Now call the report, referencing the parameter List ID ** in the last argument to the report calling procedure */
    END;
    </pre>
    Edited by: Charan on Jul 13, 2011 9:08 AM

  • How to display current session parameter value

    Hi,
    How can a db user know value of a session parameter, if he doen't have privilege to access v$parameter?
    SQL> conn hr/hr
    Connected.
    SQL> show parameter QUERY_REWRITE_ENABLED
    ORA-00942: table or view does not exist
    SQL> alter session set QUERY_REWRITE_ENABLED=true ;
    Session altered.
    -- how can the user HR know the value of QUERY_REWRITE_ENABLED

    You can code a PL/SQL function and grant only execute privilege to the user:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> drop user admin cascade;
    User dropped.
    SQL> create user admin identified by admin;
    User created.
    SQL> grant create session, create procedure to admin;
    Grant succeeded.
    SQL> grant select on sys.v_$parameter to admin;
    Grant succeeded.
    SQL> connect admin/admin
    Connected.
    SQL> show user;
    USER is "ADMIN"
    SQL> create or replace function get_parm (p_pn in varchar2) return varchar2
      2  as
      3  l_val v$parameter.value%type;
      4  begin
      5   if ( UPPER(p_pn) = 'QUERY_REWRITE_ENABLED' )
      6   then
      7        execute immediate 'select value from v$parameter where name = :1 '
      8        into l_val using p_pn;
      9        return l_val;
    10   else
    11      raise_application_error(-20000,'Invalid parameter');
    12      return null;
    13   end if;
    14  end;
    15  /
    Function created.
    SQL> grant execute on get_parm to test;
    Grant succeeded.
    SQL> connect test/test
    Connected.
    SQL> show parameter query
    ORA-00942: table or view does not exist
    SQL> select admin.get_parm('query_rewrite_enabled') from dual;
    ADMIN.GET_PARM('QUERY_REWRITE_ENABLED')
    TRUE
    SQL> select admin.get_parm('compatible') from dual;
    select admin.get_parm('compatible') from dual
    ERROR at line 1:
    ORA-20000: Invalid parameter
    ORA-06512: at "ADMIN.GET_PARM", line 11

  • What are user parameters? and how can i add user parameter

    Hi Experts,
    what are user parameters? and how can i add user parameter and how can i add a user parameter
    HR_DISP_INFTY_NUM with value X?

    user parameters are used give reference grps and counntry grouping use SU3 tcode as amite said

  • How to get Input-Ready Cell  Value of Input Ready Query?

    Hi,
    How to get input ready cell value in fox formula?
    for example :
    In Input-Ready Query,
    C_Code Month        Psale(input ready)
    1000          05.2012       800
    now i want Psale 800 in fox formua before value save in cube,
    is it possible?
    Thanks
    Ravi

    Hi,
    as I understand your requirement: you want to execute a planning function before 'save'. This possible, cf. note 1356805
    for more details.
    Regards,
    Gregor

  • How to pass parameter values to a report befor schedule it?

    I tried to use Business Objects web service to schedule a report. But I failed to pass in any parameter values. The report was able to run successfully. But check all history from Infoview, all parameter are with NULL value. Does anybody encounter the same problem and has good resolution for this? Many thanks.
    Here's my code:
    // Logon Crystal Report Server
    LogonCrystalServer();
    // Find Report
    GetOptions oGetOptions = new GetOptions();
    oGetOptions.IncludeSecurity = false;
    ResponseHolder rh = _bipService.Get("cuid://<" + reportCuid + ">@SI_SCHEDULEINFO, SI_PROCESSINFO", oGetOptions);
    InfoObjects oInfoObjects = rh.InfoObjects;
    if (oInfoObjects == null || oInfoObjects.InfoObject == null) return;
    // Set Scheduling Info
    CrystalReport oReport = (CrystalReport)oInfoObjects.InfoObject[0];
    oReport.Name = oInfoObjects.InfoObject[0].Name;
    SchedulingInfo oSchedulingInfo = oReport.SchedulingInfo;
    oSchedulingInfo.RightNow = true;
    oSchedulingInfo.ScheduleType = (ScheduleTypeEnum.ONCE);
    oReport.SchedulingInfo = oSchedulingInfo; 
    // Set Format Info.
    ReportProcessingInfo procInfo = oReport.PluginProcessingInterface;
    CrystalReportFormatOptions repFormat = new CrystalReportFormatOptions();
    repFormat.Format = ReportFormatEnum.EXCEL;
    repFormat.FormatSpecified = true;
    repFormat.UseExportOptionsInReport = true;
    repFormat.UseExportOptionsInReportSpecified = true;
    procInfo.ReportFormatOptions = repFormat;
    // Get Report Parameters and Set their values
    // I don't know if the step has any problem. I copied from wssdk sample.
    ReportParameter[] repParams = procInfo.ReportParameters;           
    for (int i = 0; i < repParams.Length; i++)
        CurrentValues oCurrentValues = new CurrentValues();
        BusinessObjects.DSWS.BIPlatform.Desktop.PromptValue[] oPromptValue = new BusinessObjects.DSWS.BIPlatform.Desktop.PromptValue[1];
        oPromptValue[0] = new BusinessObjects.DSWS.BIPlatform.Desktop.PromptValue();
        oPromptValue[0].Data = "Test";
        oCurrentValues.CurrentValue = oPromptValue;
        repParams<i>.CurrentValues = oCurrentValues;
    procInfo.ReportParameters = repParams;       
    oReport.PluginProcessingInterface = procInfo;
    // Schedule run the report   
    InfoObjects infoObjects = _bipService.Schedule(oInfoObjects);
    //Get new instance id
    string instanceCuid = infoObjects.InfoObject[0].NewJobID;
    Edited by: Shao Zelian on Jan 19, 2010 11:51 AM

    Can you clarify your scenario? Which is the case you're talking about?
    1) You want to pass a parameter from OmniPortlet to a PL/SQL procedure.
    2) You want to pass a parameter from a PL/SQL procedure to OmniPortlet.
    In both cases the most obvious way of doing it is through request (URL) parameters.
    Render a link in your portlet (either in OmniPortlet or using PL/SQL) that invokes a portal page, containing the other portlet.
    Both OmniPortlet and PL/SQL allow you to wire and access page parameters.
    Take a look at the Using Parameter and Events section of the Portal User's Guide and the Parameters and Events section of the Portal Developer's Guide.
    Hope this helps,
    Peter

  • How to include variable in the text column in report painter?

    Dear Expert,
    Would like to seek for your help to include How to include variable in the text column in report painter?Please advice.
    Thank you.
    Regards,
    Karen
    Edited by: Karen Swee Ping Ho on Jun 17, 2011 2:48 AM

    Hi,
    Thank you for the promt reply.
    1) How I include the variable in the column header to display fiscal year which I have selected from the selection screen?
    which variable should i use?
    2) Where can i find more information about the characteristic and which variable to be use base on the characteristic?
    For example: I would like to display the fiscal year from the selection screen/input screen when execute the report which also will reflected to the element definition and will display the fiscal year also in the column text?
    3) Kindly advise base on question 2, the variable that i use in element definition it will also display  in selection screen?
    4) When execute the report the first selection screen input parameter it obtain from where it is from element definition?
    5) Please advice how to be done when report execute with first screen input selection will also reflect the element definition of column and rom with the selection of the fiscal year?
    Please help.
    many thanks
    Edited by: KH on Jun 18, 2011 7:18 AM

  • How do i create 2 parameter pages for 1 report?

    Hi,
    I want to make a purchase order report. first: i need a parameter page to ask how many items that you want to order. second, once user enters a number(let's say 5), i want to have anoter parameter page show 5 empty fields that user can enter 5 items' barcode#, once they entered barcodes, the report will show these 5 items info.
    my difficulty is how do i create 2 parameter page for 1 report?
    thank you

    my question
    1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
    2- how can create manual process to fetch row into specific items in page ( i tray these code
    SELECT col1, col2, col3 ....
    INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
    FROM table
    WHERE id = :P_id ) but no data retrieve .
    I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
    ORA-01403: no data found : Unable to fetch row multiple automated row fetch
    On your second question, the manual process should work provided:
    P_ID has a value when the process executes. You can do it this way:
    i. Make this process as a on-load After/Before header process
    ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes)

  • Export txt file with all parameter values during the report execution

    Hello,
    I've developed one report in Report Builder 3.0 , report server being  SRSS 2008 R2. This report has one report parameter named id_product. There are two data sets available. One data set  is for populating the report table.  In the second
    data set I'm trying to export the id_product. The below query works fine only for single valued parameter id_product, this query being used in the second data set   Report pops-up an error when trying to run the report for multiple products at the same
    time. I looked in SQL Profiler and it seems like inserting the parameter values in the global temporary table is not possible using the current code.
    I'm aware of the VB Expression named Join but in such case I'm not sure if I can use it. It would be great if I can use this kind of expression. This way I would not create the data set anymore.  
    Current query:
    drop table ##SelectedValuescreate table ##SelectedValues(id_product nvarchar(max))insert into ##SelectedValues(@id_product) exec xp_cmdshell 'bcp "select ''id_product'' union all select * from ##SelectedValues" queryout "G:\Report\sqloutput.csv" -c -T -t'
    Input: ProductId parameter values : 12, 16, 20
    Desired output in csv:
    id_product
    12
    16
    20

    Hi chopstix21,
    Just as you thought, we can use join function to insert the values from a multiple value parameter to a temp table with VB Expression. After testing it in my own environment, we can refer to the following steps:
    Create the second dataset using the query below:
    drop table ##SelectedValues
    create table ##SelectedValues(id_product nvarchar(max))
    insert into ##SelectedValues(‘1’)
    exec xp_cmdshell 'bcp "select ''id_product''
    union all select * from ##SelectedValues" queryout "G:\Report\sqloutput.csv" -c -T -t'
    Change the dataset using the expression like below:
    ="drop table ##SelectedValues"&
    "create table ##SelectedValues(id_product nvarchar(max))" &
    "insert into ##SelectedValues values (" & Join(Parameters! id_product.Value,"),(") &")" &
    "select * from ##SelectedValues"
    When we select 12, 16, 20 from parameter id_product, the second dataset will return 12, 16, 20 values as id_product field.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Any way to find parameter value for a report?

    CS2008 SP3 - version 12.3.0.601
    Is there any way parameter value of a report can be found? The following code doesn't return parameter value but returns name.
    Fields existingReportParameters = null;
                            IDataDefinition dataDefinition = reportDocument.getDataDefinition();
                            existingReportParameters = dataDefinition.getParameterFields();
                            if (existingReportParameters != null) {
                                  for (int i = 0; i < existingReportParameters.size(); i++) {
                                        IField field = existingReportParameters.getField(i);
                                        if (field instanceof ParameterField) {
                                              ParameterField pa = (ParameterField)field;
                                              String paramName = pa.getName();
                                              //Values values = pa.getValues();
                                              //Object value = values.get(0);
                                              //System.out.println("*** repName Parameter - " + paramName + ":" + values);
                                              System.out.println("*** repName Parameter - " + paramName);
    Need to find a solution soon. Thanks in advance.

    Hello,
    Try searching, I have post code snippets on how to get values. I don't know for sure though if that code will work in CR 2008.
    Don

  • How to change the Credential domain Value in XML gateway?

    How to change the Credential domain Value in XML gateway?
    configured the XML Gateway trading partner . It is generating the header as given below. but need to change the Credential domain to DUNS.
    <Header>
    <From>
    <Credential domain="olgridap1.lan">
      <Identity>53369415-cxml</Identity>
    </Credential>
    </From>
    Desired XML header
    <Header>
    <From>
    <Credential domain="DUNS">
      <Identity>53369415-cxml</Identity>
    </Credential>
    </From>

    You might want to check WLP 10.3 & deployment plan & log4j.xml for a similar topic.

  • How to include the file name as an XML field

    Hi,
    I'm using a file adapter for process a flat file and convert it into an XML. Does anybody knows how to include the file name into an XML field.
    Ex.
    I process the file named <b>XXIMN21022007.txt</b> and I need an XML like:
    <MT_FILE>
    <field1></field1>
    <field2></field2>
    <field3></field3>
    <filename><b>XXIMN21022007.txt</b></filename>
    </MT_FILE>
    Regards
    Gonzalo

    Just go for dynamic configuration.
    Check the sender file adapter to write the filename in the header (as explained in Michal's blog) and then read that header in some mapping.
    U can use that even in simple message mappings.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Your code for the filename tag would be something like:
    <i>DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    return conf.get(key);</i>
    Regards,
    Henrique.

Maybe you are looking for

  • Printing in SAP Script

    Hi Experts, I am creating a Purchase order (ME21) for a one time  vendor (Dummy PO)created and make a printout on Script that shows my material master that data not provided by me and the data provided by me is not come on printout at the same time I

  • Regd.  FM : RS_VARIANT_VALUES_TECH_DATA

    I have a small query  regarding the  FM : RS_VARIANT_VALUES_TECH_DATA is used To get the values of a variant u2026u2026. First i want to know the exact variable in the return table  VARIANT_VALUES to set the printer out put device as LOCL I am unable

  • ORA-27300 27301 ORA-27302

    Hi , Running Oracle DB(10.2.0) Server on Solaris 10. the server refused connections for 5 minutes yesterday and I checked logs through EM webpage : Found following : Alert.log Feb 5, 2009 9:39:15 PM      ORA-27300: OS system dependent operation:fork

  • Running ABAP Report in background

    Hello, I am getting timed out error when I execute my report program. I believd running the report can do it for now. Can you please tell me detils on  how I should proceed on dev, qa and production environment. Regards, Sameer.

  • Why does Premiere Pro 6.0 become unresponsive with longer video sequences?

    Laptop A works fairly well with small Premiere Pro CS6 projects of 9 minute duration. Project is on external drive connected via USB2. Processing time is long, but at least I can get all my work done. However, when I use Laptop A for larger projects