Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Get Custom Doc type column Names View modes: 
User avatar
Certified Developer 11
Certified Developer 11
dfahy@ecentricarts.com - 3/15/2013 3:59:07 PM
   
Get Custom Doc type column Names
Hi,

Using the API how would I get the names of the fields in a doc type? I know the class name.

e.g. for CMS.MenuItem I would want only MenuItemID, MenuItemName, MenuItemTeaserImage and MenuItemGroup i.e. the fields in the Fields tab in the Site Manager document type section.

I don't want fields such as DocumentName, DocumentUrlPath etc

Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/15/2013 5:51:17 PM
   
RE:Get Custom Doc type column Names
Hi,

I would try using DataClassInfoProvider.GetDataClass("classname") method to get the information about given class and from there you should be able to get the field names from the class form definition.

Best regards,
Juraj Ondrus