URGENT !!!!!!!!!How to pass parameters to Forms from Reports(Oracle 10g)
Hai
I can call a form named "ABC" from one Report, using "hyperlink" . The URL is
http://....../forms90/f90servlet?form=c:/ABC&userid=a/a@a
Now I want to pass 2 parameters (that are received in that report) to the form ABC.
I am using Oracle 10g.
What to do?
Please reply soon.
I am eagerly waiting for the solution.
Please Help.
Bye
Hai
Thank u for the reply.
Is it possible to pass the variable instead of values.
My report receives 2 parameters named p1 & p2. Actually I want to pass that parameters to the form from the report.
I have tried as You said.
//http/.........&otherparams=param1=:p1+param2=:p2
Then the form receives the ":p1" as the value, it does not take the value of that variable p1.
Please Reply Soon.
Bye...
Similar Messages
-
How to pass parameters to concurrent program report from Forms Personalizn
Hi All,
I am trying to run a report from a menu entry in the AP Invoice entry form. For this I have done the necessary steps of creating the menu entry and am assigning the values for the 2 parameters to a global variable and then launching SRS form.
In SRS form created an action to assign the global variable value to work_order.parameters. I can invoke the SRS OK except that my 2 parameter values appear concatenated in the first parameter itself and are not getting assigned to each of them seperately.
my global variable assignment is as follows :
=${item.inv_sum_folder.vendor_name.value}||'.'||${item.inv_sum_folder.vendor_site_code.value}
and my work_order.parameters value assignment is as follows :
=select nvl(${global.kmg_invalid_po_gv.value}, ${item.work_order.parameters.value}) from dual
It passes parameters OK if i replace custom report with standard AP report. I also made my parameters to be free text (17 character value set) to not validate input, but still no joy.
Any ideas why this is not working ?
Thanks in advance.
ShankarAs Francois said in his answer:
e.g.:Form A call FORM B
In form A (Button's or menu's Trigger code)
DECLARE
param_list_id ParamList;
BEGIN
param_list_id := GET_PARAMETER_LIST('EMPNO');
IF NOT ID_NULL(param_list_id) THEN
DESTROY_PARAMETER_LIST(param_list_id);
END IF;
param_list_id := CREATE_PARAMETER_LIST('empno');
ADD_PARAMETER(param_list_id, 'EMPNO', TEXT_PARAMETER, EMPNO);
CALL_FORM ( 'FORM B.FMX',HIDE,DO_replace,NO_QUERY_ONLY,param_list_id);and in FORM B create a parameter EMPNO (e.g.: varchar2) in node tree(parameter) and at Form level (e.g. WHEN NEW FORM INSTANCE read parameter-
or you could create a GLOBAL variables
or, still,Global procedure in LIB
Regards -
How to pass PARAMETERS to FORMS while calling them through URL
Hi,
I am working on integrating EBS with OBIEE as per the doc id 552735.1(metalink2)
In the Document, Oracle had given an example for genating the URL in OBIEE as follows,
SELECT
HEADER_ID,
fnd_run_function.get_run_function_url(
CAST(fnd_function.get_function_id('ISC_ORDINF_DETAILS_PMV') AS NUMBER),
CAST( VALUEOF(NQ_SESSION.OLTP_EBS_RESP_APPL_ID) AS NUMBER),
CAST( VALUEOF(NQ_SESSION.OLTP_EBS_RESP_ID) AS NUMBER),
CAST( VALUEOF(NQ_SESSION.OLTP_EBS_SEC_GROUP_ID) AS NUMBER),
'HeaderId='||HEADER_ID||'&pFunctionName=ISC_ORDINF_DETAILS_PMV&pMode=NO
&pageFunctionName=ISC_ORDINF_DETAILS_PMV',
NULL) as ORDER_HEADER_ACTION_LINK_URL
FROM OE_ORDER_HEADERS_ALL
But this one navigates to the JSP page of sales orders. Its working fine,
h3. Problem :_
If i want to navigate to Oracle forms(say Sales Orders),
i'm able to navigate, by giving the 1st param as '5522'(Sales order Form ID(ONT_OEXOEORD)) and 5th parameter as NULL.
The 5th parameter is used to navigate to a particular record.
But i dono how to pass the parameters to this particular Sales Order Form..!
(like here they hav passed HEADER_ID in a particular format)
{I guess, this might not be understood totally with this given data here, but i don want to make this post too big.}
CAN ANYONE PLEASE TELL ME, HOW TO KNOW THE FORMAT OF THE "PARAMETERS" TO PASS(WHILE GENERATING URL)_WHILE CALLING AN ORACLE FORM.._
Thanks in Advance..!!Hi,
In addition to the above...
if i give the 5th parameter as, 'HEADER_ID=||'header_id { in runtime it'll be converted as 'HEADER_ID=5432..}
I'm not getting any error, getting a fresh Sales order page..!! { The given Header ID is ignored }
else if i give something like 'HEADER_ID=||'header_id||'&FunctionName=ONT_OEXOEORD...' { lets say }
its throwing the following errors..
FRM-47023: No such parameter named G_QUERY_FIND exists in form OEXOEORD.
FRM-40105: Unable to resolve reference to item PARAMETER.G_QUERY_FIND
FRM-47023: No such parameter named ORDER_NUMBER exists in form OEXOEORD.
and then it shows up the Navigator.
Requirement :_
How to pass parameter to a form while calling them through URL.
Thank you, -
How to pass parameters to javascript from HTMLB Button Click
Hi Experts,
I am using a HTMLB Button, I need to pass parameters to JavaScript onClientClick.
Whether we can pass parameters to javascript function from HTMLB button.
I tried to pass parameters to javascript in onClientClick, but on load of the page it is saying that its a Syntax error.
This is the code that i have created Script
Note: The parameters and the Button are dynamically created. Also there are n Numbers of buttons created.
Please help me in this regard to solve the issue. If there are any error in syntax please let me know.
Thanks & Regards,
PalaniRather than using SQL loader, you could just use similar syntax in an external table definition. It both cases, the file may need to be at the OS level.
http://www.psoug.org/reference/externaltab.html
If your file is stored in an Apex table's clob column, you can just loop through the individual lines (but then need to parse the lines yourself). See clob2line here http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:285215954607#388438800346703098
Or you can dump the clob to the OS first (using utl_file or dbms_lob), and then read it back using external table, taking advantage of your control file definition. sqlloader has the disadvantage of needing user/pass usually.
http://www.psoug.org/reference/dbms_lob.html
http://www.psoug.org/reference/utl_file.html -
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 assistanceHi 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 -
How to pass parameters in forms
Hi,
I have created a form based on a view and now i want to pass value from one of the field of this form to another form's field,
how i can do this.
Thanks
MuhammadHi,
You can use the call_form biult-in to call form and pass the parameter to calling form.
call_form('form name',parameter value);
Thanks
Radhakrusnna -
How to pass parameters to JasperReports from Java Code !!
Hi all
I m working on existing project and struck with a little problem. Though i have created report using iReport tool but i dont know how to integrate my reports with java code and pass suitable parameters.
Note : To answer this knowledge of jasperreports is must.
Kind regards
jitendraNote : To answer this knowledge of jasperreports is must.Then Note: you are asking in the wrong place. Try a Jasper Reports forum. Not this site.
-
URGENT:How to pass parameter to page from java portlet
Hi,
All i need to do is to pass a parameter from my custom java portlet to an omniportlet. Is it achievable? If so, please point me direction!
Thanks,
CerenHmm yeah or else you could use java.net.URLEncoder.encode(String s) to encode it automatically.
(java.net.URLDecoder.decode(String s) decodes btw) -
Report with Form Passing date to form from report issue
Hi All ,
I got stuck up in the below issue .Can anyone point out the issue behind it and how to get rid of this.
I have created a report page with form page .The report page have 2 column identified as conjugate primary key.the col1 is varchar2 and col2 is date .
The report page have one link on col1 field which is passing the Item_value for both col1 and col2 to form page .
In the DB level the col2 data type is date (for e.g : 26/07/2007 07:08:56) .But the probem is when we are clicking on the link of col1 it is displaying error like Error like ORA-01403: no data found .
But if the data in DB is only in format of DD/MM/YYYY removing the timestmap the link is working fine and returing data for other fields in the form page .
Could anyone pls pointed out the problem and let us know the issue.
Thanks in advance.
Regards,
DebaHi Deba,
I suppose your problem is due to the : in the time.
You're passing these values with the url I suppose? Have a look how APEX generates/constructs the url, it uses : to separate things.
I'm not sure why you want a date in a Primary Key?
Thanks,
Dimitri -
Output required in MS Excel from Reports Oracle 10g error with built in pac
Hi All,
Our requirement is to get matrix report output in MS Excel. For that i found a report online. However, im having issues with Built-in Package OLE2.obj_type.
Below is the report log file:
******* Custom: Version : UNKNOWN
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XX_MATRIX_REPORT module: XX_MATRIX_REPORT
Current system time is 10-AUG-2012 17:23:17
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
REP-0736: There exist uncompiled program unit(s).
REP-0736: There exist uncompiled program unit(s).
REP-1247: Report contains uncompiled PL/SQL.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1247: There exist uncompiled program unit(s).
REP-1247: Report contains uncompiled PL/SQL.
Report Builder: Release 10.1.2.3.0 - Production on Fri Aug 10 17:23:19 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 11242010.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
Output file size:
0
Finished executing request completion options.
Concurrent request completed
Current system time is 10-AUG-2012 17:23:20
Please Help!!!After Report:
function AfterReport return boolean is
begin
RPT2XLS.release_memory;
srw.user_exit('FND SRWEXIT');
srw.message(101,'After Report');
return (TRUE);
end;
RPT2XLS package body:
PACKAGE BODY RPT2XLS IS
TYPE ExcelCell IS RECORD(RowNo binary_integer,
ColNo binary_integer,
Val varchar2(2000),
FontName varchar2(20),
FontSize binary_integer,
FontStyle binary_integer,
FontColor binary_integer,
BgrColor binary_integer,
Format varchar2(60),
Align xlHAlign
TYPE ExcelCells IS TABLE OF ExcelCell;
Cell ExcelCells := ExcelCells();
CurrentRow binary_integer := 1;
PROCEDURE new_line IS
BEGIN
CurrentRow := CurrentRow + 1;
END;
PROCEDURE put_cell(ColNo binary_integer, CellValue in varchar2,
FontName in varchar2 DEFAULT null,
FontSize in binary_integer DEFAULT null,
FontStyle in binary_integer DEFAULT null,
FontColor in binary_integer DEFAULT null,
BgrColor in binary_integer DEFAULT null,
Format in varchar2 DEFAULT null,
Align in xlHAlign DEFAULT null
) IS
BEGIN
Cell.Extend;
Cell(Cell.Last).RowNo := CurrentRow;
Cell(Cell.Last).ColNo := ColNo;
Cell(Cell.Last).Val := CellValue;
Cell(Cell.Last).FontName := FontName;
Cell(Cell.Last).FontSize := FontSize;
Cell(Cell.Last).FontStyle := FontStyle;
Cell(Cell.Last).FontColor := FontColor;
Cell(Cell.Last).BgrColor := BgrColor;
Cell(Cell.Last).Format := Format;
Cell(Cell.Last).Align := Align;
END;
PROCEDURE run IS
Application OLE2.OBJ_TYPE;
Workbooks OLE2.OBJ_TYPE;
Workbook OLE2.OBJ_TYPE;
Worksheets OLE2.OBJ_TYPE;
Worksheet OLE2.OBJ_TYPE;
WorkCell OLE2.OBJ_TYPE;
WorkColumn OLE2.OBJ_TYPE;
WorkFont OLE2.OBJ_TYPE;
WorkInterior OLE2.OBJ_TYPE;
ArgList OLE2.LIST_TYPE;
BEGIN
Application := OLE2.create_obj('Excel.Application');
OLE2.set_property(Application, 'Visible', 1);
Workbooks := OLE2.get_obj_property(Application, 'Workbooks');
Workbook := OLE2.invoke_obj(WorkBooks, 'Add');
Worksheets := OLE2.get_obj_property(Workbook, 'Worksheets');
Worksheet := OLE2.get_obj_property(Application, 'ActiveSheet');
for i in Cell.First .. Cell.Last
loop
if Cell(i).Val is not null then
ArgList := OLE2.create_arglist;
OLE2.add_arg(ArgList, Cell(i).RowNo);
ole2.add_arg(ArgList, Cell(i).ColNo);
WorkCell := OLE2.get_obj_property(Worksheet, 'Cells', ArgList);
ole2.destroy_arglist(ArgList);
ole2.set_property(WorkCell, 'Value', Cell(i).Val);
ole2.set_property(WorkCell, 'NumberFormat', Cell(i).Format);
if Cell(i).Align is not null then
ole2.set_property(WorkCell, 'HorizontalAlignment', Cell(i).Align);
end if;
WorkFont := OLE2.get_obj_property(WorkCell, 'Font');
WorkInterior := ole2.Get_Obj_Property(WorkCell, 'Interior');
if Cell(i).FontName is not null then
OLE2.set_property(WorkFont, 'Name', Cell(i).FontName);
end if;
if Cell(i).FontSize is not null then
OLE2.set_property(WorkFont, 'Size', Cell(i).FontSize);
end if;
if mod(Cell(i).FontStyle, 2) = 1 then
OLE2.set_property(WorkFont, 'Bold', 1);
end if;
if mod(Cell(i).FontStyle, 4) > 2 then
OLE2.set_property(WorkFont, 'Italic', 1);
end if;
if mod(Cell(i).FontStyle, 8) > 4 then
OLE2.set_property(WorkFont, 'Underline', 2);
end if;
if Cell(i).FontColor is not null then
OLE2.set_property(WorkFont, 'ColorIndex', Cell(i).FontColor);
end if;
if Cell(i).BgrColor is not null then
OLE2.set_property(WorkInterior, 'ColorIndex', Cell(i).BgrColor);
end if;
OLE2.release_obj(WorkInterior);
OLE2.release_obj(WorkFont);
OLE2.release_obj(WorkCell);
end if;
end loop;
ArgList := ole2.create_arglist;
ole2.add_arg(ArgList, 'A:Z');
WorkColumn := ole2.Get_Obj_Property(WorkSheet, 'Columns', ArgList);
ole2.destroy_arglist(ArgList);
ole2.invoke(WorkColumn, 'AutoFit');
OLE2.release_obj(WorkColumn);
OLE2.release_obj(Worksheet);
OLE2.release_obj(Worksheets);
OLE2.release_obj(Workbook);
OLE2.release_obj(Workbooks);
OLE2.release_obj(Application);
END;
PROCEDURE release_memory IS
BEGIN
Cell := ExcelCells();
SYS.DBMS_SESSION.free_unused_user_memory;
END;
END;
We are getting the error in log file Report contains uncompiled PL/SQL.
due to ole2.obj_type... -
Form Personalization - Custom Function - How to pass parameters?
Hi,
My requirement is to call a custom mod pl/sql program (html page) from purchasing when the "approve" button is pressed. I have it working, but don't know how to pass parameters to my function.
I have my function defined and registered. In the definition under "Web HTML" tab, I have my pl/sql procedure call under "HTML Call". Where do the parameters go?
On the customization of form POXPOEPO, I am using Builtin - Launch a function. I want to pass the po_header_id, so under "Parameters", I did "Insert Item Value" of :PO_HEADERS.PO_HEADER_ID
My custom HMTL page is popping up, but the parameter is not being passed. Is there something in the Function Definition where I can define the incoming paramaters?
Thanks.
PaulHi paul;
There are many usefull link avaliable if you googling
http://www.google.com.tr/#hl=tr&biw=1259&bih=793&&sa=X&ei=4wxQTZmYEISRswaNktWSDQ&ved=0CC4QBSgA&q=How+to+pass+parameters%2Bform+personalization&spell=1&fp=64d53dfd7a69225a
Regard
Helios -
Form personalization - new custom function - how to pass parameters?
Hi,
My requirement is to call a custom mod pl/sql program (html page) from purchasing when the "approve" button is pressed. I have it working, but don't know how to pass parameters to my function.
I have my function defined and registered. In the definition under "Web HTML" tab, I have my pl/sql procedure call under "HTML Call". Where do the parameters go?
On the customization of form POXPOEPO, I am using Builtin - Launch a function. I want to pass the po_header_id, so under "Parameters", I did "Insert Item Value" of :PO_HEADERS.PO_HEADER_ID
My custom HMTL page is popping up, but the parameter is not being passed. Is there something in the Function Definition where I can define the incoming paramaters?
Thanks.
PaulPost your question in below forum:
General EBS Discussion
-Anand -
How to pass parameters between two xterm windows?
Hi,
I would like to know how to pass parameters between two xterm windows where there are two independence processes running on them respectively ? Would appreciate if any one out there can advise me . Thanks.Global variables can be used, but you can do what the online help
says ...
Parameters are passed to called forms by means of a parameter
list. A parameter list is a named programmatic construct that is
simply a list of parameter names (called keys) and their values.
You can pass parameter values to forms invoked by the built-in
subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
can pass parameter values to other Oracle tools with the
RUN_PRODUCT procedure.
A parameter you include in a parameter list can be either a text
parameter or a data parameter. The parameter type determines how
its value is interpreted.
Text Parameters The value of a text parameter being passed to a
called product is a CHAR string that can represent the following:
n a user-defined form parameter defined in a form invoked
by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
n a command line or user-defined parameter for a product
invoked with the RUN_PRODUCT built-in subprogram
Data Parameters The value of a data parameter being passed to a
called product is always the name of a record group defined in
the current form. (A record group is a data structure that
stores records derived from a query or through programmatic
assignment.) Data parameters are used to pass data to products
invoked with the RUN_PRODUCT built-in subprogram. You cannot
pass data parameters to forms.
The following table shows the structure of a parameter list that
contains four parameters:
Key Paramtype Value
CITY Text_Parameter 'BOGOTA'
CATEGORY Text_Parameter 'EXPORTS'
MULTIPLIER Text_Parameter '.0275'
NEW_DATA Data_Parameter 'RECORD_GROUP8'
arun reddy (guest) wrote:
: im trying to do this but i could not find any way for this.
: can any one help me how can i pass parameters between two forms
: in forms4.5. any help will be appreciated
: thanks.
null -
How to pass parameter /1BCDWB/DOCPARAMS from webdynpro?
Hi Experts,
We create a wdp view and indert an adobe form into it. And this form has an interface based on XML schema.
Now we want to translate this form into multi-language, and in wdp side, we will display diffenent language version of form for different regions.
I found that there is a paramater /1BCDWB/DOCPARAMS-LANGU, and it seems can control the language version in processing.
But I donot know how to pass parameter /1BCDWB/DOCPARAMS from wdp to adobe form.
Its my 1st to use adobe form and wdp, i really have no way out. Any advice will be Appreciated.
Thank you.
Richard@sahai: Hey no , I am using very very simple example without any query or complex statement. I just have 2 radio buttons in VIEW1. On clicking the radio button, the naviagtion to view2 is done and the value of selected radio button is passed as a parameter in the plug.
In the view2 , i just have a caption in my layout where i am displaying the parameter value by setting the attribute.THe warning i get is in view2. Here is the code. Apart from this there is no coding in view2.
METHOD HANDLEPLUG_IN_V2 .
DATA:
NODE_CAPT_MSG TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_CAPT_MSG TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_CAPT_MSG TYPE IF_VIEW2=>ELEMENT_CAPT_MSG ,
ITEM_MSG LIKE STRU_CAPT_MSG-MSG.
* navigate from <CONTEXT> to <CAPT_MSG> via lead selection
NODE_CAPT_MSG = WD_CONTEXT->GET_CHILD_NODE( NAME = `CAPT_MSG` ).
* get single attribute
NODE_CAPT_MSG->SET_ATTRIBUTE(
EXPORTING
NAME = `MSG`
VALUE = PAR_1 ).
ENDMETHOD. -
Pass parameter to form from webpage?
Hi guys,
I'm aware that you are able to pass parameters between forms using CALL_FORM (using parameter list).
Is it possible to pass parameters to a form from the webpage?i am trying to pass the parent_id as a parameter to a portal page but am not able to... i can add it to the list of in parameters to the PL/SQL based parent id but when i add the parent id to the url then i get no result... i created a custom attribute for the parent id since there is no attribute build other then page group and page id... when I set the Parent ID attributes default value in the attribute properties of the item type based on PL/SQL it just brings back results for the default value and if i pass a different value for ithe parent id i dont get the correct result I get the result for the default parent id.
I am using the followin url to pass the parent id
http://localhost:7778/portal/page?_pageid=76,87832&_dad=portal&_schema=PORTAL&parentid=22223
Maybe you are looking for
-
Sound only works one one headphone =(
Hello I just bought a brand new hp pavilion dv6 computer with windows 7.. And I cant get the headphones to work properly! I only get sound on one headphone! I tried to update the drivers and I've tried to change to another pair but nothing works! Ple
-
Vendor evaluation - downgrade analysis
Hi, I've a requiremnte in my project that the client wants to see why the grade for some criteria is below 100. So, I would like to know if I have any report showing de delays of the vendor and quantity difference in the goods receipt by Purchase Ord
-
What is the temperature limit of the finger to work on iPhone touchscreen? I'm asking this, because I've noticed that when my finger gets too warm (about 104oF) the screen of my iPhone 5 doesn't recognize its touch. Thank you.
-
Why am I continually getting "Firefox has stopped working" messages?
Seems like constantly, several times a day, I receive the message "Firefox has stopped working" and that Microsoft or Windows is searching for the problem, and then it shuts down. When I open Firefox again, it takes me right back where I left off, wi
-
I cannot transfer a movie purchased from iTunes from my MacBook to my iPad.
Other purchased movies will transfer, but this one won't. This is the error message I get: "...was not copied because you are not authorized on this computer " Every device has been authorized as well. I just can't figure out why it won't transfer. D