Class QuoteListsByNameProvider
Wildcard list provider for Quote Management lists; see remarks for naming conventions. If you cannot dynamically generate the proper list name, then see QuoteListsByIdProvider, which has a fixed name and instead takes a QuoteAlternativeId.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.dll
Syntax
[WildcardMDOProviderPlugin("QuoteListsByName")]
public sealed class QuoteListsByNameProvider : IWildcardMDOProvider
Remarks
Quote lists, supplied by the Quote Management connectors, adhere to the following naming convention:
If the list is named 'PaymentTerms', and the context is sale with id 5, then the list name
QM_5_PaymentTerms will retrieve the correct list via the correct connector.
Constructors
QuoteListsByNameProvider()
Wildcard list provider for Quote Management lists; see remarks for naming conventions. If you cannot dynamically generate the proper list name, then see QuoteListsByIdProvider, which has a fixed name and instead takes a QuoteAlternativeId.
Declaration
public QuoteListsByNameProvider()
Remarks
Quote lists, supplied by the Quote Management connectors, adhere to the following naming convention:
If the list is named 'PaymentTerms', and the context is sale with id 5, then the list name
QM_5_PaymentTerms will retrieve the correct list via the correct connector.
Fields
Prefix
Wildcard list provider for Quote Management lists; see remarks for naming conventions. If you cannot dynamically generate the proper list name, then see QuoteListsByIdProvider, which has a fixed name and instead takes a QuoteAlternativeId.
Declaration
public const string Prefix = "QM"
Field Value
Type | Description |
---|---|
string |
Remarks
Quote lists, supplied by the Quote Management connectors, adhere to the following naming convention:
If the list is named 'PaymentTerms', and the context is sale with id 5, then the list name
QM_5_PaymentTerms will retrieve the correct list via the correct connector.
Methods
GetListName(string, int)
Given a base list name and sale id, return the list name that uniquely specifies the "real" list name that can be used all over the place
Declaration
public static string GetListName(string name, int saleId)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
int | saleId |
Returns
Type | Description |
---|---|
string |
Remarks
Quote lists, supplied by the Quote Management connectors, adhere to the following naming convention:
If the list is named 'PaymentTerms', and the context is sale with id 5, then the list name
QM_5_PaymentTerms will retrieve the correct list via the correct connector.
GetListName(string, string)
Wildcard list provider for Quote Management lists; see remarks for naming conventions. If you cannot dynamically generate the proper list name, then see QuoteListsByIdProvider, which has a fixed name and instead takes a QuoteAlternativeId.
Declaration
public static string GetListName(string name, string connectorName)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
string | connectorName |
Returns
Type | Description |
---|---|
string |
Remarks
Quote lists, supplied by the Quote Management connectors, adhere to the following naming convention:
If the list is named 'PaymentTerms', and the context is sale with id 5, then the list name
QM_5_PaymentTerms will retrieve the correct list via the correct connector.
GetProvider(string)
Return a fully populated, concrete list provider for a given list name; or null. See class remarks for more information.
Declaration
public ISoListProvider GetProvider(string listName)
Parameters
Type | Name | Description |
---|---|---|
string | listName | "qm_excelquoteconnector_productcategory" (generic connector name - during setup) or "qm_con3_productCategory" (3=connection id), or "qm_3_productCategory", where 3 = sale-id |
Returns
Type | Description |
---|---|
ISoListProvider |
Remarks
Quote lists, supplied by the Quote Management connectors, adhere to the following naming convention:
If the list is named 'PaymentTerms', and the context is sale with id 5, then the list name
QM_5_PaymentTerms will retrieve the correct list via the correct connector.