Click or drag to resize

LookupListHandlerE, S Class

This class abstracts LookupList handling when the content is coming from custom source. Can be used with any custom extension.
Inheritance Hierarchy
SystemObject
  CTExtensions.ExportCore.EXTsEventExtension
    CTExtensions.ExportCore.EXTsEventExtensionE
      CTExtensions.ExportCore.CTObjectDataCTObjectDataHandlerE, CTLookupList, S
        CTExtensions.ExportCore.EXTsLookupListHandlerE, S

Namespace: CTExtensions.ExportCore.EXTs
Assembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntax
public abstract class LookupListHandler<E, S> : CTObjectDataHandler<E, CTLookupList, S>
where E : CTExtension
where S : new(), LookupListSettings

Type Parameters

E
Your Extension's type, inheritant of CTExtension directly or indirectly.
S
You extended LookupList settings that derive from LookupListSettings

The LookupListHandlerE, S type exposes the following members.

Constructors
 NameDescription
Protected methodLookupListHandlerE, SInitializes a new instance of the LookupListHandlerE, S class
Top
Properties
 NameDescription
Protected propertyType This is ctEditGuardObjectTypeLookupList.
(Overrides CTObjectDataHandlerE, O, SType)
Top
Methods
 NameDescription
Protected methodBuildList This is a convenience function to easily build lookuplist content from given resultset. Supports hierarchy, too. Note that for each Dictionary in the list, Value should have non-empty and unique value.
Protected methodCreateNewCTObject Creates new lookuplist. Custom lists are always hierarchical.
(Overrides CTObjectDataHandlerE, O, SCreateNewCTObject(String))
Public methodDeleteObject Deletes the given lookuplist from CT Database
(Overrides CTObjectDataHandlerE, O, SDeleteObject(O))
Protected methodGetAllFromCTAPI Queries all CTLookupList from CT API.
(Overrides CTObjectDataHandlerE, O, SGetAllFromCTAPI)
Protected methodGetExtenionData Gets extension data from lookuplist
(Overrides CTObjectDataHandlerE, O, SGetExtenionData(O))
Protected methodHandleOnCustomListUpdate Handler for CT API Event OnCustomListUpdate.
Public methodHook Hook to events that query lookuplist data
(Overrides EventExtensionHook(CTInterface))
Public methodQueryAndUpdateLookupListContent Call this to immediately update the lookuplist.
Protected methodQueryData Perform the query against whatever API needed, and return the resultset. For each Dictionary in the list, Value should have non-empty and unique value. Hierarchical lists are build by having ParentValue that matches some other Dictionary's Value.
Public methodRenameObject Renames the given lookuplist in CT database with given name. The name must be unique!
(Overrides CTObjectDataHandlerE, O, SRenameObject(O, String))
Protected methodSetExtensionData Sets extension data to lookuplist
(Overrides CTObjectDataHandlerE, O, SSetExtensionData(O, Byte))
Public methodUnHook Unhook from all events.
(Overrides EventExtensionUnHook(CTInterface))
Top
Revision History
DateVersionDescription
-2025 SP1First Release
See Also