Passing parameters to report - nothing displays

My abjective is to pass 3 parameters to a report in Forms. The
user should not see the parameter form. The values passed are
changed programatically based on the screen the user is on. The
parameters are named the same in both Reports Builder and
Forms. The parameter datatypes are character but the fields on
the database are numeric. In Reports Builder, the select clause
converts the character to numeric(TO_NUMBER). In reports
builder the report runs fine but of course the parameter form is
displayed for entering the 3 fields. In forms when PARAMFORM is
set to 'YES', the 3 fields are blank and have to be entered by
the user and the report prints fine but of course, this is not
the desired method from a user point-of-view. The user should
not have to enter anything, just click on the desired report
from the menu item.
Here is my code;
DECLARE
rptID               REPORT_OBJECT;
rpt               varchar2(100);
plID               PARAMLIST;
plName          varchar2(10)          := 'myList';
BEGIN
     plID          := get_parameter_list(plName);
     if not id_null(plID) then
     destroy_parameter_list(plID);
     end if;
     plID          := create_parameter_list(plName);     
     add_parameter(plID, 'P_ACCTNBR', TEXT_PARAMETER, name_in
('OBJECTS.ACCTNBR'));
     add_parameter(plID, 'P_SUBACCT', TEXT_PARAMETER, name_in
('OBJECTS.SUBACCT'));
     add_parameter(plID, 'P_RUACCT', TEXT_PARAMETER, name_in
('OBJECTS.RUACCT'));
     add_parameter(plID, 'PARAMFORM', TEXT_PARAMETER,'NO');     
     -- dont display parameter form for users to enter
     rptID := find_report_object('RETUNIT');
--rpt := run_report_object(rptID,plID);
run_product
(REPORTS,'PlantCatRetUnit.rdf',SYNCHRONOUS,RUNTIME,FILESYSTEM,plI
D);
END;
I appreciate your help.
P.S. I have tried both RUN_REPORT_OBJECT & RUN_PRODUCT.
Neither works correctly.

