Home » Developer & Programmer » Forms » problems working with Program Manager through DDE components (10g Application Server win xp)
problems working with Program Manager through DDE components [message #341107] |
Sat, 16 August 2008 09:38 |
durgadas.menon
Messages: 365 Registered: December 2007 Location: Nowhere
|
Senior Member |
|
|
Hi,
The code below (WHEN_BUTTON_PRESSED trigger)is supposed to create a group of applications and display their short cuts on the screen but it does not seem to be working.
declare
channel_id pls_integer;
begin
if
:global.channel_id is not null then
channel_id := to_number(:global.channel_id);
dde.execute(channel_id, '[creategroup(Chapter 27))]',1000);
dde.execute(channel_id, '[additem(winword c:\Program Files\Microsoft Office\
office11\template.doc, Letter Template,c:\Program Files\Microsoft Office\
office11\winword.exe, ,30, ,c:\Program Files\Microsoft Office\office11\]',1000);
dde.execute(channel_id, '[additem(f50run32.exe e:\inv_sys\test.fmb, Forms & Excel,f50run32.exe
, ,110, ,e:\Oracle_developer_suit\bin]',1000) ;
dde.execute(channel_id, '[additem(f50run32.exe e:\inv_sys\test1.fmb, Forms & Word,f50run32.exe
, ,190, ,e:\Oracle_developer_suit\bin]',1000) ;
dde.execute(channel_id, '[showgroup(Chapter 27,1)]',1000);
else
message('A communication channel must be established first. ');
end if;
end;
I can see this comment at the bottom
Quote: | FRM-40735 WHEN_BUTTON_PRESSED trigger raised unhandled exception ORA-106555
|
On searching the forum I got answers on using excel and encountering this error but nothing on PROGRAM MANAGER (windows shell program)
Can you figure out the reason why? I am also not aware what will be the substitute for the f50run32.exe this is supposed to be the icon source file but I could not find it in the developer home, please let me know if you have any idea.
|
|
|
|
Re: problems working with Program Manager through DDE components [message #341545 is a reply to message #341441] |
Tue, 19 August 2008 04:50 |
durgadas.menon
Messages: 365 Registered: December 2007 Location: Nowhere
|
Senior Member |
|
|
Thanks for the response..
I tried putting message();pause; in between sentences but did not help.
message() must have a message to print and PAUSE suspends processing until the end user presses a function key. PAUSE might display an alert.
I tried message() which gave an error then tried message('') along with pause; but it did not display any alert or message that will give me an idea about the error.
Have I used it in a wrong way?
declare
channel_id pls_integer;
begin
if
:global.channel_id is not null then
channel_id := to_number(:global.channel_id);
dde.execute(channel_id, '[creategroup(Chapter 27))]',1000);
message('');
pause;
dde.execute(channel_id, '[additem(winword c:\Program Files\Microsoft Office\
office11\template.doc, Letter Template,c:\Program Files\Microsoft Office\
office11\winword.exe, ,30, ,c:\Program Files\Microsoft Office\office11\]',1000);
message('');
pause;
dde.execute(channel_id, '[additem(f50run32.exe e:\inv_sys\test.fmb, Forms & Excel,f50run32.exe
, ,110, ,e:\Oracle_developer_suit\bin]',1000) ;
message('');
pause;
dde.execute(channel_id, '[additem(f50run32.exe e:\inv_sys\test1.fmb, Forms & Word,f50run32.exe
, ,190, ,e:\Oracle_developer_suit\bin]',1000) ;
message('');
pause;
dde.execute(channel_id, '[showgroup(Chapter 27,1)]',1000);
message('');
pause;
else
message('A communication channel must be established first. ');
end if;
end;
|
|
|
|
Goto Forum:
Current Time: Mon Feb 03 09:55:47 CST 2025
|