Question

So I've got a list with a BDC External Data field (Sharepoint 2010). This has been added via code and works well (although some sharepoint hacking was needed!)

Anyway on the front end you go to list settings, edit the "External data" column and you can choose to "Add a column to show each of these additional fields:" and then pick the properties you want

Does anyone know how to do this from code?? Everything else in my deployment is from code so I dont want a manual step as it will get forgotten

Hows its done on the front end

Was it helpful?

Solution

You can set the "additional fields" using the SetSecondaryFieldsNames method. You can retrieve the list of secondary fields using the GetSecondaryFieldsNames method.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top