I have a solution in which one of the features defines a collection of External Content Types. The solution also has a feature that creates an External List Instance for accessing one of the ECTs. Because I wanted to define a few default views (with a select list of columns) I added a Schema.xml file to the feature and CustomSchema attribute to the ListInstance.
However, the addition of the CustomSchema attribute seems to break the OnQuickLaunch in that the Quick Launch link is not created. Here is my code
<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <ListInstance TemplateType="600" Title="My List" OnQuickLaunch="TRUE" Url="Lists/MyList" CustomSchema="MyList\Schema.xml" xmlns="http://schemas.microsoft.com/sharepoint/"> <DataSource> <Property Name="LobSystemInstance" Value="MyECT" /> <Property Name="EntityNamespace" Value="IOC.BCS.MyConnectModel" /> <Property Name="Entity" Value="CI" /> <Property Name="SpecificFinder" Value="GetIndById" /> </DataSource> </ListInstance> </Elements>
If I use the above, the list is created but not added to the Quick Launch. If I remove the CustomSchema attribute, the list is created and added to the Quick Launch but obviously I loss my custom views.