WebUtil and RUN_REPORT_OBJECT
I'm facing the following problem:
I built a demo-form using the WebUtil-Functions to check our needs for migrating from C/S to Web. The Webutil-functions work properly.
I have a call to a report in the same form using RUN_REPORT_OBJECT which also works properly standalone.
I'm using IAS9i Release 2 for my tests, on the client i uas Internet Explorer 6 and JInitiatior 1.3.1.9.
Following scenario:
I start my form using the matching url.
I start a function to download a file from the application server to the client, functions works properly.
I quit the form and close the browser.
I start my form using the matching url.
I start a function to start the report using RUN_REPORT_OBJECT, function works properly, i get the reports results.
I quit the form and close the browser.
I start my form using the matching url.
I start a function to download a file from the application server to the client, functions works properly.
Now i start the function to start the report using RUN_REPORT_OBJECT and get the Error "Could not connect to report server <REPSERVER>.
I start the function to download a file from the application server to the client, and get an ORA-150101.
I quit the form and close the browser.
I start my form using the matching url.
I start a function to start the report using RUN_REPORT_OBJECT, function works properly, i get the reports results.
Now i start the function to download a file from the application server to the client, and get an ORA-150101.
It seems that the usage of application-server-side java and usage of RUN_REPORT_OBJECT together in one form causes problems.
Has anyone any idea about this ?
Hello,
You can use Java_System.getProperty('java.class.path') to retrieve the classpath. My CLASSPATH and REPORTS_CLASSPATH in default.env looks like this:
CLASSPATH=$ORACLE_HOME/jlib/debugger.jar:$ORACLE_HOME/jlib/utj90.jar:$ORACLE_HOME/jlib/ewt3.jar:$ORACLE_HOME/jlib/share.jar:$ORACLE_HOME/webutil/lib/webutil.jar:$ORACLE_HOME/jdk/jre/lib/rt.jar:$ORACLE_HOME/jlib/zrclient.jar:$ORACLE_HOME/reports/jlib/rwrun.jar
REPORTS_CLASSPATH=$ORACLE_HOME/jlib/debugger.jar:$ORACLE_HOME/jlib/utj90.jar:$ORACLE_HOME/jlib/ewt3.jar:$ORACLE_HOME/jlib/share.jar:$ORACLE_HOME/webutil/lib/webutil.jar:$ORACLE_HOME/jdk/jre/lib/rt.jar:$ORACLE_HOME/jlib/zrclient.jar:$ORACLE_HOME/reports/jlib/rwrun.jar
Be aware that REPORTS_CLASSPATH has a limit on 511 chars.
Cheers,
Vidar
Similar Messages
-
It used to be on the client server when we run a batch file with sqlldr from a form, a cmd window would open and we can actually see a count of the records, and if we want we could make it that the user would have to click a button to close the cmd window and return to the form.
Now with the web version and webutil, I was able to make the batch file work and the data is loaded into a table, however, when the cmd window opens, it stays blank and you cannot see what is happening.
Is there a way to get the same performance as the client server version?
Thanks
GeorgeHi,
You can read the output/log file using textio (implemented through webutil)
and give a message to the end user.
Alternatively use the webutil host to open a command window and pass batch file which will do the sql ldr ....
Rajesh Alex -
WebUtil and Jacob Setting for AIX Server
Dear All
I am using forms 10G.
I have done the setting for webUtil and Jacob in my pc for browse button to be and it is working fine .
But can any one please tell me the steps for implement these things in AIX server .I mean how to configure this to utility Webutil and Jacob in AIX server .
Kindly anyone tell me what needs to be done in server for webutil ?
Edited by: LuKKa on Sep 22, 2010 12:01 PMthe steps are same as in other supported systems.
Since my blog is failed to help you then i will recommend you to do some more reading ...
Read the docs http://www.oracle.com/technetwork/developer-tools/forms/webutil-090641.html -
Has anyone else experienced any issues with webutil and MS Office 2010? We save .xls files to .csv and upload via webutil (10g). We are getting an error that the file on the root directory cannot be found, although it does exist. We found that if we saved as Office 2003 and then as a .csv file, it sometimes works. We never had this problem before upgrading to Office 2010. I ran the form in debug and confirmed it is bombing out on the client_text_io open command.
thanks in advanceI think we figured out it was also a Windows7 issue more than Excel. The Windows7 doesn't have a temp directory any longer, but we were able to create another directory (with a more meaningful name) and read/write to it. The webutil works fine now. Seemed like it was maybe a root directory permissions problem.
thanks -
What is the correlation between WebUtil and ActiveX?
The reason I ask is that we have successfully installed WebUtil on our 9iAS R2 apps server and the Webutil forms that were created all work perfectly on site.
However our WAN covers sites all over the UK and the majoiry of these sites have all ActiveX settings disabled for security reasons. When accessing from one of these sites the form correctly loads all the .dll and .jar files but the CLIENT_TEXT_IO procedure will not operate.... one thing I forgot. Duncan Mills, who could answer this question a lot better than I can, is on vacation this week.
Frank -
Hi,
We have a form in which we use the call web.show_document(l_url, '_blank'), where l_url is a location of an html file on a local pc. Then in a
seperate browser the html file is shown.This works fine for our application.
Now some users are migrated to XP as OS, instead if 2000.. For these users no webbrowser is started after the call to show_document. In the
javaconsole is also no error seen. It is just that nothing happens.
In IE and Firefox this problem occurs.
Is there an issue between webutil and XP? Or is this a different kind of problem?
RichardThx for quick reply..
We tried it.. But, problem keeps existing...
We also tried XP and IE6... again no browser appears ...
This is the information in the Java Console..
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\OPERATORProxy Configuration: Manual Configuration
Proxy: dasproxy:80 Proxy Overrides: <local>JAR cache enabled
Location: C:\Documents and Settings\OPERATOR\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://xxxxx:7778/forms/java/frmall_jinit.jar from JAR cacheLoading
http://xxxxxxx:7778/forms/java/frmwebutil.jar from JAR cacheLoading
http://xxxxxxx:7778/hsd65java/hst65.jar from JAR cacheLoading
http://xxxxxxx:7778/dasimages/das_images.jar from JAR cacheRegisterWebUtil
- Loading WebUtil Version 1.0.6
Loading http://xxxxxx:7778/forms/java/jacob.jar from JAR
cacheproxyHost=nullproxyPort=0connectMode=HTTP,native.Versie van Forms-applet is: 10.1.2.0 -
Webutil and Outlook - I get a WUO-714 and WUO-705 error
Hi,
I have installed webutil and it loads fine an all. However, I have a problem with a Microsoft Outlook integration. I am simply trying open an Outlook mail item, which is then filled out with some data. Pressing the Send button is up to the user.
Everything works until the line "mailitem2 := CLIENT_OLE2.INVOKE_obj(MailItem,'Display');" is called. Here Forms reports back: "100501: non-Oracle exception" and the java console gives a WUO-714 and WUO-705. The problems seems to be the Display method. At that point, despite errors, I do have an open, visible mail item with the proper data filled in. (In this process I noticed that the final invoke_obj should happen after you write stuff into the To, Subject and Body of the mail, but that's besides the point.)
Any advice you can offer is welcome.
Sincerely,
Jesper Vad Kristensen
Aarhus, Denmark
--- Java console error codes --
Loading http://oiatst01.tdk.dk:7778/forms90/webutil/webutil.jar from JAR cache
Loading http://oiatst01.tdk.dk:7778/forms90/webutil/jacob.jar from JAR cache
Loading http://oiatst01.tdk.dk:7778/forms90/java/f90all_jinit.jar from JAR cache
RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
2003-nov-17 09:42:50.624 ERROR>WUO-714 [OleFunctions.setExceptionValues()] Unable to get the last OLE Error details; Exception
null
2003-nov-17 09:42:50.634 ERROR>WUO-705 [OleFunctions.invoke_ret_obj()] Unable to invoke Method: Display; Exception
com.jacob.com.ComFailException: VariantChangeType failed
--- end ---
--- Form code ---
Declare
OutlookApp CLIENT_OLE2.OBJ_TYPE;
Folders CLIENT_OLE2.OBJ_TYPE;
MailItem CLIENT_OLE2.OBJ_TYPE;
MailItem2 CLIENT_OLE2.OBJ_TYPE;
OLEPARAM CLIENT_OLE2.list_type;
v_kundenummer varchar2(12) := :v_engagement.konto;
v_firstname varchar2(50) := :legal_person.firstname;
v_surname varchar2(50) := :legal_person.surname;
v_company_name varchar2(50) := :legal_person.company_name;
v_to varchar2(50) := '[email protected]';
v_cc varchar2(50);
v_body varchar2(250) := 'Kundenummer'||' ' ||v_kundenummer||chr(10)||v_firstname||' '||v_surname||' '||v_company_name;
v_bcc varchar2(50);
v_subject varchar2(50) := 'Fakturakopi';
v_duedate varchar2(50);
v_invoicetext varchar2(400);
v_user varchar2(50):= user;
v_faktura varchar2(400);
BEGIN
/* snip some string work to create Body contents */
OutlookApp := CLIENT_OLE2.CREATE_OBJ('Outlook.Application');
--Create a newMail Object
OLEPARAM := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(OLEPARAM,0);
MailItem := CLIENT_OLE2.INVOKE_OBJ(OutlookApp,'CreateItem',OLEPARAM);
CLIENT_OLE2.DESTROY_ARGLIST(OLEPARAM);
-- Show the new message box. - Dont do when mailing straight Through
CLIENT_OLE2.set_property(MailItem,'To',v_to);
CLIENT_OLE2.set_property(MailItem,'Subject',v_subject);
CLIENT_OLE2.set_property(MailItem,'Body',v_body);
mailitem2 := CLIENT_OLE2.INVOKE_obj(MailItem,'Display');
CLIENT_OLE2.RELEASE_OBJ(MailItem);
CLIENT_OLE2.RELEASE_OBJ(MailItem2);
CLIENT_OLE2.RELEASE_OBJ(NameSpace);
CLIENT_OLE2.RELEASE_OBJ(OutlookApp);
/* snip some more */
exception
when others then
message('other error: '||sqlerrm);
--- end ---Both the Outlook type library and the M/S online documentation show that the display method on MailItem does not have a return type. try a simple INVOKE rather than INVOKE_OBJ
-
Dear all
I am following BAIG's blog for configuring WebUtil and Jacob .
http://baigsorcl.blogspot.com/2010/01/open-file-dailog-box-example-using.html
Mr Baig told to download both WebUtil and Jacob . But in 10G already Webutil is there .
So again i nned to Download and replace it ?
Or only i have to download JACOB ?No, you don't need to download it again. It will be available for IDS.
You need to download only when you are using iAS .. -
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; -
Webutil and CalenderPJC Problem
I have successfully integrated the Webutil CalendarPJC into my forms. It works fine on a single row block, but on a multi-row block the PJC has a strange reaction. I have a button on each line beside a date field. When you click on the button on a row the Java Calendar pops up but the form moves the current row to the next row on the form. Has anyone had this issue and can offer a suggestion how to correct this problem would be greatly appreciated? I tried moving the row back one row as the PJC comes up but that would not work!
I have a simple form with a multi-row block. The form displays 10 rows when displayed. One of the fields is a date field. I place the Java Bean Area right beside the date field. So on each row there is Button for the CalendarPJC. If the first row is highlighted and I press the Button on that row for the PJC the Java Bean displays the Java Date modal window and moves the current row to row 2. I am running forms 10.2.0.2 on windows and SUN JVM 1.5.0_16
-
Hello,
We are running into a problem web-enabling a client-server Forms application. We are using WebUtil for HOST and OLE calls and sending files between client and app-server and it all works really marvelous. But we noticed that the DDE package is not available in WebUtil. Unfortunately for us, we are using DDE calls to interact with MS Word (for example merging template letters with address-data) and MS Excel (filling out template sheets with data).
Can you tell me if DDE will be available in future releases of WebUtil? And, if not, is it (generally) possible to rewrite the DDE-calls to OLE-calls using WebUtil's CLIENT_OLE functions? And what DDE-functionality maps to the corresponding OLE-functionality?
Or, if it's not possible to rewrite DDE to OLE, what are the alternatives? Removing the interaction between web-forms and MS Office is NOT an option ;-)
Thanks in advance,
H. Verschurenvar shell=new ActiveXObject("WScript.shell")
var command=null
var key
try {
key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\11.0\\Word\\InstallRoot\\Path" /* Word 2003 */
command= shell.RegRead(key);
} catch (e) {
try {
key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\9.0\\Word\\InstallRoot\\Path" /* Word 2000 */
command= shell.RegRead(key);
} catch (e) {
try {
key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\8.0\\Word\\InstallRoot\\Path" /* Word 97 */
command= shell.RegRead(key);
} catch (e) {
command="\"" + command + "\\Winword.exe\" ftp://10.100.x.x\\ftpshare\\macros.dot -mMyMacro"
shell.run(command,1,false)
I must learn to monitor threads after I have contributed. -
Hi,
What features of the 9i database are used by WebUtil? I am on 8i (8.1.7.4) and was wondering if it was absolutely necessary to be at 9i.
Thanks,
MitchShay - Thanks for the info. Unfortunately, the file transfer feature is the exact one I want to use. Just out of curiosity, do you know what 9i-specific features it uses? (I'll probably need this info for justification to our DBAs to upgrade).
Thanks!
-Mitch -
Has anyone configured webutil to upload/download ordsys.ordimage datatypes instead of just straight blobs? Just wondering before I tackle it myself.
Jeremy.To configure the webutil_db package to handle intermedia, I just changed the BLOB variables to ORDSYS.ORDIMAGE datatypes and then added <variable>.source.localdata to each instance they get called: DBMS_LOB.GETLENGTH(<variable>.source.localdata) and so on. To set height, width and some other properties of the image being loaded, I made calls to the getproperties() and setproperties() methods of the ORDSYS.ORDIMAGE datatype. If you've used intermedia before, then this'll be pretty straightforward.
-
Hi,
I'm currently converting a forms 6.0 application to forms 10g. My application has the file upload and download functionality. I researched the webutil 9i beta version, but my infrastructure team would not allow this to be installed in the 10g app server production environment because it's not supported.
I looked into the OC4J fileupload and filedownload javabean that comes with the oracle 10g iDS installation. Is webutil built on these javabeans?
What are other alternatives I could use that I don't know about? Please help.
Last question, when will webutil released to production? I desparately need this utility since I don't know too much about JavaBean coding and tie to forms.
Thanks,
JenniferHi,
the problem is that Forms Developer tries to acces steh bean, which requires ojsputil.jar to be set in the Forms90_Builder_Classpath. However, even then it wont work because the oracle.jsp.webutil.fileaccess class doesn't implement the IView interface or extends teh VBean class. You could use it with the FBean package which works with Beans that don't implement the Forms interfaces. However, the oracle.jsp.webutil.fileaccess class seems to be a JSP class which doesn't work at all in Forms.
The best way to approach bean development for Forms is to read this whitepaper
http://otn.oracle.com/products/forms/pdf/forms_in_java_world.pdf
and then install the Forms 10g demos and look at the source code. We do our best to comment the demo source so that you know what the code does.
Frank -
Hi All,
i have a strange case , i managed to configure Webutil under my 10.1.2 AS and jini. , and after that i replaced the jini. with jpi , it works fine but it takes alot of time to load the forms that contains Webutil usage almost (50sec.) where it takes only 2-3 sec. , any hints .... Thanksi forgot to mension , it works fine without any error except the delay and iam using 2003 Server 64Bit, thanks
Message was edited by:
mr_jaber
Maybe you are looking for
-
Hello, is it possible to index words from images with tenable effort ? We are developing a document-management-system and it would be nice when search includes images. I would appreciate very much any suggestions, links or solutions. regards, Tim
-
WSDL for portlet based taskflow - doesn't show up input parameter
Hi, I have created a taskflow which takes an input parameter in an ADF application. When I drag and drop on the page it works as expected. My requirement is to show this taskflow as part of webcenter portal app. I have created portlet entry based on
-
Photos rotate when sync'd to Apple TV
Has anyone had this problem? When I sync'd my photos (from my Windows hard drive) to Apple TV via iTunes, all pictures that I had rotated to a North-South orientation reverted to East-West. I have no idea how to fix this. Does anyone have any ideas?
-
Am a new paid-up member but dispite all efforts and following advice given, Adobe Indesign download fails completely. What is wrong?
-
Safari 4 is official, please fix the double search bar on the right.
Subject says it all.