Unable to pass parameters in Report Bulder due to single quotes

Hello,
I have a problem with parameters in Report Bulder.
This is the query:
where task.closed_at between (@Per)
Then I need have to pass following value to @Per : DATEADD(month, -5, getdate()) and getdate()
to get following:
where task.closed_at between DATEADD(month, -5, getdate()) and getdate()
But I suppose Report Builder put the values to quotes and WHERE looks like:
where task.closed_at between 'DATEADD(month, -5, getdate()) and getdate()'
and Builder returns syntax error.
How can I solve this issue and avoid these single quotes surrounding the value?
Thank you.

Hi zotchy07,
According to your description, you have a report created use Report Builder. You want to select data according to the search condition: task.closed_at within 5, 12 or 24 months.
Please refer to the following steps to achieve your goal:
 1. In design surface, right-click Parameter and click Add Parameter.
 2. In Report Parameter Properties dialog box, type the name and prompt, set  Data Type to Integer.
 3. Click Available Values in left pane, check Specify Values.
 4. Click Add, set Label to 5, Value to -5.
 5. Repeat step4 above, set Label to 12, Value to -12, then Label to 24, Value to -24, then click OK.
 6. Right-click the dataset you used to retrieve data and open Dataset Properties dialog box.
 7. Click Filters in left pane, click Add.
 8. From Expression drop down list, select closed_at and set Operator to between.
 9. Click the first (fx) button and type the expression like below:
=DateAdd("m", Parameters!param_name.Value,Today())
 10. Click the second (fx) button and type the expression like below, then click OK.
=Today()
In this way, when we preview the report, there are 3 selects in the parameter drop down list: 5, 12, 24. If we select 5 and click View Report, the data within 5 months will be displayed.
The following screenshots are for your reference:
 If you have any questions, please feel free to let me know.
Best Regards,
 Wendy Fu

