WEBUTIL ON AS 10.1.2
Hi There,
I've configured WEBUTILS on IDS but dont know how to configure it on Application Server 10.1.2 ..pleae guide as I need to use some webtuils function ..
Thanks
Hi There,
I've configured WEBUTILS on IDS but dont know how to configure it on Application Server 10.1.2 ..pleae guide as I need to use some webtuils function ..
Thanks
Similar Messages
-
Error while compiling forms10g in Unix with webutil features.
Hi,
I developed a form called test.fmb and attached webutil.pll. change all text_io to client_text_io.
Copied the file to unix and tried to compile, it says
CLIENT_TEXT_IO.FILE_TYPE must be declared.
(Please note that webutil.pll has been compiled and .plx file is generated).
Please help.
Thanks.Our Forms_90 Path is
FORMS90_PATH=/AppsTop/FRMTOP/app/9.0.4/forms90:/AppsTop/FRMTOP/app/9.0.4/pi:/AppsTop/FRMTOP/app/9.0.4/webutil:/AppsTop/FRMTOP/app/9.0.4/webutil/forms
I just copied webutil.pll from
:/AppsTop/FRMTOP/app/9.0.4/webutil/forms/webutil.pll to
my local directory C:\webutil.pll
I attached the C:\webutil.pll under Attached Libraries in test.fmb in my own PC.
Please advice.
Thanks,
Mano. -
Error in loading WebUtil package
Dear all,
i have the following problem,
we have install the application server on one machine
Windows server 2003 Enterprise edition
(both the infra and middle tier on the same machine), and we wanted to configure the webutil package with this installation for runtime usage, we met all the configuration steps, and we met all the platform security privilages(windows privilages),but..
when we try to open the form that uses this package, we found two problems, the form didn't open at all and the following log written to the java console which indicates that there is a problem while loading the webutil beans(last few lines)
Waiting for help, and following is the log
Oracle JInitiator: Version 1.3.1.22
Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator.PWAGAZA Proxy Configuration: Manual Configuration Proxy: 192.168.0.5:8080 Proxy Overrides: pwa-application.pwagaza,<local> JAR cache enabled
Location: C:\Documents and Settings\Administrator.PWAGAZA\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0 ----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
---------------------------------------------------- Loading http://localhost/forms/java/frmall_jinit.jar from JAR cache Loading http://localhost/forms/java/frmwebutil.jar from JAR cache RegisterWebUtil - Loading WebUtil Version 10.1.2.0 java.io.FileNotFoundException: File not found: http://localhost/forms/java/myAppIcons.jar at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source) at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source) at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source) at oracle.jre.protocol.jar.JarCache.get(Unknown Source) at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source) at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source) at sun.misc.URLClassPath$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getResource(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at sun.applet.AppletClassLoader.findClass(Unknown Source) at sun.plugin.security.PluginClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at oracle.ewt.util.FocusUtils.<clinit>(Unknown Source) at oracle.ewt.lwAWT.LWComponent.<clinit>(Unknown Source) at oracle.ewt.laf.oracle.OracleLookAndFeel._initCommonFixedDefaults(Unknown Source) at oracle.ewt.laf.oracle.OracleLookAndFeel._getCommonDefaults(Unknown Source) at oracle.ewt.laf.oracle.OracleLookAndFeel._getIndexedDefaults(Unknown Source) at oracle.ewt.laf.oracle.OracleLookAndFeel.getDefaults(Unknown Source) at oracle.ewt.lwAWT.BufferedApplet.getUIDefaults(Unknown Source) at oracle.ewt.lwAWT.BufferedApplet.<init>(Unknown Source) at oracle.ewt.swing.JBufferedApplet.<init>(Unknown Source) at oracle.forms.engine.Main.<init>(Unknown Source) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) WARNING: Unable to cache http://localhost/forms/java/myAppIcons.jar Loading http://localhost/forms/java/jacob.jar from JAR cache Loading http://localhost/forms/java/FormsGraph.jar from JAR cache proxyHost=null proxyPort=0 connectMode=HTTP, native. Forms Applet version is : 10.1.2.0 2006-Jul-10 12:07:37.481 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.481 WUI[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.496 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.496 WUF[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.496 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.512 WUH[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.512 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.512 WUS[SessionFunctions.init()] Dispatcher Monitoring interval set to 5 2006-Jul-10 12:07:37.512 WUS[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.527 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.527 WUT[SessionFunctions.init()] Max Transfer chunk size set to 16384 2006-Jul-10 12:07:37.527 WUT[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.699 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.699 WUO[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.715 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.715 WUL[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.715 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.715 WUB[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.730 WUI[VBeanCommon.destroy()] WebUtil GetClientInfo Utility being removed.. 2006-Jul-10 12:07:37.730 WUF[VBeanCommon.destroy()] WebUtil Client Side File Functions being removed.. 2006-Jul-10 12:07:37.730 WUH[VBeanCommon.destroy()] WebUtil Client Side Host Commands being removed.. 2006-Jul-10 12:07:37.730 WUS[VBeanCommon.destroy()] WebUtil Session Monitoring Facilities being removed.. 2006-Jul-10 12:07:37.730 WUT[VBeanCommon.destroy()] WebUtil File Transfer Bean being removed.. 2006-Jul-10 12:07:37.730 WUO[VBeanCommon.destroy()] WebUtil Client Side Ole Functions being removed.. 2006-Jul-10 12:07:37.730 WUL[VBeanCommon.destroy()] WebUtil C API Functions being removed.. 2006-Jul-10 12:07:37.902 WUB[VBeanCommon.destroy()] WebUtil Browser Functions being removed..Hi Geetha
check if that job is still running,if it is running kill that job first.
change the Data package size from the schduler menu
Now try to load the data again
Regards
PBI -
WUO-709: Unable to get Property: Open == Forms application using Webutil
Hi everyone,
I have configured Webutil and tested a demo application for loading excel data into a forms application. The application works just fine. Here is the code:
DECLARE
application Client_OLE2.Obj_Type;
workbooks Client_OLE2.Obj_Type;
workbook Client_OLE2.Obj_Type;
worksheets Client_OLE2.Obj_Type;
worksheet Client_OLE2.Obj_Type;
filename varchar2(2000);
cell Client_OLE2.OBJ_TYPE;
args Client_OLE2.OBJ_TYPE;
cell_value varchar2(100);
eod boolean:=false;
j integer:=1;
BEGIN
-- The following set up communication with the excel spreadsheet
application := Client_OLE2.create_obj('Excel.Application');
Client_OLE2.set_property(application,'Visible','false');
workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
args := Client_OLE2.CREATE_ARGLIST;
Client_OLE2.add_arg(args, 'c:\test\test.xls');
workbook := Client_OLE2.GET_OBJ_PROPERTY(workbooks,'Open',args);
Client_OLE2.destroy_arglist(args);
worksheets := Client_OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
worksheet := Client_OLE2.GET_OBJ_PROPERTY(application,'activesheet');
--Go to the first record
go_block('planets');
first_record;
loop
If :system.record_status <> 'NEW' then
create_record;
end if;
exit when eod;
for k in 1..3 loop --3 fields per record
args:= Client_OLE2.create_arglist;
Client_OLE2.add_arg(args, j);
Client_OLE2.add_arg(args, k);
cell:= Client_OLE2.get_obj_property(worksheet, 'Cells', args);
Client_OLE2.destroy_arglist(args);
cell_value :=Client_OLE2.get_char_property(cell, 'Value');
if upper(cell_value) = 'EOD' then
eod:=true;
Message('End of Data');
exit;
end if;
--Could be done this way also ->
/*if k =1 then
:dept.deptno:=cell_value;
end if;
if k =2 then
:dept.dname:=cell_value;
end if;
if k =3 then
:dept.loc:=cell_value;
end if;
--Less code this way ->
copy(cell_value,name_in('system.cursor_item'));
next_item;
end loop; --for
j:=j+1;
end loop;--main loop
-- Release the Client_OLE2 object handles
Client_OLE2.release_obj(cell);
Client_OLE2.release_obj(worksheet);
Client_OLE2.release_obj(worksheets);
Client_OLE2.release_obj(workbook);
Client_OLE2.release_obj(workbooks);
Client_OLE2.invoke(application,'Quit');
Client_OLE2.release_obj(application);
END;
-- cell_value :=Client_OLE2.get_num_property(cell, 'Value');
The issue comes when I try to supply filename and path (here, c:\test\test.xls) through a file open dialog. I tried each of these:
1.
filename := client_get_file_name
(directory_name => 'C:\'
,file_name => 'test'|| '.xls'
,file_filter => 'Excel (*.xls)|*.xls|'
,message => 'Select client side filename where App Server file will be saved'
,dialog_type => OPEN_FILE
,select_file => TRUE
2.
filename := Client_Get_File_Name(directory_name => 'C:\'
,file_name => null
,file_filter => null
,message => null
,dialog_type => null
,select_file => null
3.
filename := client_get_file_name ('','','','Select a file to Upload ',null,TRUE);
On using the above, I DO get a file open box. However, after browsing and selecting a file, I am getting the error message:
WUO-709 [OleFunctions.get_obj_property_args()] Unable to get Property: Open; Exception com.jacob.com.ComFailException: Can't map name to dispid: Open
I have checked the documentation on 'WUO-709' but cannot seem to figure out why it's not working.
Sorry for the lengthy description. Would greatly appreciate help on this.
- AmitI forgot to mention that in the modified code, I am supplying 'filename' as:
filename := client_get_file_name ('','','','Select a file to Upload ',null,TRUE);
args := Client_OLE2.CREATE_ARGLIST;
Client_OLE2.add_arg(args, filename);
Thanks,
Amit -
After upgrading AS to run Webutil, Reports Server is no longer found
Recently we update de configuration of Application Server to use the WebUtil features (FileTransfer, etc) but some clients can not view the reports (the PDF files generated and the previous html page where are passed de parameters to generate de PDF file paramform=yes <--- I mean this parameteter passed to RUN_REPORT_OBJECT_PROC )
The curious thing is that in NetScape it Works fine, but in MS Internet Explorer does not.
Initially we thought that was the problem, a configuration in the client, but after formatting the PC, the problem persists.
In the webutils log (after enable this capabilitiy) does not show anything abnormal:
192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[setProperty()] Setting property WUC_SRV_LOGGING to 2
192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[loadSettings()] Local properties file loaded
192.168.0.244:desarrollo: 2006-sep-27 12:19:47.248 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
192.168.0.244:desarrollo: 2006-sep-27 12:19:47.248 WUT[getProperty()] Getting
In a similar topic we read that it could be a problem with the reports classpath, but why webutils configuration works in some clients and with others does not?
In the RUN_REPORT_OBJECT_PROC function instead using relative address for the reports servlet we changed for a complete adress, I mean
RUN_REPORT_OBJECT_PROC(repid,
'/reports/rwservlet')
replaced with:
RUN_REPORT_OBJECT_PROC(repid,
'http://ias.website/reports/rwservlet')
But the problem persists (we have the reports and forms services in the same server)
and after debugging the RUN_REPORT_OBJECT_PROC function, in this line
rep_status := report_object_status(report_message);
report_object_status returns null
Why happends this?
Could you help us? What information need to be posted to this? what else we need to do?
We configured webutils as mentioned in the Oracle® Forms Developer
WebUtil User’s Guide
Release 1.0.6
We're using MS Windows 2003 Server, Oracle AS 10g and Oracle DB 10g
The RUN_REPORT_OBJECT_PROC function (procedure) is the same what is mentioned in
http://www.oracle.com/technology/products/forms/pdf/10g/frmrepparamform.pdf
and the same that worked fine for a long time ago.We added the following lines to webutiljini.htm
For IE
<PARAM NAME="BROWSER" VALUE="InternetExplorer">
<PARAM NAME="MAYSCRIPT" VALUE="TRUE">
For NetScape:
BROWSER="Netscape"
MAYSCRIPT="true"
And adding the frmwebutil.jar to the Reports Server ClassPath the problem was solved -
Trying to use webutil - Works in development, will not work on app server.
I am having a similar problem. I have followed all the instructions from above.
I run my code in the developer and it runs fine. If I run my code from the application server I get locked up.
Here is the output from my java console.
Oracle JInitiator: Version 1.3.1.28
Using JRE version 1.3.1.28-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\BrianG.PSSI
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\Documents and Settings\BrianG.PSSI\Oracle Jar Cache28
Maximum size: 1,024 MB
Compression level: 0
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading http://smprdap2.pssi.local/forms/java/frmall_jinit.jar from JAR cache
Loading http://smprdap2.pssi.local/forms/java/frmwebutil.jar from JAR cache
RegisterWebUtil - Loading WebUtil Version 1.0.6
Loading http://smprdap2.pssi.local/forms/java/esteelman.jar from JAR cache
Loading http://smprdap2.pssi.local/forms/java/sticons.jar from JAR cache
Loading http://smprdap2.pssi.local/forms/java/jacob.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.3
Exception occurred during event dispatching:
java.lang.NoSuchMethodError
at oracle.forms.webutil.common.VBeanCommon.init(VBeanCommon.java:281)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
This is the configuration I an trying to use is:
[SMT1]
form=st_menu.fmx
imageBase=CodeBase
width=1020
height=740
separateFrame=true
splashScreen=/forms/steelman/images/logo.gif
background=no
lookAndFeel=Oracle
colorScheme=purple
logo=/forms/steelman/images/small_logo.gif
formsMessageListener=
recordFileName=
pjcRegisterApplet=oracle.forms.demos.util.RegisterCertificate
pjcArchive=esteelman.jar
baseHTMLjinitiator=signedjini.htm
baseHTMLJinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm.
WebUtilArchive= esteelman.jar,sticons.jar, frmall_jinit.jar, frmwebutil.jar,jacob.jar
archive_jini=frmall_jinit.jar,esteelman.jar,sticons.jar,frmwebutil.jar,jacob.jar,
em_mode=1
serverApp=/steelman/conf/steelman
envFile=C:\steelman\conf\smt1.env
If i do not use baseHTMLjinitiator=signedjini.htm
our application will not launch at all.The first problem I see is that you are using an old version of WebUtil, which is not supported for use with Forms 10.1.2.3 and is probably the cause of the problem.
RegisterWebUtil - Loading WebUtil Version 1.0.6
The correct versions of frmwebutil.jar and webutil.pll are applied to Developer Suite installations and can be copied to Application Server. If you do not have an iDS installation, you can install the latest Forms Bundle patch which includes the correct WebUtil files. Refer to Patch ID 9593176 and Note 1188127.1. Be sure to review the ReadMe included with the patch.
The second problem is that you are using Jinitiator. Jinitiator has been obsolete for a long time. However, if you have some reason why you must use it, I would recommend that you at least get the last version released (1.3.1.30). This can be downloaded from within MyOracleSupport (account required) using Patch ID 7410076. If you do not have access to MyOracleSupport and you are using Forms 10.1.2.3, then you can use JRE6 (1.6.0_37). Do not attempt to use JRE7
http://www.oracle.com/technetwork/java/javase/downloads/jre6u37-downloads-1859589.html
You would need to install the 32bit version: jre-6u37-windows-i586.exe
References:
<li>Note: 566628.1
<li>Note: 561273.1 -
How to upload data from excel to form using webutil
Hi,
In the sample provided by Oracle
http://www.oracle.com/technology/products/forms/htdocs/webutil/howto_ole.html
Note 247606.1 How to Copy Records From a Form Into Excel
It shown the methods of how to copy data from form to excel but is there any sample to provide the step on how to read the cell from excel into Form in 10g.declare
args client_ole2.list_type;
application client_ole2.obj_type;
vworkbooks client_ole2.obj_type;
vdoc client_ole2.obj_type;
vworksheet client_ole2.obj_type;
vrange client_ole2.obj_type;
begin
-- create app object
application := client_ole2.create_obj('Excel.Application');
client_OLE2.SET_PROPERTY(application, 'Visible','True');
-- get workbooks object
vworkbooks := client_ole2.get_obj_property(application, 'Workbooks');
-- and open a file
args := client_ole2.create_arglist;
client_ole2.ADD_ARG(args, 'c:\tp_ae.xls');
vdoc :=client_ole2.INVOKE_OBJ(vworkbooks,'Open',args);
client_ole2.destroy_arglist(args);
-- get a worksheet object
-- for this to work you need to know the sheet name or its index
args := client_ole2.create_arglist;
client_ole2.ADD_ARG(args, 1); <-- name or index
vworksheet := client_ole2.get_obj_property(vdoc,'Worksheets',args);
client_ole2.destroy_arglist(args);
-- get a range object which in this case is just a cell
-- for this to work you need to know the cell coordinates
args := client_ole2.create_arglist;
client_ole2.ADD_ARG(args, 'B6');
vrange := client_ole2.get_obj_property(vworksheet,'Range',args);
client_ole2.destroy_arglist(args);
-- and here you get the value
message(client_ole2.get_char_property(vrange,'Value'));
-- release objects
client_ole2.release_obj(vrange);
client_ole2.release_obj(vworksheet);
client_ole2.release_obj(vdoc);
client_ole2.release_obj(vworkbooks);
client_ole2.release_obj(application);
end; -
How to run multiple DOS commands from a single Webutil Client_Host session?
Hello all,
I have a requirement where I need to create an interface with SVN from Forms for basic checkin-checkout of files.
So, I've been trying to use webutil client_host to open a command line session and issue svn commands.
For svn, sometimes I need to give multiple commands like change to a particular directory and then run an svn command.
But client_host takes in only one command at a time and I'm unable to issue a series of DOS commands to perform
a particular task.
Is there a way to do this?
Pls suggest.
Regards,
SamFirst your original question... You can put more than one DOS command on a single line, simply separate each command with an ampersand (&). For example:
mkdir c:\abc & cd abc & dir*
Regarding your concerns about performance, well that would depend on exactly what you mean. Using CLIENT_HOST (or HOST on the server) simply opens a shell (DOS in this case) then passes your command to it. The performance of performing this action really isn't measurable. Basically you are just pressing a button and you should get a near immediate action. As for the performance of executing each command, that has nothing to do with Forms. Once the command is passed to the shell, the rest is a function of the shell and whatever command you passed.
Having said that, if you were to write something sloppy like a loop (in pl/sql) which called CLIENT_HOST lots of times repeatedly, then yes there would be a performance problem because the pushing of the button will cause an exchange to and from the server and each cycle in the loop will do the same.
So the answer to how performance is impacted will depend on what exactly you need to accomplish. If it is a single call to CLIENT_HOST, this should be fine. -
Webutil download file from app server
i am calling a report from forms. report uses text_io to write delimited data to app server disk. report info also displays in browser using web.show_document. when i call report from forms i run report, use web.show_document to display in browser and then call webutil to download file to client form appserver. sequence would be in a manner as below:
run_report_object (report_id);
when report = finished then
web.show_document;
end if;
webutil.download_file (filename);
the problem is this: the web.show_document code runs but while this is running the webutil code also is running. but the report has not completed yet so when webutil runs looking for the file the report is supposed to write it cannot find it since the report has not completed. web.show_document fires off a browser session and then immediately runs the webutil code. but i dont want the webutil code to run until the report has successfully completed. does anyone know how to integrate these two functions into one step instead of running the report and allowing it to complete and then executing a separate step to download the file.
thank youYou might want to try this code snippet....
--- code to set parameters, declare variables etc...
l_report_return := run_report_object(l_report_id);
l_report_status := report_object_status(l_report_return);
WHILE l_report_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
l_report_status := report_object_status(l_report_return);
END LOOP;
IF l_report_status = 'FINISHED' THEN
/*Display report in the browser*/
web.show_document(......);
ELSE
message('Error when running report ');
END IF; -
Problem with Form and webutil loading jar and connection
Can anyone shed light on this. Here is my java console output. I then get FRM-90250 and FRM-92101....
Orion-web.xml
<virtual-directory virtual-path="/webutil"
real-path="C:\webutil/lib" />
Forms90.conf
#Virtual path for WebUtil
AliasMatch ^/forms90/webutil/(..*) "c:\webutil/lib/$1"
formsweb.cfg
webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
[WEBFTU]
pageTitle=Creative Automation Services
form=c:\export\data\ca\prod\webftu.fmx
archive_jini=f90all_jinit.jar,rolloverbutton.jar,hyperlink.jar
archive_ie=f90all.cab
archive=f90all.jar
webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
WebUtilLogging=off
#WebUtilLogging=Console
# WebUtilLoggingDetail=normal
WebUtilLoggingDetail=Detailed
WebUtilErrorMode=Alert
baseHTMLjinitiator=C:\webutil\server\webutiljini.htm
width=900
height=600
splashScreen=/forms90/images/splash.gif
background=/forms90/images/black.gif
logo=/forms90/images/blackborder.gif
lookAndFeel=Oracle
colorScheme=Titanium
otherparams=useSDI=yes
workingDirectory=c:\export\data\ca\prod
envFile=C:\webutil\server\webutil.env
Oracle JInitiator: Version 1.3.1.9
Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\msantry
User has overriden browser's proxy settings.
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\javaburps\CACHE
Maximum size: 50 MB
Compression level: 0
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading http://clientapps.cauto.com/forms90/webutil/webutil.jar from JAR cache
Downloading http://clientapps.cauto.com/forms90/webutil/jacob.jar to JAR cache
Loading http://clientapps.cauto.com/forms90/java/f90all_jinit.jar from JAR cache
RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
Loading http://clientapps.cauto.com/forms90/java/rolloverbutton.jar from JAR cache
Loading http://clientapps.cauto.com/forms90/java/hyperlink.jar from JAR cache
connectMode=HTTP, native.
oracle.forms.net.ConnectionException: Forms session <3> failed during startup: no response from runtime process
at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
at oracle.forms.net.HTTPNStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
at oracle.forms.net.HTTPConnection.connect(Unknown Source)
at oracle.forms.engine.FormsDispatcher.initConnection(Unknown Source)
at oracle.forms.engine.FormsDispatcher.init(Unknown Source)
at oracle.forms.engine.Runform.initConnection(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Thanks,
Mary SantryThe error does not look like a webutil client side problem - it looks more like a server side issue - perhaps the runtime not being able to find the webutil.pll.
Check your FORMS90_PATH in the webutil.env file and make sure it's not too long (>255 chars) if it is split it and use ORACLE_PATH as well. -
How to open Dialog Box by using webutil
Hi all,
I am using webutil in 9i(9.0.2)
as in the user manual i did the changes..
except one..when i set
baseHTMLjinitiator=d:\webutil\server\webutiljini.htm
it gives the
Duplicate Parameter on Command Line..
when i commented the above baseHTMLjinitiator=d:\webutil\server\webutiljini.htm
and run the form ..that time formd gives the following error
oracle.forms.webutil.file.FileFunctions...
How to solve ..this issue ?
any help ..
with anticipating the reply
Regards
A meetThanks Phuong. I try it, but still does not work. I have tried the followings:
CLIENT_HOST('CMD/C START "editor" C:\Program Files\Windows NT\Accessories\wordpad.exe D:\temp\out.txt' );
CLIENT_HOST('CMD/C START "editor" wordpad.exe D:\temp\out.txt' );
WEBUTIL_HOST.NONBLOCKING('CMD /C C:\Program Files\Windows NT\Accessories\wordpad.exe D:\temp\out.txt');
--trang -
How to edit a file into webutil dialog box?
Hello, I have a webutil dialog box to open a file on a server in Win2003.
I want edit and save the changes in a file into dialog box, but i don't have this function like windows operation system.
Can i customize the webutil dialog box and add this function ?
Regards,
GP
Message was edited by:
ualual99As I said, the Webutil open/save dialog functions will only allow you to work with the client machine.
You can use the file_transfert_AS_to_client() Webutil function to get the file on the client machine then edit it, then use the file_transfert.client_to_AS() function to upload the new file on the Application Server.
In my article about the Oracle Forms 10g release 2 : Demos, Tips and Techniques,
http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
you could find an "open file dialog" like form sample able to display the Server's directories.(paragraph: 2.4.3)
Have a try !
Francois -
Hi,
we have an application which uses webutil in some forms and 50 users in a lan with microsoft I.E. browser xp (patch 2 or 3) .
All the users when run url of forms without webutil have the same time to open the applications, instead when the forms use webutil 5 users have to wait long time before to access to the application (after all works fine and fast)
For others users (45) the time is the same.
Besides we install in one of these problematic client the developer suite to try the local A.S. and we wonder that the forms with webutil open quickly in local pc.
Therefore we have 50 clients and :
-- 50 clients open quickly the forms without webutil in the lan .
-- 45 clients open quickly also the forms with webutil in the lan
-- 5 clients open very slowly the forms with webutil in the lan (after they work fine) and they open quickly the same forms with webutil in local AS (devsuite) . They use I.E. 7 and have patch 3 of xp
We tried to disable antivirus,microsoft firewall but nothing has changed .
What could be the problem ?
GianpaoloThanks MIke for your feedback...
Will this surfice?
Procedure Test_Report Is
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(50);
BEGIN
repid := find_report_object('report5');
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,'html');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver90');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no pdeptno='||:dept.deptno);
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://<YourServerName:8888/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
END; -
Problem in downloading a file from AS to client through form using webutil
I am running oracle 10g sever & devloper 10g in the same machine. Almost every thing is working properly from a client PC in the network except the following aspect :-
From client pc, through form, I have created one export(dmp file) which is being saved in the AS. Now I want this file to be downloaded from AS to this client PC.
I have tried webutil_file.copy_file(server_filename,client_copy_name) which is not working. the error trace file says "Unable to open source file in server" & "Unable to read WebUtil configuration file".
I have also tried webutil_file_transfer.AS_to_Client_with_progress
which results in unsuccessful from server to client.
I modified the webutil.cfg file as :=
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
transfer.appsrv.accessControl=FALSE
transfer.appsrv.workAreaRoot=D:\temp
transfer.appsrv.read.1=D:\temp
transfer.appsrv.write.1=D:\temp
Please help me out from this situationhi
Welcome to OTN.
try to use.
Client_host()sarah -
??? Arabic when using client_text_io webutil 10G R2
Hi everyone,
i am using A.S 10G R2, when using text_io to pull data fro database and write it to Text on the server, it gives the arabic correct without any corrupt, but when using webutil (client_text_io) the same scenario it gives a corrupt Arabic(question marks).
i've cleared the Java cash and checked for NLS and fonts with the same results, is there any other config should be done on the A.S or on the webutil configuration??
Thanks a lotwell, it already set properly since I am getting the data as it stored in forms and reports (correct display), so what do you think? Is there some other issues should be investigated
Thanks guys for the great help -
Not able to write to Excel using Client_OLE2 and webutil
Hi
I am working on Windows 2000 Pro SP4 Oracle Forms Builder 10.1.2.0.2
I am using webutil to invoke Excel Application .
The following code invokes Excel application and saves in the path specified as Test_Excel and writes the "Test Data to be written" to R1C1 when I use OLE2.
But when I replace OLE2 with Client_OLE2 the Excel file is getting created but the data is not written to the cell.
PL/SQL :could not find program unit being called is the error.
Can anybody help me solve this issue ?
Thanks in advance.
FUNCTION WRITE_TO_EXCEL(
excel_file_name in varchar2, ---for eg.. C:\Test_Excel.xls
buf in varchar2 ) ----Test Data to be written
return boolean is
application CLIENT_OLE2.OBJ_TYPE;
workbooks CLIENT_OLE2.OBJ_TYPE;
workbook CLIENT_OLE2.OBJ_TYPE;
worksheets CLIENT_OLE2.OBJ_TYPE;
worksheet CLIENT_OLE2.OBJ_TYPE;
cell CLIENT_OLE2.OBJ_TYPE;
args CLIENT_OLE2.LIST_TYPE;
begin
application := CLIENT_OLE2.CREATE_OBJ ('Excel.Application');
CLIENT_OLE2.SET_PROPERTY(application, 'Visible', 'True');
workbooks := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
workbook := CLIENT_OLE2.Invoke_Obj(workbooks, 'Add');
worksheets := CLIENT_OLE2.Get_Obj_Property(workbook, 'Worksheets');
worksheet := CLIENT_OLE2.Invoke_Obj(worksheets,'Add');
args:=CLIENT_OLE2.create_arglist;
CLIENT_OLE2.add_arg(args,1);
CLIENT_OLE2.add_arg(args,1);
cell:=CLIENT_OLE2.get_obj_property(worksheet, 'Cells', args);
CLIENT_OLE2.destroy_arglist(args);
CLIENT_OLE2.set_property(cell,'Value', buf);
CLIENT_OLE2.release_obj(cell);
CLIENT_OLE2.Release_Obj(worksheet);
CLIENT_OLE2.Release_Obj(worksheets);
args := CLIENT_OLE2.Create_Arglist;
CLIENT_OLE2.Add_Arg(args,excel_file_name);
CLIENT_OLE2.Invoke(workbook, 'SaveAs', args);
CLIENT_OLE2.Destroy_Arglist(args);
args := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(args,'Caption');
CLIENT_OLE2.INVOKE(application,'Run',args);
CLIENT_OLE2.destroy_arglist(args);
CLIENT_OLE2.Release_Obj(workbook);
CLIENT_OLE2.Release_Obj(workbooks);
CLIENT_OLE2.Invoke(application, 'Quit');
CLIENT_OLE2.Release_Obj(application);
return(TRUE);
exception
when others then
message (error_type||'-'||error_code||':'||error_text);
message (' ');
SET_APPLICATION_PROPERTY(CURSOR_STYLE,'default');
CLIENT_OLE2.RELEASE_OBJ(application);
CLIENT_OLE2.RELEASE_OBJ(workbooks);
CLIENT_OLE2.RELEASE_OBJ(workbook);
CLIENT_OLE2.release_obj(worksheet);
CLIENT_OLE2.release_obj(worksheets);
return(FALSE);
END;What line is actually causing the error? Also, I assume you tested the exact same code which works when using straight OLE2 (and not the webutil client_ version)?
Regards
Grant Ronald
Oracle Product Management
Maybe you are looking for
-
Page numbers in page panel don't match current page numbers
Hi all, I have been working with InDesign for a decade now and never had this problem. I created a document in InDesign CS 5.5, very simple and with consecutive pages, no sections etc. My page numbers show up correctly on my spreads. BUT, for some re
-
How can i link purchases from old apple id to new apple id?
How can i change old apple id and purchases to new apple id?
-
My imac wont get past the white screen with logo and rotating wheel
i was trying to turn on my imac when suddenly ot took forever on the white screen i tried taking off everything connected to it-no change i tried a safe mode after a few minuted a heard the second chime then a blinkin question mark folder showed up s
-
Stuck on hand tool in InDesign 5.5
My InDesign 5.5 is stuck on the Hand Tool locking me out of all other tools. Thoughts?
-
Creatve IR remote will not stay enabled (RM1500) SB audig
The RM500?remote control will not stay enabled in ENT. settings. After rebooting PC I have go to settings and enable it. Does anyone have any Ideas? Thanks.SBaudigy 4