Re: Disable update on record in multirecord block

From: Joost Bataille <j.r.l.m.batailleREMOVETHIS_at_uva.nl>
Date: Wed, 14 Nov 2001 14:33:31 +0100
Message-ID: <9strrb$4g6$1_at_mail.ic.uva.nl>


"Paul de Jong" <paulde_jong_at_yahoo.com> wrote in message news:f8250707.0111140022.70bb3f57_at_posting.google.com...
> But it hasn't solved my problems yet.
> This is a part of the syntax I wrote:
>
> rec_id := GET_BLOCK_PROPERTY('block',CURRENT_RECORD);
> SET_ITEM_INSTANCE_PROPERTY(':block.item',rec_id, navigable,
PROPERTY_FALSE);
>
> Now I get an error message:
> FRM-41045 Cannot find item: INVALID ID.
>
> What am i doing wrong?
> > Paul de Jong
You can reference all items in your form with their name. Forms understands these names but does it's own referencing with internal ID's. You can find these ID's with the built-ins 'find_item', 'find_alert' etc. Check the docs. If you don't use these ID's you can use the names and Forms looks up the ID's every time it has to.
It seems Forms cannot find the ID of the specified item. I think this is because you specify the name in lowercase. Try using uppercase like rec_id := GET_BLOCK_PROPERTY('BLOCK',CURRENT_RECORD); SET_ITEM_INSTANCE_PROPERTY('BLOCK.ITEM',rec_id, navigable, PROPERTY_FALSE);

and don't use the colon in the character string ':block.item'

Good luck!

--
Joost Bataille
University of Amsterdam
Received on Wed Nov 14 2001 - 14:33:31 CET

Original text of this message