Re: OCP Forms I question

From: Ken Denny <ken_at_kendenny.com>
Date: Mon, 11 Mar 2002 14:56:48 GMT
Message-ID: <Xns91CE6576335B8kendenny_at_65.82.44.7>


rkg100_at_erols.com (Ryan Gaffuri) wrote in news:6757365f.0203110539.7d216d1d_at_posting.google.com:

> Unless Im reading the question wrong, I think its asking about how to
> enable and disable an item. To do that you would use
> SET_ITEM_PROPERTY(:BLOCK.ITEM, ENABLED, PROPERTY_TRUE); or
> property_false to turn it off. I guess you would probably put it in
> the WHEN-VALIDATE-RECORD trigger and to check to see if you are in the
> property record.
>
> You would have to do that SET_ITEM_PROPERTY for each item.

Yes, except that I would think you would put it in the WHEN_NEW_RECORD_INSTANCE, since it's supposed to depend on the record selected.

>
> Ryan
>
> "Master" <xxx_at_xxx.com> wrote in message
> news:<a6hj8p$hf9$1_at_dragon.vtc.edu.hk>...

>> no doubt ..A lah...
>> 
>> "Pieter J.D. Huiberts" <phuiberts_at_ivwnet.com> wrote in message
>> news:3C8BD5B6.3060601_at_ivwnet.com... 
>> > Hello,
>> > Could anyone help me out whith this question and tell me the correct
>> > answer and why?
>> >
>> > Thanks!
>> >
>> > --> For your application you are creating a generic toolbar. Based
>> > on the record selected by the users you want the buttons on it to be
>> > selectable. To implement this functionality which built-in can you
>> > use? a. Set_record_property.
>> > b. Set_item_property.
>> > c. Set_form_property.
>> > d. Set_block_property.
>> >

-- 
Ken Denny
http://www.kendenny.com/

Good judgment comes from experience. Experience comes from bad judgment.
Received on Mon Mar 11 2002 - 15:56:48 CET

Original text of this message