Run form with javabean
I tried to take one of demo forms which have javabean and run it.
The form is calendarpjc and the jar file is calendar.jar.
1- I put the calendar.jar in e:\devsuitehome_1\forms\java
2- I appended the formsweb.cfg with the following:
[CalendarPJC]
pageTitle=OracleAS Forms Services - Calendar PJC Demo
IE=jinitiator
baseHTMLJInitiator=demobasejini.html
archive_jini=f90all_jinit.jar,calendar.jar
form=calendarpjc90.fmx
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/formsdemo/images/blue.gif
3- Now I am trying to run the form from formbuilder I find error when open canvas:
' Can not find javabean with name oracle.forms.demos.calendar.CalendarWidgetWrapper'
4- when runing the form and press date button nothing happens .
where is the problem????
Just right click on 'My Computer' icon,choose 'properties' menu option,choose 'Advanced' tab,click on 'Environment variables' button,in the system variables,you will find 'CLASSPATH' (one word) envrionment variable in the 'System Variables' section,you will find 'CLASSPATH',if you didn't find it,define one and put in it the path to your jar files.
For me,every jar I add to my applications,I add its path to this variable.
If you are going run on three tier,you should do the same on the middle tier.
Good Luck.
Similar Messages
-
ORA-04062 error when running forms with different users
ORA-04062 error when running forms with different users
I have a form that has a block that should display some data from another users tables. (The other user's name is dynamic, it's selected from a list box)
I wrote a stored procedure to get the data from other user's tables.
When I compile the form and run it with the same user I compiled, it works without any error. But when I run the compiled form with another user I get the ORA-04062 (signature of procedure has been changed) error.
I tried setting REMOTE_DEPENDENCIES_MODE to SIGNATURE in init.ora but it didn't help.
My Forms version is 6i with Patch 15.
Database version is 9.
Here is my stored procedure:
TYPE Scenario_Tab IS TABLE OF NUMBER(34) INDEX BY BINARY INTEGER;
TYPE Open_Curs IS REF CURSOR;
PROCEDURE Get_Scenarios(User_Name IN VARCHAR2, Scen_Table OUT Scenario_Tab) IS
Curs Open_Curs;
i NUMBER;
BEGIN
OPEN Curs FOR
'SELECT Seq_No FROM '|| User_Name ||'.scenario';
i := 1;
LOOP
FETCH Curs INTO Scen_Table(i);
EXIT WHEN Curs%NOTFOUND;
i := i + 1;
END LOOP;
END Get_Senarios;
I would be happy to solve this problem. It's really important.
Maybe somebody can tell me another way to do what I want to do. (getting a list of values from another users tables)I think it should be a better solution to create a package,
and put your own TYPES and procedure into it.
CREATE OR REPLACE PACKAGE PKG_XXX IS
TYPE TYP_TAB_CHAR IS TABLE OF .... ;
PROCEDURE P_XX ( Var1 IN VARCHAR2, var2 IN OUT TYP_TAB_CHAR );
END ;
Then in your Form :
Declare
var PKG_XXX.TYP_TAB_CHAR ;
Begin
PKG_XXX.P_XX( 'user_name', var ) ;
End ; -
Hi to all ....
I have a Forms/Report Application that run on Oracle AS to run the application I have the URL
http://myserver/forms/frmservlet?config=myconfig
there is a way to change it in the application server to have the ability to run the application with a URL like
http://myserver/myapplication?config=myconfig
thank's in advanceIf there is no parameter id set for this checkbox, then I am not sure we can try this without using BDC. I am not aware of Transaction variants in detail but you can check this thread for more details -
Transaction variant -
Hello everybody.
Normally Im running Forms (10g) from Windows client using Firefox 2.0 with Jinitiator 1.3.1.22.
It is obsoleted I think.
My questions are 2.
There is any new version of Jinitiator that can be used with Window 7 or XP but with Firefox 3 or IE later versions?. If true please send me the link.
Also
Where I can find documentation to install the java to run Forms with latest IE.
Thanks in advanced and regards to all.No versions of Oracle Jinitiator are supported on Vista, Win7, or any other newer MS OS. You must use the Sun JRE/JPI on these platforms. You did not mention which Forms version you are using so I will assume by "10g" you mean 10.1.2.x. Please refer to the following:
http://www.oracle.com/technetwork/middleware/ias/downloads/as-certification-r2-101202-095871.html#BABGCBHA
Be aware that in most cases, you must patch your Forms (or Application Server) installation to 10.1.2.3 if you have not already done so. -
I followed all the instructions indicated on Note 1292919.1. The form will run and ask to download the latest Java Plug in. So I know it is not pointing to Jinitiator. The Java Plug in was installed as indicated in note 1292919.1 before running the form. It appears that it is not finding the JRE when running the form.
Oracle suggestion per the below document is to
The example above assumes that a virtual directory called JRE has been setup in the webserver's config files (one way of doing that is to add this line to the httpd.cfg file: AliasMatch ^/forms/jinitiator/(..*) "D:\Oracle\product\FRHome_1/jre/$1")
http://www.oracle.com/technetwork/developer-tools/forms/documentation/forms-jre-131772.pdf
Problem is their is NO httpd.cfg file and I have downloaded the webserver. I wonder do they read the shit they recommend.965234 wrote:
Problem is their is NO httpd.cfg file and I have downloaded the webserver. I wonder do they read the shit they recommend.As you didn't indicate anything regarding version or installation type I guess you have a Developer Suite 10gR2 installed, and you are right that there is no httpd.conf in your installation as iDS doesn't come with a Apache (but the Application Server does).
The aliasmatch would be there to be able to download and install the JRE the first time you are accessing the forms application and have no java installed. On your development machine you could omit this by installing the JRE Version you want yourself, and configure the formsweb.cfg like mentioned in the document. On the Application Server however the httpd.conf is available, and you could declare an aliasmatch like mentioned in the document. If you insist on doing that in your developer suite too, then there is a possibility to do that in OC4J. Edit the file
$ORACLE_HOME/j2ee\DevSuite\application-deployments\forms\formsweb\orion-web.xmland add e.g.
<virtual-directory virtual-path="/your_alias/" real-path="absolute_path" />Then restart OC4J. As said this is only for comfort and not necessary to actually run forms with the sun jpi, so I wouldn't pay much attention to it in development.
cheers -
How to use Adobe forms with F150 Dunning Run
Hi,
I want to use Adobe forms with the transaction F150 Dunning Run.
How do I get the adobe form in customizing? I have put the FM 'FI_PRINT_DUNNING_NOTICE_PDF' in business transaction Event, BF31 - P/S modules of SAP app - 00001720, Fi-FI. But it is still not recognizing the ADOBE form.
Any help is greatly appreciated.Hi,
I am also working for calling custom adobe form instead of sapscript.
While configuring BTE 1720, i noticed that configuring BTE only FI-FI application does not solve the purpose. You need to assign function module FI_PRINT_DUNNING_NOTICE_PDF for all Application Area Indicator.
Adding to IS-PS will allow to print for customer.
This solved my problem. But this setting is global so you need to take care of it. -
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 -
PDF form with XML data connection comes up blank at run time
Hello All,
I am a newbie to ADOBE Livecycle 9, but am very proficient in C#. I would like to request for your guidance on the following issue.
We have a desktop application in C#, WPF, Sqlserver. The requirement is to launch a Livecycle form from the application for the user to read/edit/save data
I have done this much so far -
Downloaded trial version of Livecycle 9
Developed a interactive PDf form
Created an XML based data connection. Generated fields on the form using the fields from this connection.
Set the .XML file as preview source for the form
the controls on the form are boumd to the xml data source
In design mode, the form works fine, it displays my data correctly
I have created a WPF form with a button. On click of this button, I call the Process.Start(pdf-file-path). My pdf is launched properly
I have added a combo box to my WPF form. I select a parameter from this, then call a stored procedure which returns me a datatable depending on parameter passed
Using the returned datatable, I have used the datatable.writexml and datatable.writexmlschema to create my XML and XSD files. as mentioned above, this xsd is used to create the data connection for the PDF and the XML for the preview source
This is what I want to do -
Launch the PDF from my WPF form, pre-populated with the newly created XML data from my WPF form.
So basically, as the user changes the selection criteria from the combo box, the XML file data will change and the PDF file will be launched each time with new data.
The XSD format will always be constant
Problem -
My XML and XSD get created properly, my PDF launches, but it is empty
If I change my selection criteria and run the WPF application, and then open the PDF in design mode, it asks me whether it should refresh the XML source. This means that the PDF form is connecting correctly to the XML source
So why then, does the form come up empty at run time?
What link am I missing?
I have found some sites that help using Web applications, but nothing for desktop applications. It would be fantastic if you could point me to some help for developing Livecycle forms with C# / SQLServer
Your help in this case will be highly appreciated.
Thanks and RegardsOops, something happended with the above post. I will try again... I have tried your suggestion but I still get the same garbled XML (with data repeated and some values "cut in half".<br /><br />Here is what I get after decode-service and extract-to-XML-service. This is just the first barcode, the others are similar, sorry for the poor formatting, but I get a CDATA tage infront of the "istensen" value.<br /> <br />CDATA:istensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />>Superroad 99, 1330 Supertown</fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br />>/sub_Adresse<br />><sub_Person<br />><fld_ForMellemEfterNavn>Kim Christensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />> Superroad 99, 1330 Supertown </fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br /><br />Obviously this is not a legal xml-string, so I can do nothing about it.<br /><br />I have tried using a custom .NET component (ClearImage) for reading the same form (with the barcode) I get the correct data out from the barcodes. So I guess something is wrong with the decode-service in Barcoded Forms ES when I use compressed XML. But I can conclude since the ClearImage component can read the barcodes that they are compressed correctly.<br /><br />Can you help me with getting further with this problem?<br /><br />Sincerely<br />Kim
-
Hi,
I have a form with a WebBrowser control. When I load a page, I am getting the following error popup:
Stop running this script?
A script on this page is causing your web browser to run slowly.
If it continues to run, your computer might become unresponsive.
How to suppress the above error? I tried using WebBrowser.ScriptErrorsSuppressed by setting it to true. But it didn't work for me.
Thanks in advance.
Thanks PrasadHi,
I have a form with a WebBrowser control. When I load a page, I am getting the following error popup:
Stop running this script?
A script on this page is causing your web browser to run slowly.
If it continues to run, your computer might become unresponsive.
How to suppress the above error? I tried using WebBrowser.ScriptErrorsSuppressed by setting it to true. But it didn't work for me.
Thanks in advance.
Thanks Prasad
Hello,
In addition, would you mind sharing us the version of your IE and the detailed html code of that page?
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to run report with selected data in form?
Hi,
Imagine I have a form with a Data block with this inside :
Code | Name
1 | Product1
2 | Product2
I want to run a report that will only select these 2 records from the table "product".
I manage to run a report from forms, but it's a pre-defiined report that will always display the same things. (all the table)
Maybe it's with the paramlist, would you have an exemple or tutorial about that?
Edit : When I create the report object in the form, I can give the source Data Block, but how to use in the report Data Model?
Edited by: Danicela on 24 avr. 2009 10:41One way to achieve this is to use a "temporary" ID-table.
Create a table with just two columns RUN_ID and ID
Then, in forms before starting the report, create a new RUN_ID, e.g. by using a sequence and then, for every record in your block, create a record with the RUN_ID and the record's PK-column-value, in your case this might look like
RUN_ID ID
4711 1
4711 2Commit that data in Forms (e.g. with using an autonomous transaction).
Now, pass the RUN_ID as a parameter to the report, and in reports, restrict your query like
SELECT ..
FROM YOURTABLE
WHERE ID IN (SELECT ID
FROM ID_TABLE
WHERE RUN_ID=:PARAM_RUN_ID
)To be clean, delete the data with the run_id in the AFTER-REPORT-trigger of the report. -
Scrollbars problem when running a form with Sun Java instead of Jinitiator
Hi All;
Our forms are configured to run with the Sun Java instead of
Jinitiator; functionality wise everything works fine, but when running
the forms on the web there are 2 extra scrollbars
(one vertical and one horizontal) in addition of the browser scrollbar.
Note: This is does not happen when running the same form with Jinitiator (same configurations)
Anyone encountered this situation or has an idea how to to get ride of the extra scrollbars ???
Thanks.Thanks for your replay.
I was able to make all forms working without scrollbars when running form developer at the desktop (windows os) without scrollbars
but when I run them at the application server (Linux Red Hat 3 Enterprise), scrollbars are still there.
I tried your suggestion but did not help
here is the formsweb configuration
[jdk15]
baseHTML=base.htm
jpi_classid=clsid:CAFEEFAC-0015-0000-FFFF-ABCDEFFEDCBA
jpi_codebase=http://server_name:port/forms/jinitiator/jre15012.exe#Version=1,5,0,12
jpi_mimetype=application/x-java-applet;jpi-version=1.5.0_12
jpi_download_page=http://server_name:port/forms/jinitiator/jdk_download.htm
baseHTMLJInitiator=basejpi_with_disableMDIScrollbars_param.htm
archive=frmall.jar
separateFrame=False
splashScreen=no
background=no
width=975
height=575
form=xxxxx.fmx
lookandfeel=Generic
logo=no
otherparams=useSDI=yes
The window get maximized at when-new-form-instance.
Does it has to do with the canvas or window height and width at the design time????
Thanks. -
Can Test Custom Jars with 6i Run Form - Client/Server?
I want to test custom Jar files with Forms 6i from my desktop, but I cannot get the Run Form->Web to work. Is it possible for the run time to load the just jars for PJC when you do Run Form -> Client/Server? So far, when I have done this, it does not execute any PJC. Any ideas, tips?
Thanks,
KurzHi Kurz
Any ideas, tips?pls have a look
http://www.dulcian.com/papers/ODTUG/2004/ODTUG%202004_Balcu1_JavaBean.htm
http://www.oracle.com/technology/sample_code/products/forms/extracted/getclientinfo/readme.html
http://www.scribd.com/doc/1027764/Forms-6i-Deploying-Forms-Applications-to-the-Web-with-Oracle-Forms-Server
Hope it helps u
Regards,
Abdetu... -
Error running forms 10g with OC4J
Hi everyone,
I installed Oracle DB 10g and Developer Suite 10g (did not install Ap. Server) at the same machine (different homes), everything seemed to be OK, I use sqlplus with no problems, then I did this:
1) Created a table with just one field
2) Created a test form with Forms 10g using wizard with just that table and that field (I connect to oracle with no problems on forms builder)
3) Started OC4J Instance
4) When I run the form, it opens Internet explorer then shows Oracle application server forms service, but with this message ORA-12560 TNS: Protocol Adapter error, I click OK and ask me for a user and password, but the same error!!
IS there any configuration that I have to do on OC4J?? Why I can connect to oracle from sqlplus, enterprise manager and so, but it fails running forms, specifically when open OC4J???
Thanks in advanceDid you save the form before running it, in the context of the builder? there is a known bug in this area.
Patrick. -
Trouble with running form on web through form builder
Can anyone help me? I have research every document, talked with metalink and have checked everything. I cannot find the problem.
While running form on web through form builder, receive error FRM-92100 Connection to server was interrupted. I have checked details and receive java exception java.lang.ArrayIndexOutofBoundsException:256. Not sure this means anything but adding it just in case.
I am running Forms 6i, version 6.0.8.20.1 Loaded forms from CD which did not include the WEBDB listener, so loaded listener seperately. Loaded database version 8.1.7 with apache server.
Information in my httpd.conf file shows servername myserver.domain, port 80 and listen 80.
Information in my formsweb.cgf file shows serverport 9000 connectmode:socket
What else should I check? What is set wrong? All services up and running.
Can anyone help?Toni,
try the following
from the orant/bin directory type the following
ifweb60 <modulename> <userid>
make sure that the Forms module to start is in the Forms60_Path and can be found.
If all works well then this should start teh Appletviewer showing the Forms you request
to run.
Hope that I am not misunderstanding you and you are looking for starting Forms from the Forms developer by clicking on the preview button in the toolbar. If you are looking for Web deploying Forms applications, requesting it from a Browser, then the configuration is different.
Frank -
Running form from Forms Builder with IE
Forms 11.1.1.4, IE 8, Windows 7 64-bit.
1. Running form from Forms Builder with IE results in Page cannot be displayed. My Java console doesn't even appear so it's not getting to the servlet part.
2. Running same form stand-alone in IE works fine. The URLs are identical (I've cut/pasted them)
3. Running same form from Forms Builder with Firefox works fine. The only change I made was to the runtime preference for the browser location.
Seems like this has to be something to do with the browser configuration that only occurs from Forms Builder. What could it be?I'm not sure about the specifics of your configuration but I suspect the answer is in formsweb.cfg (and the associated .env file).
I think that generally the configuration that runs for formbuilder is the "default" whereas you could be specifying a different
one on the url not going through formbuilder. (but if you're using em then it's really hard to know what's going on since it seems
to not write changes back to the config and env files until it is stopped. This caused me many days of confusion until I figured it out and
that's why I would highly advise never using it to modify .config or env settings.)
check what jre is installed in ie (tools, manage addons, there is on my machine:
java 2 plugin ssv helper and JQSIEStartDetectorImpl browser helper object.
Not sure which one or both is necessary.
Have your url be a trusted site, unblock it from popup blockage, and most of all stare at your formsweb.cfg default section. It would help
if you specified what was in the url. do you have config=X in there?
Edited by: lake on Jul 23, 2011 12:21 PM
Maybe you are looking for
-
Hi All, I am importing Sub Agreement in XML format and getting below error. XML import could not process field: CONTRACT_UNIQUE_DOC_NAME unsupported null bind parameter no. 0 Below is the XML. <?xml version="1.0" encoding="UTF-8"?> <sapesourcing xsi:
-
Multiple Iterator for single Method Binding
Hi, I have a POJO data control, which is exposing a method that is calling web service and fetching the data. The method has been added on the page as method action and created corresponding methodIterator. Now i want to create multiple tables based
-
InContext Editing service interruption 10:00pm Jan 14th, 2009 - approx 1.5 hours
The Adobe InContext Editing service will undergo scheduled maintenance for approximately 1.5 hours starting at 10:00PM PST on Jan 14th, 2009. The service will be unavailable during this time. We appreciate your patience and apologize for any inconven
-
Why isn't unchecked music synced to my iPhone?
I have an iphone 4 connected to windows 7 computer. All going well until recently, last time I connected to itunes I had a warning that all my music was unchecked, so no music would sync to iphone. (This was not a change I had made.) In itunes howeve
-
Hi, I have created a complex view A with user defined function as column. Then created another view B by selecting from the previous view. Now when I query the view B the perfornance well but when I use order by clause in the query then the performan