Home » Developer & Programmer » Forms » Urgent! frm-40200 with create_record
Urgent! frm-40200 with create_record [message #84801] Tue, 27 April 2004 09:20 Go to next message
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
Re: Urgent! frm-40200 with create_record [message #84802 is a reply to message #84801] Tue, 27 April 2004 11:39 Go to previous message
Raj.C
Messages: 7
Registered: April 2001
Junior Member
I think you need to set insert_allowed property to TRUE to allow entering new value. Try this and it should work.

Thanks
Raj.C
Previous Topic: SUNIL - I NEED YOUR HELP
Next Topic: Get selected items
Goto Forum:
  


Current Time: Mon May 20 14:33:57 CDT 2024