Home » Developer & Programmer » Forms » How to access variable declared in a package from the Forms
How to access variable declared in a package from the Forms [message #80335] Wed, 11 September 2002 07:40 Go to next message
Vinod
Messages: 76
Registered: April 1999
Member
I have a package as a program unit in forms as follows

PACKAGE GET_PA IS
P_REC PROCUREMENT_ACTION%ROWTYPE := null;
END;

From the when new form instance trigger i wrote

GET_PA.P_REC;

It is giving me an error message which says
'P_REC' is not a procedure or is undefined

please can anyone guide me how to access variable declared in a package from the Forms

Thanks
Vinod
Re: How to access variable declared in a package from the Forms [message #80337 is a reply to message #80335] Wed, 11 September 2002 11:11 Go to previous messageGo to next message
ram kumar
Messages: 113
Registered: August 2002
Senior Member
hi viond,
can u make me claer about weather u created package spec or package body..
u should create package spec in taht u define vairable..
regards
ram
Re: How to access variable declared in a package from the Forms [message #80356 is a reply to message #80335] Fri, 13 September 2002 06:23 Go to previous message
binoy
Messages: 1
Registered: September 2002
Junior Member
from forms u can not directly access a package varibale. so make a function in the package which is recturning the package variable. this function can be accessed from froms
HTH
binoy
Previous Topic: Help needed urgently
Next Topic: procedure
Goto Forum:
  


Current Time: Fri Apr 26 03:46:10 CDT 2024