Similar Messages

  • How to pass parameters to reports

    Hi,
    I am a new user to dev2000, i am struck at passing parameters to the reports, i have used lexical referrences, to the where clause, in the query that i have written in reports builder. It created a user_parameter of that where_clause. now i am trying to pass this parameter, from the form to generate a report btw'n dates. please sugest me if there is any other way, or correct me if i am on the right path, here is the code that i am calling from the form.
    DECLARE
    pl_id ParamList;
    --repid REPORT_OBJECT;
    --v_rep VARCHAR2(100);
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id, 'WHERE_CLAUSE', TEXT_PARAMETER, 'WHERE SYS_DATE = ''18-JUL-01''');
    --repid := find_report_object('report34');
    --v_rep := RUN_REPORT_OBJECT(repid);
    Run_Product(REPORTS, 'REPORT34', ASYNCHRONOUS, BATCH,
    FILESYSTEM, pl_id,NULL);
    END ;
    I am gettting an error saying FRM-41211: Integration error:ssl failure running another product.
    this error is comming when i try to access for the first time, and
    Starting report REPORT34 [Tue Jul 24 16:35:14 2001] ...
    REP-0110: Unable to open file 'REPORT34'.
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file 'REPORT34'.
    End report REPORT34 [Tue Jul 24 16:35:20 2001].
    this for the next time, with out closing runtime env.
    If i have to use RUN_REPORT_OBJECT how can i pass parameters to reports.
    Another thing i encountered is when i am using RUN_REPORT_OBJECT which is working it shows me the parameter form of the reports and when i click on run report, it is just creating a file under forms directory and asking each time when i run report wether to replace it or not and from where it is calling the printer object and actually nothing is being printed, and every thing is fine with the printer and it is not showing the report out put and it shows end of report in the log file of the background report product.

    For your 1st problem it seems to be a bug in Forms 6i - you can visit this site:
    http://pipetalk.revealnet.com/~plsql/
    and find there 41211.
    Helena

  • Unable to Pass Parameters to I5Grid in SAP MII 14.0 SP05

    Hi Experts,
    There was a bug in SAP MII 14.0 SP04  where we were unable to pass parameters to I5Grid dynamically. I understand that this bug has been fixed in SP05 , so we applied following patches:
    Patches installed :
    a)      XMII05P_4-10008694.SCA
    b)      XMII05_0-10008694.SCA
    Note details mentioning this issue :
    2016927 - I5Grid does not take into account overridden parameters when updateGrid(true) is called
    But even after applying these patches, I am still not able to pass parameters to I5Grid dynamically from irpt page.  Does anyone have any insight to it? Is it working for any one of you?
    Regards,
    Kirti

    Hi Chirstian,
    I see this change working. I was doing a mistake while passing parameter to I5grid.
    What I was doing-
    Grid.getQueryObject().setParameter(1, linename);
    Correct Way:
    Grid.getQueryObject().setParameter("Param.1", linename);
    Thanks & Regards,
    Kirti

  • Passing parameters from REPORTS to FORMS.

    Hi,
    Could anyone help my on this, I'm trying to pass parameters from reports to forms is it possible? could anyone give me an idea how do I have to proceed.
    thank youk,
    bino

    http://technet.oracle.com:89/ubb/Forum4/HTML/009647.html

  • Passing parameters from report to new page with portlets.

    Hello everyone:
    I have a plsql report portlet on a page that has a column that I would like to pass as a parameter to a new page to populate more portlets. I tried setting up a link but I can't seem to get the value in the column to pass as the parameter. I am a novice when it comes to developing portlets.
    Thanks in advance!

    The link is the way to go (at first). You have to create the link first. Then assign this link to the column that you want to the hyperlink to appear on - this assignment happens on the 2nd tab of the report (Column formatting) by choosing the newly created link in the link dropdown. After you have assigned the link to the column you must edit the assigned link where you can then choose the value that must be passed across.
    The link approach works fine, but there are limitations. I just do all the links in code these days - so in the report select statement I have <a href....>. This gives more flexibility. Ultimately there is the issue of passing parameters to forms: using links (or hand coded) you can pass parameters to reports (if param is also defined as input param with ":") and also forms, but all you can do with a form is to pass param that can be used to uniqeuly identify one record which is the one that will show in the form. Anything else (e.g. pass a param to prepopulate a field on the form) needs an even more complicated solution (:).
    Cheers.
    Anton.

  • Trigger a SQL Reporting Service Data Alert when a SharePoint List is updated & need to pass parameters to report

    We have been able to get a SSRS Data Alert to trigger a report to be emailed whenever an item is added to a specific SharePoint List.   The report can accept parameters but would like to be able to pass parameters that are used in the report.   
    Is this possible? (I cross posted over at SharePoint dev. and was referred here)
    Thanks
    Νικοσ Γιαννιοσ

    Hi Nikos,
    Based on my understanding, you have deploy a parameter report to SharePoint site, then you have created a data alter for this report. Then you want to pass parameters to report then send alter, right?
    In Reporting Services, if the report has parameters, we should select values for the parameter, after report display, we can create a new data alter. Otherwise, the New Data Alter button is grayed out in the drop-down list of the Action button. So that the
    rule is created based on the filtered report. Please refer to below screenshot:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Passing parameters across reports

    Hi,
    Anybody knows how to pass parameters from one report to another using drill across reports?
    I want to feed parameters of a second report (drill across) with values from parameters from a base report where the second report is called.
    Is it possible?
    Luciano

    Hi,
    I don't found a way to pass parameters between reports with Drill Across feature.
    But I can do that using report actions (inserting a button in the view or report) instead of Drilling Across.
    I would like Oracle develop these two functionalities:
    1) Allow passing parameters between reports with Drill Across (today I can only pass fields to prompts);
    2) Allow replacing a view with a report using report actions - as mentioned (today I can only open the report in a new window).
    This two functionalities are complementary.
    Luciano Gomes

  • OAF: passing parameters to report from OAF page and running concurrent prog

    Hi Everyone,
    i have an OAF page with 10 fields after filling those fields i need to press "Submit" button.
    On pressing Submit button 5 parameters i have to pass to the xml publisher report to run the concurrent program and display the output in pdf format.(Out of 10 fields on the page the first 5 fields will be passed as parameters)
    How can i pass parameters from OAF page to the report(concurrent program)?
    and how can i call concurrent program?
    and how can display the output of the report in pdf format after calling the concurrent program?
    Any answers will be really useful...
    Thanks in advance.
    Thanks.

    Hi kumar ,
    XML report will generate output in PDF format , first you need to try generating report separately , manually submit
    the concurrent program and make sure every thing goes well .
    Once the above step is done you can try to submit the concurrent from controller class . The submitRequest method
    will return the request ID of the concurrent program .
    Now with the help of this request ID you can redirect the page to Oracle standards Request Page( you can monitor
    the status of concurrent program and view output ) this can be done with the following piece of code
    String url = "OA.jsp";
    parameters.put("akRegionApplicationId", "0");
    parameters.put("akRegionCode","FNDCPREQUESTVIEWPAGE");
    String id = "" + return_reqId + "";
    parameters.put("requestMode","DEFERRED");
    parameters.put("requestId", id);
    pageContext.setForwardURL(url,null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,parameters,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO ,OAWebBeanConstants.IGNORE_MESSAGES);
    Keerthi

  • Passing parameters to Reports

    Is it possible to pass parameters to run a report without using a runtime parameter form? I am currently accessing reports using RWServlet and Reports 6i.
    Thanks

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mike Smith:
    Is it possible to pass parameters to run a report without using a runtime parameter form? I am currently accessing reports using RWServlet and Reports 6i.
    Thanks<HR></BLOCKQUOTE>
    Yes, it is. Put paramform=no in your cgicmd.dat, with all other parameters you need to send to your report.
    Another way if you call report by URL: http://www.repserver.com/rwcgi60.exe?report&paramform=no&param1=value1&param2=value2
    Regards,
    Tiho
    null

  • Passing Parameters to Reports Builder

    I am passing parameters via URL from APEX 3.2 to Oracle Reports Builder, but the parameters are not sticking and hence not getting passed to ORB. What can I do?
    The parameters are select list page items. The URL is called via a button and javascript:popup('http://....

    You might want to try putting them in a table and then in your report query the table... I have done this in Forms & Reports on occasion...
    Thank you,
    Tony Miller
    Webster, TX
    While it is true that technology waits for no man; stupidity will always stop to take on new passengers.

  • Passing Parameters to Reports 6.0

    How do I pass parameters from a HTML generated paramter screen residing on a OAS to Reports that reside on the Reports Server?
    Any ideas/suggestions would be of great help
    Thanks
    satish

    First, you need to set up the reports cgi/cartrige to accpet web request via a URL. Please refer to the Reports Server configuration whitepaper available on OTN.
    Reports can generate it's own HTML parameter forms, however if you want to create your own, create an html file containing an html form tag:
    <FORM ACTION="http://myhost.mydomain/cgi/rwcgi60.exe" METHOD="POST">
    and within this form tag, have various input fields:
    <INPUT TYPE="TEXT" NAME="p_param1" SIZE="6" VALUE="ENAME">
    where the NAME is the name of the report parameter. BTW, these fields don't have to be just text - you can have radio buttons, drop-down lists, etc.
    Regards
    The Oracle Reports Team http://technet.oracle.com

  • Passing parameters to report from a form

    I have a form with a button that when pressed will call a report (using the run_product).
    How do I pass a parameter from the form to the report?
    Cathy

    Cathy,
    Run_product is obsolete and should be changed to run_report_object. See the forms online help for information about how to use this built-in including information about passing parameters.
    You can also look at the Headstart form qms0012f (and it's associated qms0012l.pll) to see how we use run_report_object.
    Regards,
    Lauri

  • Passing parameters to report from current form

    Hi all!
    I have a problem with parameter passing from form to report. I want to display the report with the current customer id and current product id from the form. But my problem is I don't know how to pass parameters from form to report. I am a new user of oracle applications. If any one can help me, please tell me step by step what I should do because I am so new with oracle developer.
    Thanks.
    Sonia.

    Hi,
    An easy way to pass the parameters to the report from the form.
    In the trigger from where u are calling the report you can write a short code there to pass on the parameters you want in the report.
    declare
    pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAM1',TEXT_PARAMETER,:FORM_ITEM1);
    Add_Parameter(pl_id,'PARAM2',TEXT_PARAMETER,:FORM_ITEM2);
    Add_Parameter(pl_id,'PARAM3',TEXT_PARAMETER,:FORM_ITEM3);
    Run_Product(REPORTS,'C:\UR.RDF',(SYNCHRONOUS or ASYNCHRONOUS), RUNTIME,FILESYSTEM, pl_id);
    END;
    For this there is an assumption that in your report you have created, 'PARAM1', 'PARAM2', 'PARAM3' as User Parameters in you data model.
    I have also just now answered for your problem of setting item properties on select of a value from an LOV. Check that out too.
    Regards
    Chintan

  • Unable to pass parameters from APEX to Oracle EBusiness suite R12 forms

    Hi
    We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
    We are trying to pass parameters via this URL
    http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
    The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
    if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
         IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
              FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG(' ');
              --FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
              lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
              IF lC_incident_number IS NOT NULL THEN
                   copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
              END IF;     
              FND_MESSAGE.DEBUG(' ');
         END IF;
    END IF;
    Is this the right way of passing the parameters?
    all technical inputs are welcome.
    Regards
    Sam

    Hi
    We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
    We are trying to pass parameters via this URL
    http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
    The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
    if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
         IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
              FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG(' ');
              --FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
              lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
              IF lC_incident_number IS NOT NULL THEN
                   copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
              END IF;     
              FND_MESSAGE.DEBUG(' ');
         END IF;
    END IF;
    Is this the right way of passing the parameters?
    all technical inputs are welcome.
    Regards
    Sam

  • 10g Forms passing parameters 10 Reports

    Hello All,
    Developer 10g (9.0.4.19) and Win2000.
    Converting from web 6i 10 10g.
    6i Forms invokes a report using run_report_product. Parameter values containing spaces have single quotes concatenated to them.
    6i web runs fine.
    I used Forms Migration Assistant to convert to 10g. No errors nor issues reported.
    Run same Form and Report combo on 10g and the report fails with "Quoted string not properly ended".
    Why? Is this a setup issues? A bug?
    I've searched metalink and this forum, seeing many people with the same (or similar) problem but haven't seen a fix offered by Oracle.
    We have several hundred forms/reports and a workaround, or a required change would put a large burden on our small staff.
    Please advise.
    -Chris

    Check out Bug 3451404. You may want to confirm this with Support.
    Regards
    Grant Ronald
    Forms Product Management

Maybe you are looking for

  • Doubt in OSS

    In SNote transaction i want to download a SAP Note which is not present in my system. For example i tried with Note :427325 But its giving an error . No log exists for SAP Note 427325. How to do this. I went through the help. There it has been mentio

  • K8600 not working correctly on Windows 7

    My k8600 just won't to print with the right scale on word, autocad, adobe reader and maybe the other software installed on windows 7. If i print a drawing or text on A3 sheet the result is that the print occupies only the top-left side of the sheet.

  • Can I use Struts Validator Plugin's html:javascript tag?

    Hi: Is it possible to incorporate the client-side validation using Struts Validator Plugin's tag <html:javascript>? i.e. 1) Insert the following tag to A.jsp and define a taglib: <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <html:javascr

  • Large Value problem with Oracle Provider for 9.2.0.7.0 and 10.1.0.4.0

    Hi, There is table having single column "SCORE" as shown below. | SCORE | |9.0000E+33 | |8.0000E+33 | |7.0000E+33 | |6.0000E+33 | I am trying to fetch column SCORE from above table in database. The type of column SCORE is NUMBER. With Oracle Provider

  • SD programs for Adobe

    Hi, I'm changing SD forms from SAPscript to Adobe way. Can help me with the SD names of programs for Adobe??? For example, Confirmation order in SAPscript is RVADOR01, what is the program for calls Confirmation Order in PDF??? I have version SAP ECC