CTExtensionGetExportProfileLinkToDBObject Method |
Namespace: CTExtensions
public int GetExportProfileLinkToDBObject( ICTExportProfile oExportProf, SQLObjectType eObjectType, int intData = 0 )
enum AttributeTypes { MainAttribute = 1, SecondaryAttribute = 2 } ICTExportProfile oProfile = /* GetExportProfile(...); */ int iAttributeId = /* GetSelectedMainAttribute(...); */ // Save currently selected attribute as MainAttribute to DB. StoreExportProfileLinkToDBObject(oProfile, (int)SQLObjectMgr.SQLObjectType_SQLAttribute, iAttrbuteId, (int)AttributeTypes.MainAttribute); // Get MainAttribute's stored attribute id. This is valid even if the attribute id has changed during profile import/export. iAttributeId = GetExportProfileLinkToDBObject(oProfile, (int)SQLObjectMgr.SQLObjectType_SQLAttribute, (int)AttributeTypes.MainAttribute);