Display Only Field

From: Samatha Reddy <pmuppidi_at_worldnet.att.net>
Date: Sat, 2 May 1998 08:22:25 -0400
Message-ID: <6if359$828_at_bgtnsc01.worldnet.att.net>



I have a requirement to default a base-table item field from a global variable. This global variable
may change during the course of form navigation. This base-table field should:
1) Should be displayed on the form.
2) When user creates new record, the item value should be defaulted from global variable.
3) When the block is instanced, the field should the updated with global variable if they are different.
4) The user should not be allowed to enter any value into it while creating a new record or

     while updating existing record.
I did the following things.
a) Change the items property to Update Allowe = False, Update If NULL = True.
b) IN when-new-record-instanced trigger, I am coping the value from global variable.
c) IN when-new-block-instanced trigger, I am assigning global variable's value to field if different.

Every thing looks except, when creating a new record, the user is allowed to over-write the defaulted value of base-table field. I tried changing update if null = False, but its giving some other error and still allowing to over-write the base-table field during new-record inserted mode.

[Quoted] Could someone help me making this field non-updateable when creating new records.

Thanks,

Pavan Received on Sat May 02 1998 - 14:22:25 CEST

Original text of this message