Re: MultiRecord Item Enabling Problem

From: Charles Jardine <cj10_at_cam.ac.uk>
Date: Thu, 25 Mar 1999 12:38:21 +0000
Message-ID: <36FA2E3D.FDC09391_at_cam.ac.uk>


Nilesh_at_cheerful.com wrote:
>
> I forms 4.5, I am working on a multi record block. There is an item
> called QUANTITY, and another item called REASON.
>
> If the QUANTITY changes then the REASON must become required and enabled.
>
> I wrote a WHEN-VALIDATE_EVENT trigger on QUANTITY to set the required
> property and the enabled property. However, all the instances of the REASON
> are affected. I want to affect only one istance of the REASON item, not all.
>
> I checked up the help, the SET_ITEM_PROPERTY modifies all instances of the
> item in a block, but that is not what i want here. How do i get around this?

You need to upgrade to Forms 5. There is a new built-in called SET_ITEM_INSTANCE_PROPERTY. It is fairly resticted, but can be used to change the following properties: BORDER_BEVEL, INSERT_ALLOWED, NAVIGABLE, REQUIRED, UPDATEABLE and VISUAL_ATTRIBUTE.

-- 
[Quoted] Charles Jardine - Computing Service, University of Cambridge
cj10_at_cam.ac.uk    Tel: +44 1223 334506, Fax: +44 1223 334679
Received on Thu Mar 25 1999 - 13:38:21 CET

Original text of this message