Show / Hide Table of Contents

Class ShadowSelectionHelper

Class for working with common functionality in Shadow selections.

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

Constructors

ShadowSelectionHelper(ArchiveSelect)

Default constructor. Takes the RootQuery ArchiveSelect

Declaration
public ShadowSelectionHelper(ArchiveSelect rootQuery)
Parameters
Type Name Description
ArchiveSelect rootQuery

ArchiveSelect

Methods

AcceptRow(SoDataReader)

Common method for shadow selections.

Declaration
public bool AcceptRow(SoDataReader reader)
Parameters
Type Name Description
SoDataReader reader
Returns
Type Description
Boolean

AddContactAndPersonColumns(String[])

Add contact/contactId and person/personId columns to desired columns if they are not already added.

Declaration
public static string[] AddContactAndPersonColumns(string[] columnIds)
Parameters
Type Name Description
String[] columnIds

Current column collection.

Returns
Type Description
String[]

Modified column collection.

AddRowInfo(SoDataReader, ArchiveRow)

Add RowType, RowKey and LinkHint to a shadow selection row. Replacing any nav linkhint with person or contact.

Declaration
public void AddRowInfo(SoDataReader reader, ArchiveRow row)
Parameters
Type Name Description
SoDataReader reader
ArchiveRow row

RequiredPhaseOneFields()

Add contact and person id fields as required phase one fields.

Declaration
public FieldInfo[] RequiredPhaseOneFields()
Returns
Type Description
FieldInfo[]

SetRestriction(ArchiveRestrictionInfo[])

Class for working with common functionality in Shadow selections.

Declaration
public void SetRestriction(ArchiveRestrictionInfo[] restrictions)
Parameters
Type Name Description
ArchiveRestrictionInfo[] restrictions

SetRootQuery(ArchiveSelect)

Set the root query. The helper might be instanciated before the query is available.

Declaration
public void SetRootQuery(ArchiveSelect rootQuery)
Parameters
Type Name Description
ArchiveSelect rootQuery

SetStyleHint(ArchiveRow)

Modify the stylehint of shadow selection rows. Stylehint 'expired' will be removed

Declaration
public string SetStyleHint(ArchiveRow row)
Parameters
Type Name Description
ArchiveRow row
Returns
Type Description
String

Modified stylehint

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