Wednesday, October 5, 2011

Developing A Business Connectivity Service External Content Type with VS2010

Today I try to follow the Microsoft Sharepoint 2010 Practice Lab

Though the lab provide the detail step for the practice. here is the a few quick tips i think it will help you

quickly finish the practice. Since there is a few trick that the lab maunaul did not cover it.

  1.  After you Create the BCS Model project. please remember to change the Entity Name to Customer (in my case) from Entity1 in the BCS Model View.
     


 2. Add New Method under the BCS Model Detail View ( Windows instead of directly interacting BCS Model View I need to spend quite some time to figure out this issue after i added my Update Method in the BSC  Model View

3. Build the Project and Add External List from the List library you will see the Mock up list of Contacts.

4. Since I didn't fully follow the Lab Manual, i only implemented the ReadItem and ReadList Method for the initial deployment. I added the Update Method after I can view the mock up Contact List. Then i Refresh the page. i can find that edit item function is enable. However when i click on the selected item. it popup a display windows with Error message "Unable to find the default edit form for list Contacts."

the Root Cause is the list was originally created with ReadOnly External Content Type since i only Implemented Read Method when i did my first deployment. After i added the newly implemented Update Method, the External Content Type changed to Read and Write. The Contact List still reference the ReadOnly External Content. I must remove the Contact List and recreate it. then i can edit the item in the list.

In Part two, Please save the change when you change from the Generic List to Contact List selecting from the dropdownlist. before you continue to the next step

No comments:

Post a Comment