Obviously, you should change GET_FORM_PROPERY into GET_FORM_PROPERTY.
Then, APPS is another PL/SQL-library? With package APP_MENU2? Has the library APPS been attached to your form? You don't have to give name of the PL/SQL-library; Forms Builder will search for the package APP_MENU2 in all attached libraries.
So then a call like
should be enough.
Lennart de Vos
Thanks Lennart de Vos
As u said I removed APPS from the below.
APPS. APP_MENU2.SET_PROP('FILE.SAVE', ENABLED,PROPERTY_OFF);
Even then am getting the same error
ANy ideas ?
Why don't you ask this question in the Applications forum? You would have more chances to get an answer than here (that is the single Forms forum).
1. Remove APPS prefix from APPS.APP_MENU2.SET_PROP('FILE.SAVE', ENABLED,PROPERTY_OFF);
The procedure call has to be like the following:
2. Ensure that APPCORE2.pll is present in your Forms Path. The Package APP_MENU2 belongs to APPCORE2 library and hence it is imperative that you need to have this library in your forms path before compilation. In fact it is better if your Forms Path points to $AU_TOP/resource and $AU_TOP/forms/US.
Thanks Francois .. but am already redirected from there only . Thanks
Thanks Somasundaram , I will try and let u know..
I faced the same error and I was able to solve it by adding the appcore2 library to the attached library when I opened the custom.pll using forms builder.
Edited by: user10223260 on Oct 21, 2008 1:32 PM
I have created read only responsibilties by custom.pll and look up , it is working but I am getting the following message.
FRM - 41051 :You cannot create records here so many times on the same form.
Please let me know how can I supress the message or remove the message.
Thanks and Regards
I have used this code.
IF event_name = 'WHEN-NEW-FORM-INSTANCE' THEN
/*IF FND_PROFILE.VALUE('RESPONSIBILITY_NAME')in (*/
v_Resp_id := FND_PROFILE.VALUE('RESP_ID');
where responsibility_id = v_Resp_id;
when others then
v_Resp_name := '';
SELECT count(1) into v_count --TRIM(meaning)
WHERE lookup_type = 'CLX_READ_ONLY_RESPONSIBILITY'
AND enabled_flag = 'Y'
AND TRIM(meaning) = v_Resp_name --FND_PROFILE.VALUE('RESPONSIBILITY_NAME')
AND end_date_active IS NULL;
if v_count >0 THEN
form_name := NAME_IN('system.current_form');
block_name := GET_FORM_PROPERTY(form_name, FIRST_BLOCK);
WHILE (block_name is not null) LOOP
IF (GET_BLOCK_PROPERTY(block_name, BASE_TABLE) is not NULL) THEN
SET_BLOCK_PROPERTY(block_name, INSERT_ALLOWED, PROPERTY_FALSE);
SET_BLOCK_PROPERTY(block_name, UPDATE_ALLOWED, PROPERTY_FALSE);
SET_BLOCK_PROPERTY(block_name, DELETE_ALLOWED, PROPERTY_FALSE);
block_name := GET_BLOCK_PROPERTY(block_name, NEXTBLOCK);
Thanks and Regards