Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FRM-41045:invalid item ID error

Status
Not open for further replies.

rk68

Programmer
Jul 15, 2003
171
IN
I'm customizing a form in ORacle apps. I have created a button, when pressed does some calculation. I want this button to be disabled in query mode and enabled only for New/Insert/Change mode. The push button 'enable' property is set to NO. I have put a code in WHEN-NEW_ITEm_instance in the block trigger. The code is as follows.
-------------
declare
itemid Item;
begin
OE_LINE.When_New_Item_Instance;
itemid := Find_Item('LINE.ALLOWANCE_B');
IF :System.Record_Status IN ( 'NEW','CHANGED','INSERT') then
app_item_property.Set_Property(itemid,ENABLED,PROPERTY_ON);
end if;
IF :System.Record_Status = 'QUERY' then
app_item_property.Set_Property(itemid,ENABLED,PROPERTY_OFF);
end if;
end;
---------
Whenever I try to run the form & come on this block, it give me the error - Invalid item ID (FRM 41045).
I tried all means but all in vain.
Please help.

TIA
Raj
 
Corrected the error. The item from the said block was deleted & created in another block by my colleague & I didn't even gave a thought to check the same. Sorry for posting such silly problems.

TIA
Raj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top