Class ColumnNormalizer
Implements a class that can take two providers and normalize their column sets. This is used when the names of the columns in two providers are not equal, and will typically be used when we have a contact-selection combined with a project, sale, doc or appointment.
The logic here is that the columns provided to the SetColumns function does not contain person/ prefixes, since they come from a contact selection. All columns in the non-contact selection provider will there need to receive normalized columns, ie. those that ends with the same as the ones in the columnIds array.
In addition, when retrieving rows, we need to rename the column names for the non-contact provider so that the user interface will see it.
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists.Archive
Assembly: SoDataBase.dll
Syntax
public class ColumnNormalizer
Constructors
ColumnNormalizer(IArchiveProvider, IArchiveProvider)
Implements a class that can take two providers and normalize their column sets. This is used when the names of the columns in two providers are not equal, and will typically be used when we have a contact-selection combined with a project, sale, doc or appointment.
The logic here is that the columns provided to the SetColumns function does not contain person/ prefixes, since they come from a contact selection. All columns in the non-contact selection provider will there need to receive normalized columns, ie. those that ends with the same as the ones in the columnIds array.
In addition, when retrieving rows, we need to rename the column names for the non-contact provider so that the user interface will see it.
Declaration
public ColumnNormalizer(IArchiveProvider leftProvider, IArchiveProvider rightProvider)
Parameters
Type | Name | Description |
---|---|---|
IArchiveProvider | leftProvider | |
IArchiveProvider | rightProvider |
Methods
NormalizeColumns(ArchiveRow)
Handle an archive row and it's column names
Declaration
public void NormalizeColumns(ArchiveRow row)
Parameters
Type | Name | Description |
---|---|---|
ArchiveRow | row |
SetColumns(string[])
Sets columns on the two providers, harmonized.
Declaration
public void SetColumns(string[] columnIds)
Parameters
Type | Name | Description |
---|---|---|
string[] | columnIds |