Passing date parameter from forms to report

Hi,
I'm using forms and reports 6i.
I want to pass one date parameter from forms to reports.
Using
Add_Parameter(pl_id,'P_FROM_DATE',TEXT_PARAMETER,:FROM_DT);
giving me error REP-0091- Invalid value for parameter 'P_FROM_DATE'
This i think is because report expects date and here it is converted as varchar.
Please help

Hi Divya,
Even I use this kind of statement
Add_Parameter(pl_id,'P_FROM_DATE',TEXT_PARAMETER,:FROM_DT);and works fine for me.
This i think is because report expects date and here it is converted as varchar
Correct.
Open the report in the builder and under Data Model -> User Parameters, Go to the Property Inspector of P_FROM_DATE. Under Parameter, set Datatype as Character instead of Date.
Hope this should work. and tell me if it works(coz it wokred for me).

Similar Messages

  • How to send more than one parameter from FORM to REPORT?

    Dear all,
    i can send one parameter from FORM to REPORT. but when i send more than one parameter it gives error: frm 41214 unable to run report.
    here is the code i think the error is in the following line of procedure:
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_date_from='||v_date_from||'p_date_to='||v_date_to);
    where to place the parameters and is there any space is required?
    Thanks
    Muhammad Nadeem

    Dear Saeed Iqbal,
    thanks for you reply.
    dear i am using Form 10g run_product is not supported in this version.
    i am using RUN_REPORT_OBJECT.
    PROCEDURE rep_gl_ledger IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    v_date_from date;
    v_date_to date;
    v_detail_id_from varchar2(100);
    v_detail_id_to varchar2(100);
    v_voucher_type varchar2(100);
    --req_no char(17);
    BEGIN
    v_date_from :=      :ledger_para.p_date_from;
    v_date_to :=      :ledger_para.p_date_to;
    v_detail_id_from :=      :ledger_para.p_detail_id_from;
    v_detail_id_to :=      :ledger_para.p_detail_id_to;
    v_voucher_type :=      :ledger_para.p_voucher_type;
    repid := find_report_object('gl_ledger');
    --repid := find_report_object('REPORT80');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_online_FRHome');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_date_from='||v_date_from||'p_date_to='||v_date_to);
    --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /* Display report in the browser */
    WEB.SHOW_DOCUMENT('http://'||:GLOBAL.G_IP||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?','_blank');
    ELSE
         message('Error when running report');
    END IF;
    END;
    Regards:
    Muhammad Nadeem

  • Pass data parameter from URL to Forms

    Hi
    Is it possible to pass a data parameter from asp to Forms?.
    In my asp I have a url to call a form (eg. http://servername:port/forms90/f90servlet/form=testform.fmx). In my testform.fmx I accept 'account no' as a parameter for querying the records. Since I am calling this form from asp, I already have the account no in my asp. I would like to pass this account no to the form automatically.
    Is it possible to pass this data parameter from url to forms?.
    If possible, what changes to be made in the form. Please help.
    sreekumar

    Create a parameter in your form, there's a node for it in the Navigator window. Imagine it is called myParam.
    Pass it on the URL like this:
    http://host/forms90/f90servlet?config=myApp&otherParams=myParam=somevalue
    Regards,
    Robin Zimmermann
    Forms Product Management

  • How to pass date parameter from one page to other in BSP application

    Hello gurus,
    In my BSP application i have taken an input field and made its type "date" and its value also of type date and have set showhelp .
    Now once a particular date is given as an input i want to pass its value to next page. And in next page i have to fire a query based on the date entered in previous page...
    Now my prb is that my date value is not getting passed to the next page.
    I have used
    navigation->set_parameter( name = 'BEGDA' value = BEGDA ).
    to pass date parameter.....still parameter is not getting passed.
    plz help me with this.....
    thankx.....

    Hi Eddy,
    By truncation i mean the entire date becomes 10 char including the ' . ' eg(06.12.2006).
    so with begda being 8chars it takes my date as 06.12.200
    as a result my query is not getting executed.
    now i have tried to use a FM  'CONVERT_DATE_TO_INTERN_FORMAT'.
    in my 1st page but still in 2nd page its giving me following error.
    <b>The data that was read could not be written to the specified target field during a SELECT access. Either the conversion is not supported for the type of the target field, or the target field is too short to accept the value, or the data is not in the appropriateformat for the target field.
    </b>
    Regards
    Swati

  • Error While Passing Parameter from Form to Report

    I am using Dev 9ids. And i am compiling every forms from form 5 to form 9i. and report too.
    Most of reports are running.
    in some i am getting problem where i do pass more than 5,6 parameters.
    for e.g in one case say
    set_report_object_property(rep_id,REPORT_OTHER,'comp_code='||:global.vc_comp_code||' inv='||inv||' invoice_no='||inv_no||' invoice_date='||inv_dt||' vc_name='||cust_name||' Paramform=no');
    this will not run and give error FRM-41214
    when i exclude vc_name or shorten the value of cust_name report run fine.
    length of cust_name and in report vc_name is proper.
    I also need to pass more parameters to report.
    I do think there might be parameter size in any of report system files to be increased.
    Pls help me out how to rectify this problem.
    thanks in advance.
    raj

    You are not getting the result in the report because you have chosen the button event as Query.
    Edit the form, for the Execute button, choose the button event Custom and use the same pl/sql code that you have used before.
    If the event is Query, then the session object does not have value of A_EMPNO at the point where you have written your code. The session object is populated after the Query event has taken place.

  • VERY URGENT!! How to Pass a "% " symbol from form to Report

    Hi
    I am using oracle 10g and passing a symbol "%" as a parameter to the report from a form. But it shows error as follows:
    REP-52006: Failed to decode the specified URL PARAMETER1=%.
    But it is working when it runs in the Report directly.
    Then Why we can't pass the symbol "%" to the report from form.
    Please reply me as soon as possible. IT IS VERY URGENT !!

    Hi,
    Try using a lexical parameter(&parm_1) for a string of values or a bind parameter(:parm_1) for a single value
    Thanks,
    Kimosabe

  • Data migration from Forms to Reports

    Hello,
    Does anyone know how to migrate numerous data from Oracle forms to reports, without using parameter lists or parameters, and also withour the use of temporary tables since my platform is 8.0.6 and forms 4.5?
    Thanks for any replies

    hi daniel,
    you could write your data from forms into a text file. seperate
    the values using for example a comma (or something else).
    use the text datasource in reports 9i to query directly from
    this file.
    find more information here:
    http://otn.oracle.com/products/reports/htdocs/getstart/examples/textPDS/index.html
    regards,
    christian

  • Passing date parameter from prompt

    Hi experts
    I am getting some problem while passing date from a dashboard prompt.
    In RPD i have changed the date column properties as DATE only so that i will get the DATE part of the data not the time stamp.
    Now in the dashboard prompt i added a prompt for the date column.
    I initialized the date prompt with a server variable of sysdate
    when i am running the dashboard i am getting default value in the prompt(04/15/2011)
    when i am changing the date it is selected as(04/15/2011)
    but when i am clicking the 'Go' button the date is converting to 2011-04-15 00:00:00 due to which my report is not running and i am getting error as
    View Display Error
    A date value was expected (received "2011-04-15 00:00:00").
    Error Details
    Error Codes: QABPH2PO
    can anyone help me to pass only date part
    thanks in advance
    regards
    Gourisankar

    Hi J / Srikanth
    Sorry to restart the thread again.
    As we discussed i have downloaded the patch and applied to my windows 32 bit machine.
    But now when i run the report the report is running only for the default value(Server Variable) which is specified to the prompt. when i change the date there is no effect to the report.
    When i drill down to the report i found that the date column(is prompted) is changed to teh server variable name which is might be the cause.
    any input on this???
    regards
    Gourisankar

  • HCM Process and Forms Pass data's from forms to workflow

    Experts,
    In my HCM forms and process, I have some fields. So at runtime Approver will enter some inputs on it. Example [Dependent details - Spouse, child names].
    It will stored temporary in the workflow, and finally will update in the system.
    Now my question is where the data's strored in the workflow. I need the data's entered by the Approver, to check some validations.
    So how to get the data's entered in the Form to the workflow.
    Please help me on this,
    Helps will be highly appreciated.

    Hi,
    Idont have much idea about HCM forms.
    but if u can able to read the forms    u can store it in workflow container and the necessary validations and subsequently u can save it in  database.

  • How to pass record Group from Forms with DATA_PARAMETER to Reports Server

    How to pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    When we use products on run time we are using data_parameter for passing record Groups to reports via run_product but now we have to use application server and reports server for same reports.
    We met with <FRM-41214 Unable to run reports> for passing DATA_PARAMETER to reports server when used RUN_REPORTS_OBJECT.
    How can we pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    Thanks,
    Arif

    Hi Mandeep,
    Could you please tell me how can i pass data parameter from forms to report through run_product.

  • How to pass parameters from Forms to Reports

    dear all,
    i'm running a report from a form using run_product(), now i want
    to pass a parameter from a form to report, say i want to display
    all the employees of deptno=10, so what parameter should i give
    in run_product() and what modifications should i make in the
    report???
    thanks and regards
    Tariq.

    Yeah,
    You can pass parameters to from form to report using
    Parameter list. E.g. You want to display all employees of Dept
    10.
    1. Create report with one user paramter say p_dept
    2. Now Using Parameter list and Run Product you can call report,
    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

  • How to pass parameter from FM to report without changing interface of FM

    Hello experts,
    How can I pass a table name from a FM to the report calling the FM, without changing the existing interface of the FM.
    Thanks,
    Ajay.

    Hi,
    I f you want to pass any parameter from FM to Report or Vice-versa, parameter should me maintained in the FM otherwoise you can't pass any other than existing parameters.
    Otherwise create a custom FM.
    Regards,
    Sunil

  • Pass a parameter from webi to Xcelsius

    Hi all,
    Anybody knows how to pass a parameter from a webi report to Xcelsius via URL?
    I need to refresh the Xcelsius data with a parameter coming from the webi report. With Live Office works but only the first time: the data is not being refreshed in Xcelsius everytime I change the parameter in the webi report.
    I'm thinking in someting like openDocument.jsp but how do I read this parameter in Xcelsius? Which connection should I use?
    Thank you very much,
    jon

    Hi Peter,
    the link provided refers to Xcelsius V4.5.
    In Xcelsius 2008 you have to control Flash Vars in the Data Manager.
    Go to the Data Manager, Add the Flash-Var Connection Type, Select CSV-FlashVar and define a name and a range.
    But i am not sure if Xcelsius Engage can handle FlashVars, because i am only working with Enterprise.
    Please take a look at your manual.
    For sure there are other ways to import data during runtime. Take a Look at the Connections provided by Data Manager. (e.g. QaaWS, SSRS, LiveOffice, Webservices, ...)
    Also take a look at the link below. It might be another nice option for "pseudo" data connectivity
    http://labs.businessobjects.com/xcelsiuspublishing/default.asp
    Best Regards
    Ulrich

  • Pass User Parameters between Forms and Reports...?

    Hi,
    I have been trying to pass user parameters from forms to reports using
    RUN_REPORT_OBJECT. I am able to run the report from the form, but still don't know how to pass user_parameters. Does anyone know how to do this?
    Thanks,
    AB

    You can use SET_REPORT_OBJECT_PROPERTY with the "REPORT_OTHER" parameter
    The following example passes 3 parameters to the report:
    SET_REPORT_OBJECT_PROPERTY(pt_report_object_id, REPORT_OTHER, 'paramform=no p_param_1='||pc_param_1||' p_param_2='||pc_param_2);

  • How to pass a date parameter from report builder query designer to oracle database

    i'm using report builder 3.0 connected to oracle database. i'm trying to pass a date parameter in the query with no success, i don't
    know the exact syntax. I've tried :
    SELECT * FROM igeneral.GCL_CLAIMS where CREATED_BY IN (:CREATED_BY) AND CLAIM_YEAR IN(:UW_YEAR) AND (LOSS_DATE) >To_Date('01/01/2014','mm/dd/yyyy')
    it worked perfectly.
    However if i try to put a date parameter "From" instead of 01/01/2014 it will not work, a Define Query Parameter popup window appear and error occurred after i fill
    the values (usually i shouldnt get this popup i should enter the value when i run the report)
    SELECT * FROM igeneral.GCL_CLAIMS where CREATED_BY IN (:CREATED_BY) AND CLAIM_YEAR IN(:UW_YEAR) AND (LOSS_DATE) >To_Date(:From,'mm/dd/yyyy')
    appreciate your assistance

    Hi Gorgo,
    According to your description, you have problem when in passing a parameter for running a Oracle Query. Right?
    Based on my knowledge, it use "&" as synax for parameter in Oracle, like we use "@" in SQL Server. In this scenario, maybe you can try '01/01/2014' when inputing in "From". We are not sure if there's any limitation for To_Date()
    function. For your self-testing, you can try the query in sqlplus/sql delveloper. Since your issue is related to Oracle query, we suggest you post this thread onto Oracle forum.
    Best Regards,
    Simon Hou

Maybe you are looking for

  • Zooming Safari webpages automatically

    I struggling  to find the best way to zoom Safari webpages automatically. I have used an extension called AllPagesZoom but when used on Youtube pages I'm unable to drag player scrolls properly and some radio button problems too. I have seen a solutio

  • Sol10 10/08 ZFS Webconsole dosnt work ?

    Hi, i got 4 test installations of Sol 10 10/08 an Sparc and X86. On every installtion the zfs webconsole is broken. Its possibel to login https://localhost:6789 and its possible to click on "ZFS...." and after this its broken. Error 404...same error

  • Win32_ComputerSystem does not report username of logged on user

    Hi, I need use a vbscript to be able to detect if a user is logged into Windows 8.1 and if logged in, store the username. All of the research that I have done so far says to use the WMI class Win32_ComputerSystem. When I log into Windows 8.1 and run

  • Use iMessage with iCloud email alias?

    I set up iCloud with my old .mac / mobileMe account. So far no trouble. But I've been using some email aliases that I use for actually emailing and kept the "core" email address (the iCloud log in) a "secret". (Just because I'm afraid of spam. An ali

  • Stop Transaction option not available in Portal

    Hi All, When I acess a Transactional iView from Portal,it does not show the icon on the top left most corner,which will display the below Menu ,when we click on it. Restore Move Size Minimize Maximize Close Create Session Stop Transaction