Disable first field in form [message #78100] |
Thu, 17 January 2002 05:44 |
Aaron Reynaldos
Messages: 4 Registered: January 2002
|
Junior Member |
|
|
I need to block an item for user modification under certain conditions. When I use INSERT_ALLOWED for a new record, it still allows modifications.
Then I tried to set ENABLED to No, and works ok, but when I clear the form or insert a new record (I need the item to be editable then) I get the error message
FRM-41316: Cannot set Insert Allowed property of disabled item
What is the workaround for this problem?
TIA,
Aaron
|
|
|
|
Re: Disable first field in form [message #78111 is a reply to message #78100] |
Fri, 18 January 2002 06:17 |
Aaron Reynaldos
Messages: 4 Registered: January 2002
|
Junior Member |
|
|
Thanks a lot Shilpa. I got around the problem with another workaround, very similar to the one you mentioned. If I change the properties with the code you suggest, the properties for the item in the current record are changed, and I need to keep it blocked from modifications. Your advice helped me see a solution, so thanks a lot.
I am a newbie in forms, but I have developed in various other tools. What seems to be the issue is that when you create a new record (either by adding one or by clearing the form), this record gets the same item properties that the previous one, not the ones that are defined in the form.
Am I correct? Is there a workaround if so?
|
|
|