 | CTExtensionStoreExportProfileLinkToDBObject Method |
Store link-data of your extension from export profile to given DB object type with given id.
ID's stored using this function are kept linked to correct objects even in profile import/export -cases.
Use intData to distinct different links of same type.
Namespace: CTExtensionsAssembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntaxpublic bool StoreExportProfileLinkToDBObject(
ICTExportProfile oExportProf,
SQLObjectType eObjectType,
int id,
int intData = 0
)
Public Function StoreExportProfileLinkToDBObject (
oExportProf As ICTExportProfile,
eObjectType As SQLObjectType,
id As Integer,
Optional intData As Integer = 0
) As Boolean
Parameters
- oExportProf ICTExportProfile
- Profile to link with given object
- eObjectType SQLObjectType
- Type of the object
- id Int32
- ID of the object
- intData Int32 (Optional)
- Integer data can be used to identify specific links of same object type.
Return Value
BooleanTrue if successfull, false otherwise
Example
Example how to store links to specific attributes so that they are correctly kept during profile import/export.
enum AttributeTypes
{
MainAttribute = 1,
SecondaryAttribute = 2
}
ICTExportProfile oProfile =
int iAttributeId =
StoreExportProfileLinkToDBObject(oProfile, (int)SQLObjectMgr.SQLObjectType_SQLAttribute, iAttrbuteId, (int)AttributeTypes.MainAttribute);
iAttributeId = GetExportProfileLinkToDBObject(oProfile, (int)SQLObjectMgr.SQLObjectType_SQLAttribute, (int)AttributeTypes.MainAttribute);
See Also