Class UdListMDOProvider
MDO Provider for 'user-defined' lists, i.e., those that reside in the UDList table. Mandatory additionalInfo is the udListId, which identifies the actual sublist. There is also a dynamic provider that will make a provider called 'udlist<id>, for instance udlist123, where the sublist id is part of the name. Nice if you are in a situation where you can only get a list name and not the additionalInfo as a separate parameter.
Inherited Members
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.dll
Syntax
[MDOProviderPlugin("udlist")]
[MDOAdditionalInfo("UD List id", 1234)]
public class UdListMDOProvider : MDOProviderBase, ISoListProvider, ISoList, IEnumerable<ISoListItem>, IEnumerable
Constructors
UdListMDOProvider()
MDO Provider for 'user-defined' lists, i.e., those that reside in the UDList table. Mandatory additionalInfo is the udListId, which identifies the actual sublist. There is also a dynamic provider that will make a provider called 'udlist<id>, for instance udlist123, where the sublist id is part of the name. Nice if you are in a situation where you can only get a list name and not the additionalInfo as a separate parameter.
Declaration
public UdListMDOProvider()
Fields
ProviderName
MDO Provider for 'user-defined' lists, i.e., those that reside in the UDList table. Mandatory additionalInfo is the udListId, which identifies the actual sublist. There is also a dynamic provider that will make a provider called 'udlist<id>, for instance udlist123, where the sublist id is part of the name. Nice if you are in a situation where you can only get a list name and not the additionalInfo as a separate parameter.
Declaration
public const string ProviderName = "udlist"
Field Value
Type | Description |
---|---|
string |
Properties
HistoryInfo
History information for the supported list
Declaration
public override HistoryInfo HistoryInfo { get; }
Property Value
Type | Description |
---|---|
HistoryInfo |
Overrides
Methods
Construct(string, string, int[], bool, string, bool)
Initializes all class members.
Declaration
public override void Construct(string tableName, string additionalInfo, int[] historyIDs, bool onlyReadHistory, string searchValue, bool forceFlatList)
Parameters
Type | Name | Description |
---|---|---|
string | tableName | Name of the table holding the MDO list values, like Category, Business, etc. Note that this really has to be a valid table name. |
string | additionalInfo | |
int[] | historyIDs | List of history id's (primary keys of the table holding the MDO list values). |
bool | onlyReadHistory | Only read history nodes. |
string | searchValue | Search value (case insensetive string used like '%[searchValue]%'. The result when using this is allways a flat list without hisotry elements. |
bool | forceFlatList | State that a forced flat list should be returned. |
Overrides
GetGroupingAllowedForList()
MDO Provider for 'user-defined' lists, i.e., those that reside in the UDList table. Mandatory additionalInfo is the udListId, which identifies the actual sublist. There is also a dynamic provider that will make a provider called 'udlist<id>, for instance udlist123, where the sublist id is part of the name. Nice if you are in a situation where you can only get a list name and not the additionalInfo as a separate parameter.
Declaration
protected override bool GetGroupingAllowedForList()
Returns
Type | Description |
---|---|
bool |
Overrides
GetItemsAndHeadingsQuery(bool, params int[])
Intercept the query to add additional restrictions.
Declaration
protected override ListTableRows.CustomSearch GetItemsAndHeadingsQuery(bool bFlattened, params int[] selectedIds)
Parameters
Type | Name | Description |
---|---|---|
bool | bFlattened | |
int[] | selectedIds |
Returns
Type | Description |
---|---|
ListTableRows.CustomSearch |
Overrides
GetSimpleListQuery()
Intercept the query to add additional restrictions.
Declaration
protected override ListTableRows.CustomSearch GetSimpleListQuery()
Returns
Type | Description |
---|---|
ListTableRows.CustomSearch |