Home » Developer & Programmer » Forms » Urgent:ERROR :- FRM-40104:UNABLE TO RESOLVE REFRENCE TO ITEM
icon5.gif  Urgent:ERROR :- FRM-40104:UNABLE TO RESOLVE REFRENCE TO ITEM [message #208346] Sat, 09 December 2006 11:49 Go to next message
lunate
Messages: 74
Registered: October 2006
Location: Pakistan
Member

hi all.

dears i have a datablock named 'flight_schedules',
and in this datablock i have a field as a radio-group named 'hs'.
'hs' has two option buttons 'hs1','hs2'.
i write a code at >when-radio-changed trigger of 'HS1' radio button.

Quote:
BEGIN
IF :FLIGHT_SCHEDULES.HS='HS1' THEN
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS1',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS2',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS3',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS4',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS5',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS6',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS7',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS8',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS9',ENABLED,PROPERTY_ON);

set_item_property('FLIGHT_SCHEDULES.FLS10',enabled,property_off);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS11',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS12',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS13',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS14',ENABLED,PROPERTY_OFF);
ELSIF :FLIGHT_SCHEDULES.HS='HS2' THEN
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS10',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS11',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS12',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS13',ENABLED,PROPERTY_ON);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS14',ENABLED,PROPERTY_ON);

SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS1',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS2',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS3',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS4',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS5',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS6',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS7',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS8',ENABLED,PROPERTY_OFF);
SET_ITEM_PROPERTY('FLIGHT_SCHEDULES.FLS9',ENABLED,PROPERTY_OFF);
END IF;
END;




>FLS1,FLS2 and so far are the names of text-fields in data block.

and also at the >when-new-form-instances trigger of form.
i write :

Quote:
begin
set_item_property('HS1',enabled,property_on);
end;



but when i run my form there is no effect on form.
and i got the error is.
Quote:
FRM-40104:UNABLE TO RESOLVE REFRENCE TO ITEM HS1.


can some one help me to correct it .

regards.

[Updated on: Sat, 09 December 2006 12:26]

Report message to a moderator

Re: Urgent:ERROR :- FRM-40104:UNABLE TO RESOLVE REFRENCE TO ITEM [message #208357 is a reply to message #208346] Sat, 09 December 2006 16:43 Go to previous messageGo to next message
RAY_HT
Messages: 153
Registered: May 2005
Location: Giza
Senior Member

replace hs1 with the value of hs1 radio button
Re: Urgent:ERROR :- FRM-40104:UNABLE TO RESOLVE REFRENCE TO ITEM [message #208512 is a reply to message #208357] Mon, 11 December 2006 02:45 Go to previous messageGo to next message
lunate
Messages: 74
Registered: October 2006
Location: Pakistan
Member

i did so.
but it is generating the same error.
can u help me in more ways to solve this .
regards
Re: Urgent:ERROR :- FRM-40104:UNABLE TO RESOLVE REFRENCE TO ITEM [message #208676 is a reply to message #208512] Mon, 11 December 2006 21:16 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
I always suggest putting the block name in front of the item name. Also, as you are testing 'FLIGHT_SCHEDULES.HS' I would assume that the item's name is 'HS' not 'HS1'.

David
Previous Topic: use of splash screen.
Next Topic: Find Form property code
Goto Forum:
  


Current Time: Mon Dec 05 23:57:23 CST 2016

Total time taken to generate the page: 0.04909 seconds