Home » Developer & Programmer » Forms » FRM-40734 : INTERNAL ERROR : PL/SQL ERROR OCCURRED (Form 6i)
FRM-40734 : INTERNAL ERROR : PL/SQL ERROR OCCURRED [message #439255] Fri, 15 January 2010 07:10 Go to next message
allianz2010
Messages: 101
Registered: October 2009
Location: Pakistan
Senior Member

i want to add icon in my form at run time
and i m use PRE-FORM trigger

and i use this line for add icon

Win_Api_Session.Change_MDI_Icon(Win_Api_Utility.Get_Active_Window, '.\Icons\Company.ico', Icon_Id);


and these lines


MDI_ICO := WIN_API_UTILITY.GET_ACTIVE_WINDOW;
WIN_API_SESSION.CHANGE_MDI_ICON(MDI_ICO, '.\Icons\Company.ico', 0);


i also attach the "d2kwutil.pll" library.

but when i run form this error comes and my forms will be closed.

FRM-40734 : INTERNAL ERROR : PL/SQL ERROR OCCURRED

and my whole Code of PRE-FORM is this...


DECLARE
MDI_ICO PLS_INTEGER;
ONAME VARCHAR2(200);
Icon_Id PLS_INTEGER:=0;
BEGIN

SELECT O.ORG_NAME INTO ONAME
FROM ORGANIZATION.ORGANIZATION O
WHERE O.ORG_CODE=2;


--Win_Api_Session.Change_MDI_Icon(Win_Api_Utility.Get_Active_Window, '.\Icons\Company.ico', Icon_Id);


MDI_ICO := WIN_API_UTILITY.GET_ACTIVE_WINDOW;
WIN_API_SESSION.CHANGE_MDI_ICON(MDI_ICO, '.\Icons\Company.ico', 0);

SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WINDOW_STATE,MAXIMIZE);

SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,ONAME);

SET_WINDOW_PROPERTY('WINDOW1',TITLE,'Unit of Measurement....!');


A_CNTR_FRM('WINDOW1');
END;
Re: FRM-40734 : INTERNAL ERROR : PL/SQL ERROR OCCURRED [message #444481 is a reply to message #439255] Mon, 22 February 2010 03:47 Go to previous messageGo to next message
lancer26
Messages: 50
Registered: May 2006
Location: Pakistan
Member

http://www.orafaq.com/forum/t/155048/86469/
Re: FRM-40734 : INTERNAL ERROR : PL/SQL ERROR OCCURRED [message #447099 is a reply to message #439255] Thu, 11 March 2010 22:15 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Sorry that I have been so long in replying. Have you solved your problem?

Move your code to the 'When-New-Form-Instance' trigger. 'D2kwutil' can not be referenced in the 'pre-form' trigger.

David
Previous Topic: Error when make new item
Next Topic: How Can We Stop to insert Data
Goto Forum:
  


Current Time: Wed Oct 01 02:18:20 CDT 2014

Total time taken to generate the page: 0.13357 seconds