Show / Hide Table of Contents

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.

Inheritance
Object
ColumnNormalizer
Namespace: SuperOffice.CRM.ArchiveLists.Archive
Assembly: SoDataBase.dll
Syntax
public class ColumnNormalizer : Object

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

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top