Hello,
See Following Procedure..
/* This Procedure passes department number as a paramter to
Report and displays Report.
Author - Mr. Adinath R. Kamode
Parameter - Deptname (p_dept)
PROCEDURE CALL_REPORT (V_DEPT IN NUMBER)
V_PLIST PARAMLIST; -
- Parameter List and Name
V_PLISTNAME VARCHAR2
(30) := 'RPTLIST';
BEGIN
-- Check existance of Parameter List
V_PLIST := GET_PARAMETER_LIST(V_PLISTNAME);
IF ID_NULL (V_PLIST) THEN
V_PLIST := CREATE_PARAMETER_LIST
(V_PLISTNAME);
IF ID_NULL (V_PLIST) THEN
MESSAGE('Error in
creating parameter list.');
MESSAGE('.');
RAISE
FORM_TRIGGER_FAILURE;
END IF;
-- Add parameter data , name must be same as in Report
ADD_PARAMETER(V_PLIST,'P_DEPT',TEXT_PARAMETER,TO_CHAR
(V_DEPT));
-- Don't display parameter Form
ADD_PARAMETER(V_PLIST,'PARAMFORM',TEXT_PARAMETER,'NO');
RUN_PRODUCT
(REPORTS,'DEPT.RDF',ASYNCHRONOUS,RUNTIME,FILESYSTEM,V_PLIST,NULL)
ELSE
DESTROY_PARAMETER_LIST(V_PLIST);
END IF;
END;
Adi

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

  • 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 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.

  • 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

  • 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

  • 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

  • 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

  • How to pass parameters from report to graph

    I am trying to call an existing chart from Reports60.
    I figured out that only CHAR and NUMBER parameters can be passed. The mychart.ogr executable works fine from command line with parameters passing.
    Now I'm trying to pass parameter to Graphic Display, for that I associated Report Column/Parameter with Chart Parameter. (set parameter/column property).
    It's not working.. I'm getting Graph for the initial values parameters which are in the chart. Seems like there are no parameter value passing from reports to graph.
    Are there any tricks to pass value for the CHAR parameter?
    Thanks in advance for the help,
    Helen

    Nobody help me?

  • Passing parameters from report portlet to a forms portlet

    Hello All,
    I am trying to link data in a report to a form. Here's the gist: I click on a record in the report and the data is passed to a form in update mode. The problem is that when I click on the record the data is not passed right away to the form. Only after clicking the record again or refreshing the page does the data get passed. Any ideas? I'm sure it's something very simple that I'm missing. Here's the code below:
    report code:
    select ''||empno||'' empno_link, empno, ename, job, mgr, hiredate, sal, comm, deptno
    from scott.emp
    set_context_refresh procedure:
    procedure set_context_refresh
    p_context in varchar2,
    p_context_value in varchar2,
    p_page in varchar2)
    is
    v_Session portal30.wwsto_api_session;
    begin
    v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
    v_Session.set_attribute(p_context, p_context_value);
    v_Session.save_session;
    owa_util.redirect_url('http://jvic9/pls/portal30/url/page/'||p_page);
    end set_context_refresh;
    form code:
    /* ... before displaying the page section */
    portal30.empcust.autoquery_emp_form(p_session);
    autoquery_emp_form procedure:
    procedure autoquery_emp_form
    p_session in out portal30.wwa_api_module_session
    is
    v_RowID varchar2(100);
    v_Session portal30.wwsto_api_session;
    v_empno varchar2(40);
    begin
    v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
    v_empno := v_Session.get_attribute_as_varchar2('EMPNO');
    begin
    select rowidtochar(rowid) into v_rowid
    from scott.emp
    where empno = v_empno;
    end;
    p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_CALLED_FROM_LINK',p_value=>'ROWID');
    p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_ROWID',p_value=>v_rowid);
    portal30.wwa_api_module_event.do_event('DEFAULT','QUERY_BOTTOM',1,'ON_CLICK',True,'',p_session);
    p_session.save_session;
    end autoquery_emp_form;

    Hi John,
                  If Not CRRpt.ParameterFields("AgeType") Is Nothing Then
                        CRRpt.ParameterFields("AgeType").CurrentValues.Clear()
                        Dim ParamValue As new CrystalDecisions.Shared.ParameterDiscreteValue
                        ParamValue.Value = AgeType.ToString 
                        CRRpt.ParameterFields("AgeType").CurrentValues.Add(ParamValue)
                    End If
    Note that the ParamValue.Value should be assigned with exact same data type as you declared it in CR.
    If it is string, Convert your Variable to string first.
    If it is date, make sure you are passing a date variable.
    and so on...
    Regards
    Edy

Maybe you are looking for

  • Pixel dimensions not rendering correctly with Extract Assets?

    Was really excited to hear about extract assets and have been trying to set up a new workflow but am having some difficulty. My PSD is set up ay 2x size, so I need to create 1x-sized assets. My 1x-sized assets are rendering with a 1px white line arou

  • How do I get my ARD/AppleTV to work through bonjour across multiple vlans?

    I am having a heck of a time, I have 200 iMacs running 10.9 and a 10.9 server.  We also have 30 apple TVs.  These are spread over 5 distinct vlans and I am having a heck of a time getting them all to see each other.  I found some information that sta

  • Cursor freezes on startup mac mini

    Cursor freezes at upper left corner of screen.  Using my new Mac Mini. The one with the least amount of storage and most recent Mac OS. Occurs when using third party usb keyboard or Microsoft wireless keyboard and Logitech wireless trackball.  Same p

  • Convert FISCPER3 to FISCPER values

    Hi Guys, I want to convert the values form 0Fiscper3 to 0Fiscper by using 0Fiscyear at Transformation rule like if 0Fiscper3 value is 03 and  0Fiscyear = 2008 then 0Fiscper value is 03.2008. Can anybody guide me if any Function module or formula i ca

  • Where do I store my iDisk shared documents on iCloud?

    Mobileme states that I need to remove iDisk files before June 30th but, Where do I store my iDisk shared documents on iCloud? As a loyal user and paid subscriber of mobileme since inception, I'm a bit confused.