Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Using Packages in Oracle forms
In article <3736A44B.C7E45969_at_knold.ballehs.dk>, Michael Holm
<datb9812_at_knold.ballehs.dk> writes
>Hi
>
>i'm trying to use a package that I have created user forms 4.5. I keep
>getting this error: Funktion 'text_to' may not be used in SQL. I have
>created the package with the funktion but it won't work. I'm tried it
>under the SQL program for forms and then it worked, I just don't know
>why it didn't worked under Foms.
>
Can you show us the package declaration and your call to the package?
The package is compiled on your database, and the call works from SQL*Plus?
Have you put RESTRICT_REFERENCES in the package declaration? E.G
PACKAGE return_value
IS
FUNCTION material_description (p_material_id materials.material_id%TYPE)
RETURN VARCHAR2 ; PRAGMA RESTRICT_REFERENCES(material_description, WNDS, WNPS);END;