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.
- Amit
I 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
Similar Messages
-
Slow response in opening form when using webutil
Hi,
When I try to use the webutil functions, I find it is very slow in opening the form.
It takes about 30 seconds.
But if I remove the frmwebutil.jar in the server directory /forms/java/, it takes
less than 3 seconds.
Any suggestion ?
Thanks in advance.
IvanDo you find the slow startup everytime with webutil or only the very first time you use webutil. The JAR file should be cached which means if the jar download is make it slow then it should be faster next time you run it.
The other point is do you actually have any webutil code running when you use webutil - maybe that code is causing the problem.
REgards
Grant -
SCRIPT5007: Unable to get property 'top' of undefined or null and too much recursion
I am not sure about placing two questions into one post, but here it goes:
The error above "SCRIPT5007: Unable to get property 'top' of undefined or null" is coming from this function:
Code:
$(function () { //this is the way to run your code at the DOM Ready event $('a').click(function () { $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top }, 1500); return false; }); });
This is the effected code I believe that is causing the problem:
Code:
scrollTop: $($(this).attr('href')).offset().top
the error occurs when I click on a "clear" button in my form. My website is one long page and that function allows my navigation to slide up and down the site. Without it, everytime you click a nav, it jumps to that anchor.
For the 2nd problem, the too much recursion, the problem lies within here:
Code:
function () { if ($.isReady) return; imReady = true; $.each($.includeStates, function (url, state) { if (!state) return imReady = false }); if (imReady) { $.readyOld.apply($, arguments) } else { setTimeout(arguments.callee, 10) } }
where the error is actually coming from the 2nd "function" script. This is part of the browser compatibility script for mozilla/opera at the top of the index page. Any help would be great. Thanks.Ahh I apologize. I simply was posting to JavaScript forums in hopes of
finding a solution. Sorry for the mixup. -
I am unable to get a bullited list when using the synchronized text feature.
I am unable to get a bullited list when using the synchronized text feature. The option is greyed out and not active. Any tips? Am I doing something wrong?
This is by default , synchronized text does not alter any style and other visual attributes associated with instance.
Thanks,
Sanjit -
Best way To get data from another application using NDDE lbrary
My vb.net application gets data from another application using NDDE Library. I got stocks prices (open,high,low,close,volume,change......(about 15 records for each stock)) (about 200 stocks) . I don't know if there is a problem in my code.
This is my code:
l : is the list of stocks.
This Sub connects to server and requests the data :
Public Shared Sub GetQuotes()
Try
client1 = New DdeClient(server, topic)
client1.Connect()
For i As Integer = 0 To l.Count - 1
client1.StartAdvise("QO." & l(i).t & ".TAD$last", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$open", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$high", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$low", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$pclose", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$volume", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$date", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$time", 1, True, 60000)
Next
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
and then I get the data from Client_advise sub (called each time a value changed )and fill the list. What I know is that client advise gets only one record for single stock each time is called..
Example: for stock AAPL. 1st time enters client_Advise I get open price for AAPL, 2nd time I get high price for AAPL,3rd time I get low price..... and I update the value in the List (l)
This the client_Advise Sub:
Private Shared Sub client1_Advise(ByVal sender As Object, ByVal e As NDde.Client.DdeAdviseEventArgs) Handles client1.Advise
For q As Integer = 0 To l.Count - 1
If l(q).t = w(1) Then
Dim item() As String = e.Item.Split("$")
If l(q).Open = "#" Then
l(q).Open = "0"
End If
If l(q).hi = "#" Then
l(q).hi = "0"
End If
If l(q).lo = "#" Then
l(q).lo = "0"
End If
If l(q).Close = "" Or l(q).Close = "#" Then
l(q).Close = "0"
End If
If l(q).pclose = "#" Then
l(q).pclose = "0"
End If
If item(1) = "open" Then
l(q).Open = Format(Val(e.Text), "0.00")
ElseIf item(1) = "last" Then
l(q).Close = Format(Val(e.Text), "0.00")
ElseIf item(1) = "high" Then
l(q).hi = Format(Val(e.Text), "0.00")
ElseIf item(1) = "volume" Then
l(q).Volume = Val(e.Text)
ElseIf item(1) = "low" Then
l(q).lo = Format(Val(e.Text), "0.00")
ElseIf item(1) = "pclose" Then
l(q).pclose = Format(Val(e.Text), "0.00")
If l(q).pclose <> "" And l(q).pclose <> "#" And l(q).Close <> "" And l(q).Close <> "#" Then
l(q).c = Format(l(q).Close - l(q).pclose, "0.00")
l(q).cp = Format(((l(q).Close - l(q).pclose) / l(q).pclose) * 100, "0.00")
End If
l(q).flag1 = 2
ElseIf item(1) = "date" Then
l(q).Date1 = e.Text
ElseIf item(1) = "time" Then
l(q).Time = e.Text
End If
Exit For
End If
Next
End Sub
Am I doing something wrong which inreases CPU usage to 80 or 90 % ?
Thanks in advance.Hi MikeHammadi,
According to your description, you'd like to get data from another app using NDDE library.
When using the NDDE library, the CPU usage is high. As the NDDE library is third-party library, it is not supported here. I suggest you checking if the problem is caused by the NDDE library.
If you'd like to get data from another app. I suggest you could save the data in the dataBase, and then read it in another application if necessary.
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
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. -
Error 1030723 Unable to get UTF-8 locale when using Essbase API 11.1.1
Now I got a question about how to connect to an Essbase Server by using essbase client API (11.1.1). I encountered an error “Unable to get UTF-8 locale” when I tried to EssInit((pInitStruct, phInstance) API.
However, I had no problem to call the API if I uses essbase previous client APIs (7.1 or 9.3).
I passed the “ESS_API_UTF8” to usApiType field in the ESS_INIT_T struct. When I openned the “essapi.h” header file, I found these are some new fields (highlighted in red color below) added in the essbase client API (11.1.1)
ESS_TSA_API_typedef_struct(ess_init_t)
ESS_TSA_ELEMENT(ESS_ULONG_T, Version); /* This should be set to ESS_API_VERSION */
ESS_TSA_ELEMENT(ESS_PVOID_T, UserContext); /* void pointer to user's message context */
ESS_TSA_ELEMENT(ESS_USHORT_T, MaxHandles); /* max number of context handles required */
ESS_TSA_ELEMENT(ESS_SIZE_T, MaxBuffer); /* max size of buffer that can be allocated */
ESS_TSA_ELEMENT(ESS_STR_T, LocalPath); /* local path to use for file operations */
ESS_TSA_ELEMENT(ESS_STR_T, MessageFile); /* full path name of message database file */
ESS_TSA_ELEMENT(ESS_PFUNC_T, AllocFunc); /* user-defined memory allocation function */
ESS_TSA_ELEMENT(ESS_PFUNC_T, ReallocFunc); /* user-defined memory reallocation function */
ESS_TSA_ELEMENT(ESS_PFUNC_T, FreeFunc); /* user-defined memory free function */
ESS_TSA_ELEMENT(ESS_PFUNC_T, MessageFunc); /* user-defined message callback function */
ESS_TSA_ELEMENT(ESS_STR_T, HelpFile); /* user-defined help file path */
ESS_TSA_ELEMENT(ESS_PVOID_T, Ess_System); /* reserved for internal use */
ESS_TSA_ELEMENT(ESS_USHORT_T, usApiType);
ESS_TSA_ELEMENT(ESS_PCATCHFUNC_T, CatchFunc); /* user-defined kill-own-request signal callback function */
ESS_TSA_ELEMENT(ESS_PCATCH_INIT_FUNC_T, CatchInitFunc); /* user-defined kill-own-request signal initialization callback function */
ESS_TSA_ELEMENT(ESS_PCATCH_TERM_FUNC_T, CatchTermFunc); /* user-defined kill-own-request signal termination callback function */
ESS_TSA_ELEMENT(ESS_PCOOKIE_CREATE_FUNC_T, CookieCreateFunc); /* user-defined cookie creation function */
ESS_TSA_ELEMENT(ESS_PCOOKIE_DELETE_FUNC_T, CookieDeleteFunc); /* user-defined cookie creation function */
} ESS_TSA_END(ESS_INIT_T);
I could not find any document to introduce the API (11.1.1. And what does the error “Unable to get UTF-8 locale” mean? How can work around it. Any environment parameters or paths need to be set?
Please advise.Hi,
The API documentation for V11 is available from :- http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_apiref/frameset.htm?launch.htm
Hopefully it might point you in the right direction.
Cheers
John
http://john-goodwin.blogspot.com/ -
Unable to download image from DB in forms 10g using webutility
Hi All,
I want to download blob image from db to client I am using below code in a button when i press button i get this error: ORA-04067
Any one please help.
declare
vboolean boolean;
vfilename varchar2(120) := 'J:\img'||:employees.employee_id||to_char(sysdate,'DDMMRRRR_HH24MISS')||'.jpg';
begin
vboolean :=
webutil_file_transfer.DB_To_Client_With_Progress
( vfilename,
'employees',
'picture',
'employee_id = '||:employees.employee_id,
'Downloading from Database',
'Wait to Complete');
client_host('cmd /c start '||vfilename);
end;Hello Francois,
Thanks for response!
I compiled the webutil_db package in database and it is in the forms user schema, i got the same error message as i get in the forms
actual error message is both in db compilation and in the forms execution
ora-04067 not executed, package body "<user>.webutil_db" does not exist. -
Recognizing open forms when using Open_Form
Hi. I have a single application I use as a point of entry to many other forms. Users open the main form and select their desired form by picking it out of a menu in the application. All applications are opened using Open_Form and users can alternate between applications by selecting them from the default 'Window' menu.
At the time a user attempts to close the main form I would like to be able to recognize programatically if there are any forms still open and prompt them to close those applications before exiting my main form.
Any suggestions?if you use a global-variable with the names of all open forms, then you append to that string in the PRE-FORM the name of the new form and you cut this out of the string in the POST-FORM.
So you can use this global to look, if other forms are open at closing-time -
Error while opening the application using semantic object method
Hello ,
We just got all the Wave 3 apps and SP08 versions on our Fiori server. While setting up the transnational applications , I am not able to open any app using semantic objects. if i put direct URL I can open the app.
Error screen shots are :
The Launchpad designer settings for create sales order app are :
Please suggest the solution.
The error is same for all the applications.
Regards,
Sheetal
Tags edited by: Michael ApplebyHello Masa,
Checked this note. Not able to resolve the issue. Can you please explain, for the application to work with Navigation and semantic object what all roles do we need to assign to the User?
For create Sales Order :
Component
Technical Name
Business Role
SAP_SD_BCR_FIELDSALESREP_X1
Business Catalog
SAP_SD_BC_FIELDSALESREP_X1
Business Catalog Group
SAP_SD_BCG_FIELDSALESREP_X1
Technical Role
SAP_SD_BCR_FIELDSALESREP_X1
Technical Catalog
SAP_SD_TC_T_X1
LPD_CUST Role
UIX01SD
LPD_CUST Instance
TRANSACTIONAL
OData Service (Version Number)
Back-End Server: Delivered Authorization Role (PFCG Role)
Front-End Server: Authorization Role
SRA017_SALESORDER_CREATE_SRV
SRA017:SAP_SD_SO_CRE_APP
SAP_SD_BCR_FIELDSALESREP_X1
My user id is assigned to three Roles :
SAP_SD_BCR_FIELDSALESREP_X1
SAP_SD_BCR_FIELDSALESREP_X1
SRA017:SAP_SD_SO_CRE_APP
Do I need to assign any other roles than these three?
Regards,
Sheetal -
Unable to record Flex based Windows application using LR Vugen 12
Hi, I am facing issue with LR Vugen 12.0.2 version. when I try to record one windows based application using flex protocol it does not get launched instead it is shown in : Task manager process list. I can launch the same application manually and also I have admin privilege for the LR. The application I used to record with 11.52 sometime but with LR 12 I am not. Using : Prorocol: FlexRecording mode: WinInet Thanks
Hi
Every thing was working fine till today and i just found out that the network guys has updated the Windows security and also the Service Pack on the Server and i think this is causing the whole issue.now my Question is that if i uninstall all the security updates and the SP2 will the issue be solved.
also i need one confirmation that the Windows OS we need SP1 instead of SP2 please re-confirm this.
Thanks
Aleem -
Unable to fetch row opening form on table
Hi all,
i have a page with 2 regions, a form on table for DML and a report region that lists the same table.
I am trying to create records in the form and then recall them by report row link for changes.
I cant test if all that stuff can work because i when i run the page after first time an Unable to fetch row error is raised.
After that i have to logout and login and run the page again.
I do my best to explain the problem but feel free to ask for more.
Any kind of help or suggestions are welcome.
Thanks, AlexHi,
yes this is the problem.
When i run the page the first time it seem to work fine but after editing, just edit page and run again , the error is raised and the only way out is to logout apex.
My expectation was that if i run the page setting the rowid item , that is the pk of the tabular form, the region appear with setting for insert.
Greets. -
Unable to open HFM application using workspace
I am facing the follwing error after reconfiguration of EPMA from server IP address to server name.
Whenever I try to open the sample application Comma from workspace I get the following error
*"There was some communication error. Response is : http://svctag-hdwft1s:19000/hfm/GlobalWorkspaceNav/bpm/modules/com/hyperion/hfm/web/appcontainer/Adf.asp"*
My HFM is working fine.
"hfm" displayed after i explore the web http://localhost/hfm from IIS
After reading various support links for the above error I tried the following
1. Provisioning done sucessfully for admin as well as other admin users
2. Tried to register it using classic administration. Got the following message
This is a BPMA application. The functionality must be done through BPMA.
3. Reregister from Application Library -
I am able to work with the dimension library and Application Library.
I am able to deploy the application but I am not able to open it.
Please assit on this.Thanks John.
I have shared services and planning service in different machines (servers)
which one should I reboot.
I checked configuration utility on shared services server.
Foundation, Hyperion shared services and Configure database was showing red.
should I configure my shared services database again, eventhough my shared services is showing in my services list.
thanks a bunch. -
Unable to get the execution plan when using dbms_sqltune (11gR2)
Hi,
Database version: 11gR2
I have a user A that is granted privileges to execute dbms_sqltune.
I can create a task, excute it and run the report.
But, when I run the report I get the following error:
SQL> show user
USER is "A"
SQL> set long 10000 longchunksize 10000 linesize 200 pagesize 000
select dbms_sqltune.report_tuning_task(task_name => 'MYTEST') from dual;SQL>
GENERAL INFORMATION SECTION
Tuning Task Name : MYTEST
Tuning Task Owner : A
Workload Type : Single SQL Statement
Scope : COMPREHENSIVE
Time Limit(seconds): 1800
Completion Status : COMPLETED
Started at : 05/15/2013 11:53:22
Completed at : 05/15/2013 11:53:23
Schema Name: SYSMAN
SQL ID : gjm43un5cy843
SQL Text : SELECT SUM(USED), SUM(TOTAL) FROM (SELECT /*+ ORDERED */
SUM(D.BYTES)/(1024*1024)-MAX(S.BYTES) USED,
SUM(D.BYTES)/(1024*1024) TOTAL FROM (SELECT TABLESPACE_NAME,
SUM(BYTES)/(1024*1024) BYTES FROM (SELECT /*+ ORDERED USE_NL(obj
tab) */ DISTINCT TS.NAME FROM SYS.OBJ$ OBJ, SYS.TAB$ TAB,
SYS.TS$ TS WHERE OBJ.OWNER# = USERENV('SCHEMAID') AND OBJ.OBJ# =
TAB.OBJ# AND TAB.TS# = TS.TS# AND BITAND(TAB.PROPERTY,1) = 0 AND
BITAND(TAB.PROPERTY,4194400) = 0) TN, DBA_FREE_SPACE SP WHERE
SP.TABLESPACE_NAME = TN.NAME GROUP BY SP.TABLESPACE_NAME) S,
DBA_DATA_FILES D WHERE D.TABLESPACE_NAME = S.TABLESPACE_NAME
GROUP BY D.TABLESPACE_NAME)
ERRORS SECTION
- ORA-00942: table or view does not exist
SQL>
It seems there a missing privileg for dislaying the execution plan.
As a workaround, this is solved by granting select any dictionay (which I don't want) to the user A.
Does someone have an idea about what privilege is missing?
Kind Regards.Hi,
SELECT ANY DICTIONARY system privilege provides access to SYS schema objects only => which you are using as workaround
SELECT_CATALOG_ROLE provides access to all SYS views only.==> Safe option
SQL> grant SELECT ANY DICTIONARY to test;
Grant succeeded.
SQL> conn test/test
Connected.
SQL> select count(*) from sys.obj$;
COUNT(*)
13284
SQL> conn /as sysdba
Connected.
SQL> revoke SELECT ANY DICTIONARY from test;
Revoke succeeded.
SQL> grant SELECT_CATALOG_ROLE to test;
Grant succeeded.
SQL> conn test/test
Connected.
SQL> select count(*) from sys.obj$;
select count(*) from sys.obj$
ERROR at line 1:
ORA-00942: table or view does not existHTH -
have recently downloaded the newest version of firefox. after installing i am happy to say i am pleased with the new look and features etc though for some reason i am unable to open new tabs as before.
i now have to right click on bookmarks or favorites and select open in a new tab to do so, rather than simply clicking on the new tab button..If the problem turns out to be the "New Tabs at the End" extension, there actually is an internal setting for this that you could use instead.
(1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
(2) In the search box above the list, type or paste '''tabs''' and pause while the list is filtered
(3) Double-click the '''browser.tabs.insertRelatedAfterCurrent''' preference to switch it from true to false. That's it. -
When browsing in private mode, I am unable to download any kind of files. Either from CNET or just a plain flash, the download function doesn't happen. Even if I right click and save as, nothing happens. I have to go back into normal mode to get the job done. It wasn't like this before, so how do I fix it?
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do not click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Maybe you are looking for
-
I have formatted a photo book, but am apprehensive to push the "buy" button as I have ordered prints that I thought were cropped correctly, and they returned with heads cut off and half of bodies mising. I have put the book on a PDF file as instucte
-
I was in the process of restoring my used 20gb ipod when it it seemed like my computer froze. Now, I both my ipod won't recognize the USB cable (brand new) and the computer won't recognize ipod. I don't know whether it is charging because it seems th
-
Decimal place truncuation!!
hi i have a field in XI called net_price how should i change the decimal place value of that field to more than 2 decimal places say 4 ,now it is truncuating to two decimal places. thanks Edited by: Capricorn!! on Aug 27, 2009 6:14 AM
-
Premiere Cs4 setup for movie seq to tiffs
How do I set up Premiere cs4 to save a segment of a film to tiffs (not the whole film just a segment of it) I have googled no luck and searched youtube no luck. TIA
-
ODWA: Unable to call image file from the Repository
Hi, I've followed the instructions to create diagram images using Netscape Composer for creating hotspots without success. I uploaded the JPEG file into the Oracle Designer Repository and referenced it as {REP_FILE=CDW 2000(1)/BKG.JPG}. The image doe