Class FadTemplateVariables
Wraps a TemplateVariables instance, to keep fadX template tags recursion safe
Inherited Members
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 |
Id
Primary key of the
Declaration
public override int Id { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
Methods
GetValue(string)
Get value, but skip fadx templates
Declaration
public override string GetValue(string tag)
Parameters
Type | Name | Description |
---|---|---|
string | tag | Name of the tag |
Returns
Type | Description |
---|---|
string | Value of the tag. An empty string is returned if there is no valid value |
Overrides
Init()
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 void Init()
Overrides
IsTagInContext(string)
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 bool IsTagInContext(string tag)
Parameters
Type | Name | Description |
---|---|---|
string | tag | Name of the tag. |
Returns
Type | Description |
---|---|
bool | True if the tag is valid in hte given context. |
Overrides
IsTagLegal(string)
Is this a legal tag?
Declaration
public override bool IsTagLegal(string tag)
Parameters
Type | Name | Description |
---|---|---|
string | tag | Name of the tag. |
Returns
Type | Description |
---|---|
bool | True is returned if this is a legal tag. |