Re: How do you SET a form field's property programmatically?

From: Mike Dwyer <dwyermj_at_co,larimer.co.us>
Date: 2000/06/20
Message-ID: <rwK35.4$jf2.494_at_wdc-read-01.qwest.net>#1/1


Wouldn't you typically just use "set_item_property('myblock.myitem', ..." instead of the 2-step approach with find_item()? Why or why not?

One reason would be for re-use of the set_item_property function for multiple/varying item_ids.

"Matt B." <mcb_at_fightspam.sd.znet.com> wrote in message news:sktku2qre7f138_at_corp.supernews.com...
> "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
> not the name of the field itself.
>
> -Matt
>
>
Received on Tue Jun 20 2000 - 00:00:00 CEST

Original text of this message