Form with parameters
Has anyone created a form that would allow 3 parameters to be entered and the parameters are used to call a stored procedure which creates a table that will be used in Oracle reports?
Send your form which you are having problem, I want to have a look at it. Send it in [email protected]
Similar Messages
-
FRM-92101 Error by calling the form with parameters
Hi All!
After the migration Oracle Forms from version 6i to 10g by calling the form with parameters the error FRM-92101 occurs. In Application Server log shows the following:
08/12/01 10:26:20 formsweb: Forms session <5> aborted: unable to communicate with runtime process.
08/12/01 10:26:20 formsweb: Forms session <5> exception stack trace:
java.io.IOException: FRM-93000: Unexpected internal error.
Details : No HTTP headers received from runform
at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
System: Oracle Application Server 10.1.2.0.2 with Red Hat Enterprise Linux Release 4. Client PC: Windows XP SP3 and Internet Explorer 7.
Please help me if anybody has this problem before.
SergeyHi Sergei,
I've just finished a three day search for a FRM-92101problem, so I want to post my case, just in case it helps someone.
My case is similar to yours, in that you have a Forms 6i form migrated to 10g and deployed on Linux, although my problem was "very" specific, and thus very hard to find, this might give you some light.
I had a visual attribute that defined the property "Fill Pattern" as "none" applied to a canvas, and it deployed without any problem on 10gR2/Windows, but when deployed on Linux (10gR2/SUSE 9) it would abort the application getting a FRM-92101.
The solution in this case was just changing "none" to "Transparent".
Hope this helps.
Regards,
Miguel. -
Hello everybody,
I created a oracle report i.e Bank Book having banks transactions receipts and payments and opening balance w.e.f 01-jul-2014. parameters are bank code, from_date and to_date. opening balance calculates (return ope from table bankinfo +total receipts-total payments). reports runs correctly via report builder. balances are ok. but the problem is when i run this report via oracle form opening balance return only ope from table bankinfo and skips total receipts-total payments.....
i dont think so why this happend at all. some body help me...
thanks
Abdul SalamHi ,
This community is to discuss Oracle Application Server specific issues, you can post this query in for better response:
Oracle Reports (MOSC)
Regards,
Prakash. -
FRM-41214 unable to run report from forms with parameters
Hi all,
I am unable to run a report from forms if I pass parameters. Report is running fine in reports builder and in url if I access the report straightly.
I used set_report_object_property to pass the parameters.
Any clues to solve this problem?
PriyaHi Jeneesh,
Code is below:
myreport1 :=find_report_object('MYREP');
reportdata := Get_Parameter_List('reportsdata');
IF NOT Id_Null(reportdata) THEN
Destroy_Parameter_List( reportdata );
END IF;
reportdata := Create_Parameter_List('reportsdata');
Add_Parameter(reportdata, 'account_number', TEXT_PARAMETER, :parameter.account_number);
/* Setting the properties into Report Object */
SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESTYPE, CACHE);
SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESFORMAT, 'htmlcss');
SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_SERVER,vc_reportserver);
SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_FILENAME, 'C:\priya\forms\EmcySummary.jsp');
SET_REPORT_OBJECT_PROPERTY(myreport1,REPORT_OTHER,'account_number='|| :parameter.account_number);
/* Value of v_rep identifies the report that is currently running either locally or on a remote report server */
vrep := RUN_REPORT_OBJECT(myreport1,reportdata);
/* Checking for Report Server is started or not, if not throw an exception else proceed */
if vrep = vrep||'_0'then
raise form_trigger_failure;
end if;
vjob_id := substr(vrep,length(vc_reportserver)+2,length(vrep));
vrep_status := REPORT_OBJECT_STATUS(vrep);
/* Checking the status of the report */
WHILE vrep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
vrep_status := report_object_status(vrep);
END LOOP;
/* When the report status is successful then report is generated in Web */
IF vrep_status = 'FINISHED' THEN
-- COPY_REPORT_OBJECT_OUTPUT(vrep,v_tempstorage);
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver, '_blank');
END IF;
---Any clues? -
IAS calling forms with parameters
Hi,
we are using IAS, and i want to logon oarcle applications sesion by calling a form (via url). In addition i would like to pass parameter to the form at the same time. Is that posible? How can i do it?
Thanks in advance
Julioif you are using the forms servlet you can pass your parameters on the URL that calls forms otherparams=p1='10'
-
How to call a form with parameters in PL/SQL
hi
I added a button in my form,now I want to call another form in the button's PL/SQL prucedure. how to do it?
thinks
FrankHi,
You can use wwa_app_module.set_target api.
declare
l_url varchar2(2000);
begin
l_url := 'report1.show&p_arg_names=deptno&p_arg_values=10';
<product_schema>.wwa_app_module.set_target(l_url, 'CALL');
end;
Thanks,
Sharmila -
Deploying forms and reports with parameters from portal
hi , how do i build forms and reports from database limiting them with parameters from the login details on the portal on my application server.
I had the same problem.
I resolve with a new third party tool:
RunDev
I've found it on:
solutionmarketplace.oracle.com
searching "rundev".
James -
Lauching URLS with parameters Form Personalization
Hello,
At Crawley Borough Council we wish to use FP to launch urls with parameters; this would really enhance how CRM is used at Crawley BC. There values are taken from the contact centre customer block e.g. CUSTOMER_HEADER_BLK.CUST_FNAME would could be translated to the value of FRED.
I can launch URLs without parameters ok, as soon as I add parameters I either get a url that does not translate the parameters or get an ORA error on vaildation.
Can somebody please advise me the correct way to proceed.
URL where parameters not translated when launched.
http://cbcstlintraa/stellent/idcplg?&IdcService=GET_FILE&dDocName=CRMResultsForm&RevisionSelectionMethod=Latest&Rendition=Web&QueryText=(dDocType%20<Substring>%20'FormPublished'%20<or>%20dDocType%20<Substring>%20'ScannedDocs')%20<and>%20(xCRMName%20<Substring>%20' ||: CUSTOMER_HEADER_BLK.CUST_FNAME || '<or>%20xCRMPartyID%20<Substring>%20' ||:CUSTOMER_HEADER_BLK.CUST_PARTY_ID||') '
URL that fails validation
='http://cbcstldeva/stellent_test/groups/internal/documents/callform.jsp&customer=CSAMEN&firstname='||CUSTOMER_HEADER_BLK.CUST_FNAME||'&lastname='||CUSTOMER_HEADER_BLK.CUST_LNAME||'&address_1='||CUSTOMER_HEADER_BLK.CUST_ADDRESS1||'&address_2='||CUSTOMER_HEADER_BLK.CUST_ADDRESS2||'&citytown='||CUSTOMER_HEADER_BLK.CUST_CITY||'&county='||CUSTOMER_HEADER_BLK.CUST_STATE||'&postcode='||CUSTOMER_HEADER_BLK.CUST_POSTAL_CODE||'&serviceid='||INCIDENT_TRACKING.INCIDENT_NUMBER||'Hi there,
Try using this syntax for the variable: ${item.customer_header_blk.cust_fname}
E.g.: ='http://www.google.fr/search?q='||${item.customer_header_blk.cust_fname}
for a Google search based on your customer first name... -
How to call a form from one form to another form with parameter..
i'm having a from that will shows the info about the orders that the client has. and i want to show the information of the client. for that i have created one form and i want to call the form from my current form with the given client name as a parameter. then the client_info form has to query with the given parameter. so im passing the :client_order_info.client_name as parameter to the call_form('client_info.fmx',:client_order_info.client_name); but my question is how to access that parameter in the client_info form.. plz help me.. i tried a lot ..
Create a parameter (object navigator -> parameters) with the name client_name and you can access that value in your client info form using :PARAMETER.client_name.
P.S. while calling you can pass parameter using 'cilent_name =>' to make sure that the correct parameter is getting assigned to the value. -
Rep-52005 error when running a report from form with parameter form
I am trying to run a report from a web deployed form and this report has a parameter form. I am getting a Rep-52005: The specified key report does not exist in key map file.
I am using Oracle Forms/Reports 10.1.2.0.2. My code is below. The first part works fine where I run a report with no parameter form, but the second part when I have a parameter form gets the about error.
PROCEDURE call_report (
p_report_name VARCHAR2,
p_reportobj_name VARCHAR2 DEFAULT NULL,
p_parameter_list paramlist DEFAULT NULL,
p_parameter_string VARCHAR2 DEFAULT NULL
IS
repid report_object;
v_rep VARCHAR2 (100);
rep_status VARCHAR2 (100);
v_report_url VARCHAR2 (240);
v_interface VARCHAR2 (50);
v_report_parameter VARCHAR2 (1);
vc_user_name VARCHAR2 (100);
vc_user_password VARCHAR2 (100);
vc_user_connect VARCHAR2 (100);
vc_connect VARCHAR2 (300);
v_reportserv VARCHAR2 (30);
v_job_number number;
BEGIN
/* Get the database to run the report against and
find out if the report has any parameters */
SELECT report_parameter_flag
INTO v_report_parameter
FROM program_list
WHERE program_type = 'REPORTS'
AND UPPER (screen_id) = UPPER (p_report_name);
vc_user_name := get_application_property (username);
vc_user_password := get_application_property (password);
vc_user_connect := get_application_property (connect_string);
v_reportserv := 'rep_xxxx_ias10g_home';
v_report_url := 'http://xxxx.state.il.us';
v_job_number := length(v_reportserv) +2;
vc_connect :=
vc_user_name
|| '/'
|| vc_user_password
|| '@'
|| vc_user_connect;
v_interface := get_application_property (user_interface);
IF ( v_interface = 'WEB'
AND v_report_parameter = 'N'
THEN
repid := find_report_object(p_reportobj_name);
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');
-- v_reportserv := get_report_object_property (repid,report_server);
set_report_object_property (repid, report_server, v_reportserv);
set_report_object_property (repid, report_other, p_parameter_string);
v_rep := run_report_object (repid);
rep_status := report_object_status (v_rep);
IF rep_status = 'FINISHED'
THEN
web.show_document (
v_report_url
|| '/reports/rwservlet/getjobid='
|| substr(v_rep,v_job_number)
|| '?server='
|| v_reportserv
,'_blank'
ELSE
message ( rep_status
|| 'Report output aborted');
END IF;
ELSIF ( v_interface = 'WEB'
AND v_report_parameter = 'Y'
THEN
repid := find_report_object (p_reportobj_name);
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, v_reportserv);
set_report_object_property (
repid,
report_other,
'paramform=yes P_USER_CONNECT='
|| vc_connect
|| ' P_SERVERNAME='
|| v_reportserv
|| ' P_ACTION='
|| v_report_url
|| '/reports/rwservlet'
v_rep := run_report_object (repid);
rep_status := report_object_status (v_rep);
IF rep_status = 'FINISHED'
THEN
web.show_document (
v_report_url
|| '/reports/rwservlet/getjobid='
|| substr(v_rep,v_job_number)
|| '?server='
|| v_reportserv
,'_blank'
ELSE
message ( rep_status
|| 'Report output aborted');
END IF;
ELSE
run_product (
reports,
p_report_name,
synchronous,
runtime,
filesystem,
p_parameter_list,
NULL
END IF;
EXCEPTION
WHEN OTHERS
THEN
message (SQLERRM);
END;
My parameter form comes up and I enter the necessary information and hit submit query button. Then I get the Rep-52005: The specified key report does not exist in key map file.
Any help will be greatly appreciated!!
Shellie BrickerYour code seems to be implementing metalink note 139546.1 - Using Reports parameter forms with RUN_REPORT_OBJECT on the web.
For what I can see, the P_ACTION parameter should end in ?...
i.e.
P_ACTION=http://<hostname.domain:port>/reports/rwservlet?'
set_report_object_property (
repid,
report_other,
'paramform=yes P_USER_CONNECT='
|| vc_connect
|| ' P_SERVERNAME='
|| v_reportserv
|| ' P_ACTION='
|| v_report_url
|| '/reports/rwservlet?'
);If this does not fix your problem, then to troubleshoot further you would have to post the code in your Before Parameter Form trigger of your report.
Hope this helps,
UPDATE:
If the above does not fix your problem, my guess is that report name is not being generated in the hidden runtime values build by the code in the Before Parameter Form trigger.
i.e.
http://localhost:8889/reports/rwservlet?report=&destype=cache&desformat=PDF
The above code will throw error REP-52005: The specified key report does not exist in key map file.
Edited by: Rodolfo Ferrari on Jul 8, 2009 9:43 PM -
Uploading a form with document using resource template
Hi,
I'm moving a system from Portal to Apex. The system has a number of "procedure pairs", one procedure printing a form and the other being the "action" of the form. Mod_plsql would handle the file uploaded and the action procedure would be aclled with the file name and all meta data.
A resource template seem to be able to handle this.
So I have created a POST method, pl/sql type handler called upload (that's the whole template).
I have the :contentType and :body working, my problem is the meta data (other fileds in the form).
My form looks like this:
<form name="kr_form" action= "http://<server>/apex/upload" method="post" enctype="multipart/form-data" >
<input name="p_filename" type="file" size="20"><br>
<input name="p_title" id="p_title" type="text" size="20"><br>
<input type="submit" value="Save">
</form>
How am I to access p_title in my handler?
I've tried adding a parameter without success. My form is much like the image gallery sample but I cant get it to work.
I tried setting enctype="application/x-www-form-urlencoded" in the form but that got me Internal Server Error.
I would also like to get the file name of the submitted file (like "cat.gif"). Is this possible?
Kind regards
TomasHi Colm,
unfortunately the server is not available today (Friday). The upload template is much like the image gallery sample. From my memory:
URI: upload
Method: Post
Type: pl/sql
Parameters: just the two header params, status and location, as in image gallery
:body (the blob) and :contentType work. Form fields above/before the type="file" field work. Fields below/after give me null values in the block.
Setting :status or :location gives me a web page with just "Not found". I tried :location := 'http://www.google.com'.
I have an exception handler in my block and it's not caught there. I don't know where to look for details.
This is the only template I intend to have. I'm assuming it doesn't matter how the form is created, as long as it's "correct".
After the file is saved in my table (and this part works) I just want to redirect to an Apex page that confirms the upload.
I'm only trying to use a resource template because having a pl/sql procedure as the action of a form (with a file) under the Apex Listener does not seem to work.
It seems the problem is that the listener doesn't have an application id in that case. As I said yesterday, if I could somehow specify an app id to the listener my problems would be solved.
Kind regards
Tomas -
Autofill form with database data
I'm trying to create a form that when the page loads, will
automatically fill with data according to the parameters specified in
the url. I then want to be able to change fields within the form, and
submit it, saving the changes to the database.
I can do the last part, saving to the database via a submit button,
but is there a way (non-JavaScript) to autofill the form with the
pertinent data?
You can connect the form to the DB using anODBC connection. This functionality comes as part of Acrobat but the form must be Reader Extended by the full LiveCycle Server version of Reader Extension to allow this in Reader. In your case, if your system is the only on ethat will interact with the DB then this might be a viable solution (but you woudl have to use Acrobat). This solution woudl involve create an ODBC connection in your system then configuring the form to make use of that connection.
Does that make sense?
Paul -
Calling portal v2 pages with parameters in a jsp
Hello everybody,
I'm currently trying to create, in a jsp, a link to a portal-v2 page with parameters.
Practically :
[JSP / Portlet 1]
- a 1st jsp generates some links, all to the same page but each sets a different value to a parameter (for example a productId in a list).
[JSP / Portlet 2]
- a 2nd jsp gets this parameter and use it (for example it displays the details of the chosen product).
So the 1st portlet would be jsp (coded by a portlet designer) and clicking a link would lead to another page (chosen by a page designer) which would hold the 2nd portlet (= 2nd jsp, coded by the same portlet designer).
Writing the second jsp is easy : getting parameters is described in many examples and pdk articles.
But I can't find the java methods to use to generate the link. More precisely I don't know how to call the portal page (which would then be a jsp1's parameter). Adding the parameter is well described in the jpdk API-Doc.
I've tried to use portal events but they seem to work only in an html form. So I supposed it was a wrong way.
As I've lost myself so many times in the API-Doc and I didn't find any jpdk sample about that, I would be really thankfull if someone has an idea (may I hope for a sample code ? :-)
Thanks.
Jean-RochI'm having a similar problem!
I have a JSP page which I have published as a portlet to Portal. The JSP portlet is placed on Portal a page. I need to call this Portal page with some parameters in the URL, which should get passed to the JSP portlet.
In the JSP portlet I used this syntax in release 1 to retrieve the URL parameters:
String p_itemID = request.getParameter("item_id");
That worked great in release 1, but not in release 2.... I think the problem is that you need to define which parameters a portlet has, then map those portlet parameters to page parameters in the page properties. In dynamic page - portlets you define bind variables to accomplish this. But how do you do in JSP portlets? When you try to map Page Parameters to the JSP portlet you'll find that Portal doesn't think that the JSP portlet has any parameters. Hence the page parameters does not get passed to the portlet.
(More info: JDBC----getImportedKeys() )
I've looked at the Multipage example and the forminput example. But I don't see how pass a parameter in the URL to the very first JSP portlet from looking at those examples. I do see how you can pass parameters to the next JSP portlet, but that's not my problem. Maybe I'm missing something obvious...
Any ideas? -
Dynamic link to different form and parameters
Have a few problems i would like some help on.
First i will describe what I’m planning to do.
And I'm sorry if it's a little of the normal way of doing it, but I'm new to the Portal
Have a list over different trip people shall have possibility to join,
Some of those trips can are for the person only and others for the whole family.
So my plan is to show a list of all the trips and then a status saying if
they already has join it or not.
Then the person can press the trip (link) and depending on some data,
they would be transferred to 2 different forms. One for 1 person trip and another for a x person trip.
Like:
Trip | Status | Personal/family
Golf | New | Personal - if pressed open form1
Boat | New | Personal - if pressed open form1
Dinner | New | Family - if pressed open form2
Soccer | Accepted |Personal - if pressed open form1
Tennis | Declined | Personal - if pressed open form1
I made a report, showing all trip, but i can only make it use 1 link to form1, how do i make the link dynamic
The next problem is when i open form1, i would like to do some stuff in PL/SQL (Before Page).
But I have tried to get the parameters from the URL and I cannot get it to work.
I use something like, but the l_names.count is 0
....portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1380125721&p_arg_names=_sessionid&p_arg_values=&p_arg_names=ENROLL_ID&p_arg_values=5677&p_arg_names=_enroll_id_cond&p_arg_values=%3D
DECLARE
l_names owa.vc_arr;
l_values owa.vc_arr;
l_lang varchar2(100) := PORTAL.wwctx_api.get_nls_language;
l_enroll_id NUMBER;
BEGIN
PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
FOR i in 1..l_names.count
LOOP
IF l_names(i) = 'enroll_id' THEN
l_enroll_id:= l_values(i);
END IF;
END LOOP;
END;
What i also want to do is in some cases. Is create a row in a table and populate the form1 with it in the "before page", instead of using query from parameters.
Like:
Trip | Status | Personal/family
Golf | New | Personal - if pressed open form1 and insert data and populate the form with the inserted data
Soccer | Accepted |Personal - if pressed open form1 and do the standard query
How do I do that?One way to do this would be to hold the urls for the pages you need to display in a table. You could then build the links as one of the columns of a report using some fancy SQL.<br>
<br>
Or you could make a simple function to return the correct link based on the relevant parameters:<br>
<br>
create or replace function get_url (p_criteria in varchar2) return varchar2<br>
is<br>
lv_url varchar2(500);<br>
begin<br>
if p_criteria = 'Personal' then<br>
lv_url := 'http://host:port/pls/portal/etc...';<br>
end if;<br>
etc...<br>
return '<a href="' || lv_url || '">' || p_criteria || '</a>';<br>
end;<br>
<br>
Your report could then include the function as one of the columns in your report.<br>
Not very elegant but it should do the job.
Patrick. -
Call Report Builder from Jdeveloper 10g with parameters
hello , how are you
i am in oracle forms for long , today i am work in jdeveloper 10g, i want some questions
1- how call oracle report builder from oracle jdeveloper 10g with parameters
2- if there aren't call from jdeveloper 10g, what is good report tools?
thanks.I'm assuming that what you want to do is actually run a report from a JDeveloper application.
To do this you can use the various ways that Reports offer to invoke reports with the report server - including URL & Web Service interfaces.
More information on these in the Oracle Reports - Publishing reports manual.
Maybe you are looking for
-
I want to call a slideshow in a tabbedpannel.
I generated a slideshow in Bridge. In my webpage I have a modyfied Spry producttable with instead the original Collapsable panels I have 2 Tabbedpanels. All working fine. When I click in the product table an image shows in the first tabbedpanel. Now
-
Has anyone got the screen flick problem solved?
as above thanks. (i am starting to get irritated of the flicking screen)
-
Pavilion Slimline s5212y desktop, Windows 7 I can't find info on how to control lower icon tray depth so that I can see and click on various program install, PDF print and other 'print', 'next', 'finish', etc. commands.
-
I must confess, I am highly dissatisfied with the whole hyped bb10. To start with, it is not user friendly. So much stress for a mobile and supposed to be "handy" device. It's a non utility phone. Not a phone when you need accuracy with speed or shou
-
Hi, Recently i have added one data file(2GB) to undo table space.Later i gog to know it is not recommend to extent the undo table space.In oracle 9i undo management is handle automatically.(in my init<SID>.ora file undo_management='AUTO') I have 3 da