Re: How do you SET a form field's property programmatically?
Date: 2000/06/19
Message-ID: <sktku2qre7f138_at_corp.supernews.com>#1/1
"Richard Hollingsworth" <william.hollingsworth_at_hsv.boeing.com> wrote in message
news:394E684D.B115D028_at_hsv.boeing.com...
> Hi.
>
> Forms 5.0, Oracle 8.0.5., Windows NT 4.0.
>
> I have a field on a Form. I want to set it's 'Enabled' property. I set
> it to 'No' in forms builder, now I want to set to 'Yes' so the field
> will be enabled for use.
>
> I tried...in a WHEN_NEW_FORM_INSTANCE trigger
>
> DECLARE
> item_id ITEM;
> BEGIN
> item_id := FIND_ITEM(:block_name.field_name);
> set_item_property(item_id, ENABLED, PROPERTY_TRUE);
> END;
Take away the colon. When you do that, you are essensially passing the
*content* of block_name.field_name (the value in the field) to FIND_ITEM and
[Quoted] not the name of the field itself.
-Matt Received on Mon Jun 19 2000 - 00:00:00 CEST