Skip to main content
With this class, you can retrieve meta-information about an extra field. The class will only retrieve information, thus it is not possible to change an extra field from this class.

Constructors

ExtraFieldsInfo()

Initializes a new instance of the ExtraFieldsInfo class.

Methods

eof()

Checks if there are no more fields in the result.
Returns: CRMScript.Global.Bool Example:

getChildrenFields(Integer,Integer)

Loads extra fields of the type given in the first parameter. If the type is an extra table relation, the second pointer is the ID of the extra table it points to.
Returns: CRMScript.Global.Void
Unless type is 20 (extratable), the second parameter won’t do anything.Types can be:Integer = 1, Text (long) = 2, Date = 3, DateTime = 4, Time = 5, Bool = 6, TimeSpan = 7, Text (short) = 10, Customer relation = 16, Company relation = 17, Ticket relation = 18, User relation = 19, Extra table relation = 20, Attachment relation = 22, Link = 23, Category relation = 24, Priority relation = 25, FAQ relation = 26

getCompanyChildrenFields()

This is a helper function for getting company relation fields. It is equivalent to calling getChildrenFields(17, 0).
Returns: CRMScript.Global.Void

getCustomerChildrenFields()

This is a helper function for getting customer relation fields. It is equivalent to calling getChildrenFields(16, 0).
Returns: CRMScript.Global.Void

getDisplayField()

Returns the display field of the current field.
Returns: CRMScript.Global.String
The display field is a format of the field that can be used to address the field in functions such as SearchEngine.
Example:

getExtraFields(String)

Gets extra fields related to the given table. Using this method will make it possible to access the information in the extra fields by using the other functions in the class.
Returns: CRMScript.Global.Void Example:

getFieldName()

Returns the field name of the current field.
Returns: CRMScript.Global.String - The field name of the current field. Example:

getFlags()

Returns the flags for the current extra field. The flags can be accessed by wrapping the returned Integer in a FHBitSet.
Returns: CRMScript.Global.Integer
Example:

getName()

Returns the descriptive name (not the database name) of the current field.
Returns: CRMScript.Global.String Example:

getParam(String,String)

This function returns the value of the given parameter.
Returns: CRMScript.Global.String
Available values:

getTableName()

Returns the name of the table the current field belongs to.
Returns: CRMScript.Global.String - The table the current field belongs to. Example:

getTicketChildrenFields()

This is a helper function for getting ticket relation fields. It is equivalent to calling getChildrenFields(18, 0).
Returns: CRMScript.Global.Void

next()

This function moves to the next field in the result.
Returns: CRMScript.Global.Void
A common usage is in the increment section in a for loop.
Example: