Click or drag to resize

IncnumOperator Class

Represents the INCNUM operator, which increments is first parameter, a string

Format: INCNUM('AA01')

Result: 'AA02'

Inheritance Hierarchy

Namespace:  Aloe.EnterpriseOne.Model.Systems.Bpm.ExpressionCompiler.Operators
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public class IncnumOperator : NamedOperator

The IncnumOperator type exposes the following members.

Constructors
  NameDescription
Public methodIncnumOperator
Initializes a new instance of the IncnumOperator class
Top
Properties
  NameDescription
Public propertyCompilation
Gets or sets the compilation to which this operator belongs.
(Inherited from Operator.)
Public propertyInput
Gets or sets the expression representing the input object.
(Inherited from Operator.)
Public propertyName
Gets the name.
(Inherited from NamedOperator.)
Public propertyOperatorNo
Gets the operator no within the compilation.
(Inherited from Operator.)
Public propertyParameters
Gets or sets the parameters.
(Inherited from Operator.)
Public propertyResult
Gets the result expression, set by the latest compilation. It represents the operator, applied over the input object and parameters.
(Inherited from Operator.)
Top
Methods
  NameDescription
Public methodCompile
Compiles this operator and sets the result in Result.
(Inherited from Operator.)
Public methodToString
Returns a String that represents this instance.
(Inherited from Operator.)
Top
Remarks

The INCNUM operator increases the value of its parameter by 1.

The operator can be used only for String values whose last character is a number.

For example:

If the user tries to increment the string value 'AA01', the incrementation will be successful and result will be 'AA02';

If the user tries to increment a value whose type is Decimal, Int or Date, the incrementation won't be successful and the Calculated Attribute won't be compiled; Also if the value is a string whose last character is not a number ('AA', for example), the incrementation won't be successful. The INCNUM operator can be used for consecutive numbering of documents and nomenclatures.

See Also