Show / Hide Table of Contents

Class CustomObjectHelper

Inheritance
object
CustomObjectHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.CustomObject
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public static class CustomObjectHelper

Methods

ConvertFromLegacyColumnName(string)

Converts legacy column name to new format supporting multi-level relations.

Declaration
public static string ConvertFromLegacyColumnName(string columnName)
Parameters
Type Name Description
string columnName

Column name to convert

Returns
Type Description
string

Converted column name. If the given column name is not legacy or something goes wrong, returns the original input.

CurrentUserHasAtLeastReadOnExtraTable(int)

Returns true if the current logged-on user has at least Read data right on the custom object (extra) table with the given table number. When no data right row is configured for the table, the user has full access (returns true); only an explicitly configured "None" right for the CustomObjects relation returns false. If the current principal's role cannot be resolved (SoSentryException), access cannot be confirmed so the table is hidden (fail closed).

Declaration
public static bool CurrentUserHasAtLeastReadOnExtraTable(int tableNumber)
Parameters
Type Name Description
int tableNumber
Returns
Type Description
bool

CurrentUserHasAtLeastReadOnExtraTable(string)

Name-based overload of CurrentUserHasAtLeastReadOnExtraTable(int). Resolves the extra table definition by name. Returns true for unknown / non-extra names so that non-custom-object UI items are never hidden.

Declaration
public static bool CurrentUserHasAtLeastReadOnExtraTable(string extraTableName)
Parameters
Type Name Description
string extraTableName
Returns
Type Description
bool

ForwardOrReverseJoin(ArchiveSelect, TableInfo, TableInfo, SoField)

Declaration
public static void ForwardOrReverseJoin(ArchiveSelect select, TableInfo tableToExtend, TableInfo targetTable, SoField relationField)
Parameters
Type Name Description
ArchiveSelect select
TableInfo tableToExtend
TableInfo targetTable
SoField relationField

MapSoTableToEntityType(SoTable)

Declaration
public static string MapSoTableToEntityType(SoTable relationTable)
Parameters
Type Name Description
SoTable relationTable
Returns
Type Description
string

ResolveDisplayFieldNameAsync(SoField, CancellationToken)

Declaration
public static Task<string> ResolveDisplayFieldNameAsync(SoField field, CancellationToken cancellationToken = default)
Parameters
Type Name Description
SoField field
CancellationToken cancellationToken
Returns
Type Description
Task<string>

ResolveIcon(string)

Declaration
public static string ResolveIcon(string tableName)
Parameters
Type Name Description
string tableName
Returns
Type Description
string

ResolveProviderName(SoField)

Declaration
public static string ResolveProviderName(SoField field)
Parameters
Type Name Description
SoField field
Returns
Type Description
string

ResolveRelationField(SoField)

Declaration
public static string ResolveRelationField(SoField f)
Parameters
Type Name Description
SoField f
Returns
Type Description
string

ShouldHideIdField(string)

Declaration
public static (bool hideRestriction, bool hideDisplay) ShouldHideIdField(string customObject)
Parameters
Type Name Description
string customObject
Returns
Type Description
(bool hideRestriction, bool hideDisplay)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top