Urgent! frm-40200 with create_record [message #84801] |
Tue, 27 April 2004 09:20  |
David
Messages: 110 Registered: November 1998
|
Senior Member |
|
|
I have a series of comboxes which are non database items. There defaullt "Update Allowed" is set to No in the properties list. If the user wants to add a record these combo boxes should be allowed to be updated. I have code wich first calls the create record procedure and then sets the comboboxes "Update Allowed" the true. The problem is I still get the error message "frm-40200 Field is protected from update" when trying to select a value from any of the combo boxes. My code is below:
CREATE_RECORD();
--- Allow the form fields to be edited ---
SET_ITEM_PROPERTY('CBX_PROJECT_TYPE',UPDATE_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('CBX_PROJECT_CLASS',UPDATE_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('CBX_PROJECT_STATUS',UPDATE_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('CBX_PROJECT_MANAGER',UPDATE_ALLOWED,PROPERTY_TRUE);
Can anyone tell me what is going on. Is there a better way to add a record?
Cheers,
Dave
|
|
|
|