Skip to main content

Posts

Showing posts with the label External Content Type

SharePoint 2010 Web Content Management (WCM) Metadata – Site Columns & Content Types

For creating a page layout we need to create a custom content type. And for creating a content type, we need to create custom site columns. Below I will demonstrate how to create custom site columns declaratively. 1. Branding – Master Page & Custom Style Sheet   2. Metadata – Site Columns & Content Types 3. Page Layouts 4. Setting up deployment Paths & Jobs Step 1. Add empty element to the project. In the elements.xml file you can declare the columns like below. Declarative site columns can also be defined in content type’s Elements.xml file. But for clarity, I have created a new element and declared the site columns in here…   Different types of site columns – Text, Choice, Number & Note. And finally for displaying image… I have created site columns of different types, Text, Choice, Number, Note and URL. For Choice (drop down list) column we can add choices in the tag provided. For displaying image, we can choose a URL column and set the f...

Access denied by Business Data Connectivity.

You would get this error after configuring a list which uses External Content Type (created using SharePoint Designer or VS 2010). Now you must be wondering when ECT and the list is created with the same login id, why should one get access denied error. When you create a new list which uses the ECT, it gives Access Denied error But there is one more step before you use the ECT in a list. In Business Data Connectivity Service in Central Administration we need to set object permission for the ECT. 1. Open CA, navigate to click on ‘Manage Service Applications’ under ‘Application Management’. 2. Click on ‘Business Data Connectivity Service’ 3. Select the ECT you are looking for 4. Click on ‘Set Object Permissions’ on the ribbon, In BDC service application, select the ECT and click on 'Set Object Permissions' in the ribbon 5. Enter the user name you want to give permission to, Click on Add 6. Select permissions for the selected user and click OK. In the set object permissions popup,...