Show / Hide Table of Contents

Class FadTemplateVariables

Wraps a TemplateVariables instance, to keep fadX template tags recursion safe

Inheritance
object
TagContainer
FadTemplateVariables
Inherited Members
TagContainer._bInitiated
TagContainer.AddData(params object[])
TagContainer.GetData()
TagContainer.ClearData()
TagContainer.GetTags()
TagContainer.SetValue(string, string)
TagContainer.RemoveCustomValue(string)
TagContainer.CurrentUiCulture
TagContainer.Data
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Globalization
Assembly: SoDataBase.dll
Syntax
public class FadTemplateVariables : TagContainer

Constructors

FadTemplateVariables(TemplateVariables)

Wraps a TemplateVariables instance, to keep fadX template tags recursion safe

Declaration
public FadTemplateVariables(TemplateVariables parent)
Parameters
Type Name Description
TemplateVariables parent

Properties

CurrentContact

Wraps a TemplateVariables instance, to keep fadX template tags recursion safe

Declaration
public ContactTags CurrentContact { get; set; }
Property Value
Type Description
ContactTags

CurrentPerson

Wraps a TemplateVariables instance, to keep fadX template tags recursion safe

Declaration
public CurrentPersonVariables CurrentPerson { get; set; }
Property Value
Type Description
CurrentPersonVariables

Methods

GetIdAsync(CancellationToken)

Primary key of the

Declaration
public override Task<int> GetIdAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<int>
Overrides
TagContainer.GetIdAsync(CancellationToken)

GetValueAsync(string, CancellationToken)

Get value, but skip fadx templates

Declaration
public override Task<string> GetValueAsync(string tag, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string tag

Name of the tag

CancellationToken cancellationToken
Returns
Type Description
Task<string>

Value of the tag. An empty string is returned if there is no valid value

Overrides
TagContainer.GetValueAsync(string, CancellationToken)

InitAsync(CancellationToken)

Set the object in an initaited state. This means that no data can be added (e.g. AddData(params object[])) beyound this point.

Declaration
protected override Task InitAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task
Overrides
TagContainer.InitAsync(CancellationToken)

IsTagInContextAsync(string, CancellationToken)

Is this a valid tag in the given context. If there are no current sale, there are no valid tags for sale.

Declaration
public override Task<bool> IsTagInContextAsync(string tag, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string tag

Name of the tag.

CancellationToken cancellationToken
Returns
Type Description
Task<bool>

True if the tag is valid in hte given context.

Overrides
TagContainer.IsTagInContextAsync(string, CancellationToken)

IsTagLegalAsync(string, CancellationToken)

Is this a legal tag?

Declaration
public override Task<bool> IsTagLegalAsync(string tag, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string tag

Name of the tag.

CancellationToken cancellationToken
Returns
Type Description
Task<bool>

True is returned if this is a legal tag.

Overrides
TagContainer.IsTagLegalAsync(string, CancellationToken)

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