none
Event Handler when Saving List Items? RRS feed

  • Question

  • I created some custom forms for my list items for create and edit. I derived them from WebPartPage and used the code generated from Designer as the starting point. Everything works well except I can't figure out how to catch an OnSave event when the user creates a new item. All the primitive fields are populated just fine, but I have some fields that the values are chosen from an entity PickerDialog. These are NOT being populated.

    I'm guessing I'll need to populate them manually in the code behind when the form is saved? If I handle the save event, I could see what entity was chosen and populate the field.

    Since these fields are references/related to external data sources (BDCs) there's no way in VS to create these custom fields in the referencing type.

    I'll need to do the same thing in the Edit form.

    Thursday, April 7, 2011 3:57 PM