Class CounterValueTableInfo
Table 'CounterValue': Visible for rights
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("CounterValue")]
public class CounterValueTableInfo : TableInfo, ICloneable
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Fields
DictionaryTableName
Conceptual name of table CounterValue in the database dictionary: CounterValue
Declaration
public const string DictionaryTableName = "CounterValue"
Field Value
Type | Description |
---|---|
string |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Properties
AmountClassId
Field 'amountClassId' in table 'CounterValue': Dictionary type FK, target: AmountClass, .NET type: int
Sale amount class, for splitting sale counters by amountsDeclaration
public Int32FieldInfo AmountClassId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
AmountClassId_InnerJoin_AmountClass
Generated join from the foreign key AmountClassId in this table, to its target table AmountClassTableInfo.
Declaration
public TargetedInnerJoin<AmountClassTableInfo> AmountClassId_InnerJoin_AmountClass { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AmountClassTableInfo> |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
ContactId
Field 'contact_id' in table 'CounterValue': Dictionary type FK, target: Contact, .NET type: int
Link to contact, 0 if this counter is not for contactsDeclaration
public Int32FieldInfo ContactId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
ContactId_InnerJoin_Contact
Generated join from the foreign key ContactId in this table, to its target table ContactTableInfo.
Declaration
public TargetedInnerJoin<ContactTableInfo> ContactId_InnerJoin_Contact { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<ContactTableInfo> |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
CounterValueId
Field 'CounterValue_id' in table 'CounterValue': Dictionary type PK, .NET type: int
Primary keyDeclaration
public Int32FieldInfo CounterValueId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Definition
Definition of the table as described in the deployed runtime dictionary
Declaration
public override SoTable Definition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Overrides
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
DictionaryTableNumber
Table number for table CounterValue in the database dictionary; potentially changes between databases, but always the same over the lifetime of any single database
Declaration
public int DictionaryTableNumber { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Direction
Field 'direction' in table 'CounterValue': Dictionary type Enum, .NET type: short
Same as task.direction: Direction: 0 = none, 1 = incoming, 2 = outgoingDeclaration
public FieldInfo Direction { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Extra1Count
Field 'extra1_count' in table 'CounterValue': Dictionary type UInt, .NET type: uint
Total registered records of this type in the second period (there are up to three period definitions)Declaration
public FieldInfo Extra1Count { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Extra1Id
Field 'extra1_id' in table 'CounterValue': Dictionary type Id, .NET type: int
Spare ID for future linksDeclaration
public Int32FieldInfo Extra1Id { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Extra2Count
Field 'extra2_count' in table 'CounterValue': Dictionary type UInt, .NET type: uint
Total records with status Not Completed in the second period (there are up to three period definitions)Declaration
public FieldInfo Extra2Count { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Extra2Id
Field 'extra2_id' in table 'CounterValue': Dictionary type Id, .NET type: int
Spare ID for future linksDeclaration
public Int32FieldInfo Extra2Id { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Extra3Count
Field 'extra3_count' in table 'CounterValue': Dictionary type UInt, .NET type: uint
Total registered records of this type in the third period (there are up to three period definitions)Declaration
public FieldInfo Extra3Count { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Extra4Count
Field 'extra4_count' in table 'CounterValue': Dictionary type UInt, .NET type: uint
Total records with status Not Completed in the third period (there are up to three period definitions)Declaration
public FieldInfo Extra4Count { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
IntentId
Field 'intent_id' in table 'CounterValue': Dictionary type FK, target: Intent, .NET type: int
Link to Intent listDeclaration
public Int32FieldInfo IntentId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
IntentId_InnerJoin_Intent
Generated join from the foreign key IntentId in this table, to its target table IntentTableInfo.
Declaration
public TargetedInnerJoin<IntentTableInfo> IntentId_InnerJoin_Intent { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<IntentTableInfo> |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
LastCompleted
Field 'lastCompleted' in table 'CounterValue': Dictionary type DateTime, .NET type: DateTime
ActiveDate/SaleDate/CreatedAt of last COMPLETED activity/sale/ticket of this typeDeclaration
public DateTimeFieldInfo LastCompleted { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
LastDoBy
Field 'lastDoBy' in table 'CounterValue': Dictionary type DateTime, .NET type: DateTime
ActiveDate/SaleDate/CreatedAt of last NOT COMPLETED activity/sale/ticket of this typeDeclaration
public DateTimeFieldInfo LastDoBy { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
LastRegistered
Field 'lastRegistered' in table 'CounterValue': Dictionary type DateTime, .NET type: DateTime
ActiveDate/SaleDate/CreatedAt of last activity/sale/ticket of this typeDeclaration
public DateTimeFieldInfo LastRegistered { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
NotCompleted
Field 'notCompleted' in table 'CounterValue': Dictionary type UInt, .NET type: uint
Total records with status Not CompletedDeclaration
public FieldInfo NotCompleted { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
NotCompletedInPeriod
Field 'notCompletedInPeriod' in table 'CounterValue': Dictionary type UInt, .NET type: uint
Total records with status Not Completed in the first period (there are up to three period definitions)Declaration
public FieldInfo NotCompletedInPeriod { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
PersonId
Field 'person_id' in table 'CounterValue': Dictionary type FK, target: Person, .NET type: int
Link to person, 0 if this counter is not for person (always 0 in 6.0)Declaration
public Int32FieldInfo PersonId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
PersonId_InnerJoin_Person
Generated join from the foreign key PersonId in this table, to its target table PersonTableInfo.
Declaration
public TargetedInnerJoin<PersonTableInfo> PersonId_InnerJoin_Person { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<PersonTableInfo> |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
ProjectId
Field 'project_id' in table 'CounterValue': Dictionary type FK, target: Project, .NET type: int
Link to project, 0 if this counter is not for projectDeclaration
public Int32FieldInfo ProjectId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
ProjectId_InnerJoin_Project
Generated join from the foreign key ProjectId in this table, to its target table ProjectTableInfo.
Declaration
public TargetedInnerJoin<ProjectTableInfo> ProjectId_InnerJoin_Project { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<ProjectTableInfo> |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
RecordType
Field 'record_type' in table 'CounterValue': Dictionary type Enum, .NET type: short
Same as task.record_type: 1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo - see EAppntRecordTypesDeclaration
public FieldInfo RecordType { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Registered
Field 'registered' in table 'CounterValue': Dictionary type UtcDateTime, .NET type: DateTime
Registered whenDeclaration
public DateTimeFieldInfo Registered { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
RegisteredAssociateId
Field 'registered_associate_id' in table 'CounterValue': Dictionary type FK, target: Associate, .NET type: int
Registered by whomDeclaration
public Int32FieldInfo RegisteredAssociateId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
RegisteredAssociateId_InnerJoin_Associate
Generated join from the foreign key RegisteredAssociateId in this table, to its target table AssociateTableInfo.
Declaration
public TargetedInnerJoin<AssociateTableInfo> RegisteredAssociateId_InnerJoin_Associate { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AssociateTableInfo> |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
RuntimeDefinition
Definition of the table as described in the deployed runtime dictionary
Declaration
[Obsolete("Use instance property Definition or static member DictionaryTableNumber", true)]
public static SoTable RuntimeDefinition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
SaleStatus
Field 'sale_status' in table 'CounterValue': Dictionary type Enum, .NET type: SaleStatus
Sale status: 0 = Unknown, 1 = open, 2 = closed, 3 = lost, 4 = all salesDeclaration
public SaleStatusFieldInfo SaleStatus { get; }
Property Value
Type | Description |
---|---|
SaleStatusFieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
TotalReg
Field 'totalReg' in table 'CounterValue': Dictionary type UInt, .NET type: uint
Total registered records of this typeDeclaration
public FieldInfo TotalReg { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
TotalRegInPeriod
Field 'totalRegInPeriod' in table 'CounterValue': Dictionary type UInt, .NET type: uint
Total registered records of this type in the first period (there are up to three period definitions)Declaration
public FieldInfo TotalRegInPeriod { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Updated
Field 'updated' in table 'CounterValue': Dictionary type UtcDateTime, .NET type: DateTime
Last updated whenDeclaration
public DateTimeFieldInfo Updated { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
UpdatedAssociateId
Field 'updated_associate_id' in table 'CounterValue': Dictionary type FK, target: Associate, .NET type: int
Last updated by whomDeclaration
public Int32FieldInfo UpdatedAssociateId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
UpdatedAssociateId_InnerJoin_Associate
Generated join from the foreign key UpdatedAssociateId in this table, to its target table AssociateTableInfo.
Declaration
public TargetedInnerJoin<AssociateTableInfo> UpdatedAssociateId_InnerJoin_Associate { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AssociateTableInfo> |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
UpdatedCount
Field 'updatedCount' in table 'CounterValue': Dictionary type UShort, .NET type: short
Number of updates made to this recordDeclaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
Methods
IdxContactId(int)
Shortcut method for looking up using the database index ContactId, which spans the following fields:
Field | Description |
---|---|
ContactId | Link to contact, 0 if this counter is not for contacts |
Declaration
public Restriction IdxContactId(int contactId)
Parameters
Type | Name | Description |
---|---|---|
int | contactId |
Returns
Type | Description |
---|---|
Restriction |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
IdxProjectId(int)
Shortcut method for looking up using the database index ProjectId, which spans the following fields:
Field | Description |
---|---|
ProjectId | Link to project, 0 if this counter is not for project |
Declaration
public Restriction IdxProjectId(int projectId)
Parameters
Type | Name | Description |
---|---|---|
int | projectId |
Returns
Type | Description |
---|---|
Restriction |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
IdxRecordType(short)
Shortcut method for looking up using the database index RecordType, which spans the following fields:
Field | Description |
---|---|
RecordType | Same as task.record_type: 1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo - see EAppntRecordTypes |
Declaration
public Restriction IdxRecordType(short recordType)
Parameters
Type | Name | Description |
---|---|---|
short | recordType |
Returns
Type | Description |
---|---|
Restriction |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
IdxRecordTypeDirection(short, short)
Shortcut method for looking up using the database index RecordTypeDirection, which spans the following fields:
Field | Description |
---|---|
RecordType | Same as task.record_type: 1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo - see EAppntRecordTypes |
Direction | Same as task.direction: Direction: 0 = none, 1 = incoming, 2 = outgoing |
Declaration
public Restriction IdxRecordTypeDirection(short recordType, short direction)
Parameters
Type | Name | Description |
---|---|---|
short | recordType | |
short | direction |
Returns
Type | Description |
---|---|
Restriction |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().
IdxSaleStatus(SaleStatus)
Shortcut method for looking up using the database index SaleStatus, which spans the following fields:
Field | Description |
---|---|
SaleStatus | Sale status: 0 = Unknown, 1 = open, 2 = closed, 3 = lost, 4 = all sales |
Declaration
public Restriction IdxSaleStatus(SaleStatus saleStatus)
Parameters
Type | Name | Description |
---|---|---|
SaleStatus | saleStatus |
Returns
Type | Description |
---|---|
Restriction |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetCounterValueInfo().