Search Results for record

 

Record Action

Record Actions are presented to the users of the Default Admin interface and are also intended to be made available in a dynamic way to users of a customized front end. As an Action, the Procedure is expected to perform some sort of task, such as an automated set of updates to the Database Record.

 

Record Report

Record Reports are presented to the users of the Default Admin interface and are also intended to be made available in a dynamic way to users of a customized front end. As a Report, the Procedure is expected to produce output to be displayed to the user.

 

LoadRecord

Takes two parameters, TableName, RecordAlias

 

[&] Count Attached Child Records

Takes 1 Parameter which is the Table name that you want to count the Attached Records in. The specified Table must be a Child of the calling Record's Table.

 

[+] Sum of Field of Attached Child Records

Parameter is the table and field name that you want to sum in the form of TableName.FieldName. The specified Table must be a Child of the calling Record.

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

NewRecords

Takes one parameter, QuantityToAdd

 

MergeRecords

Takes 5 parameters, FieldBase, GroupBy, MergeField, Delimiter, bKeepBlanks

 

[L] Lookup (DB Field Attribute)

Parameter is the database path that is to be looked up in the form of TableName|Alias|FieldName where it may be a specific fixed path or you may use {} to replace one or more of the path components where the value inside the {} is a field name in the current record.

 

Message Handler

A Message Handler is only ever called by the Database on a Database Event. These Event Messages allow a Developer to intercept operations taking place on a per-record level and implement Event based business logic.

 

Exists$

Takes two parameters, DBTableName, DBTableRecordAlias

 

[L] Lookup (Top Query)

Parameter is the database path that is to be looked up in the form of TableName|Alias|FieldName where it may be a specific fixed path or you may use {} to replace one or more of the path components where the value inside the {} is a field name in the current record.

 

[D] Default Value

Parameter is a value or an expression to be used when a record is created if no value is specified during the creation. The value or expression is run through the Assignment Attribute in order to calculate it's result.

 

KeepFor

Takes two parameters, FromIndex, ToIndex

 

KeepLast

Takes no parameters

 

KeepFirst

Takes no parameters

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

KeepIfAll

Takes a variable number of parameters, FieldBase, Test1, Test2, [etc..]

 

KeepIfAny

Takes a variable number of parameters, FieldBase, Test1, Test2, [etc...]

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

PWHash

Takes three parameters, TableName, Alias, Password

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Setup

Takes two parameters, Name, Value

 

Parents

Takes three parameters, ChildTableName, ParentTableName, Mode

 

LoadTableFields

Takes one parameter, TableName

 

Lookup

Takes six parameters, FieldBase, Destination, Table, Alias, SourceField, IfLenFld

 

New

Takes two parameters, TableName, IfLenFld

 

SkipCalls

Takes no parameters

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

JsonStream

Used to manipulate a WorkQuery into a JSON type

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

CsvStream

Takes two parameters, CSVData, bNoHeaders

 

Update

A database command which takes two parameters, TableName, IfLenFld

 

UpdateOrNew

A database command which takes two parameters, TableName, IfLenFld

 

UpdateOrNewWithAttach

A database command which takes four parameters, TableName, Relation, OtherTableName, IfLenFld

 

KeepNone

Takes no parameters

 

TabStream

Takes two parameters, Data, bHasHeader

 

Text

Takes six parameters, FieldBase, Destination, Function, Source, Value, IfLenFld

 

WithAll

Takes five parameters, FieldBase, Destination, Action, Source, IfLenFld

 

SetEnsure

Takes two parameters, FieldName, Value

 

SetFirst

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SetLast

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

GetFieldDefs

Has no parameters.

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

HtmlDTable

Takes 5 parameters, Location, Mode, Class/ID, Init, bNoAutoAlign

 

WithGroup

Takes six parameters, FieldBase, GroupByField, Destination, Action, Source, IfLenFld

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

XmlStream

Takes one parameter, Data

 

SendEmail

Takes 10 parameters, FieldBase, From, To, Subject, Body, bMerge, AttachName, AttachPath, Slow, IfLenFld

 

NewFields

Takes two parameters, FieldBase, FieldNames

 

NulStream

Takes two parameters, Data, bHasHeader

 

Offset

Takes 7 parameters, FieldBase, Destination, Source, OffsetVal, Operator, OpValue, IfLenFld

 

KeepUnique

Takes two parameters, WorkFieldBase, UniqueValueField

 

ListQueries

Takes no parameters

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

SaveNulFile

Takes two parameters, FileName, bUseHeader

 

SaveRawFile

Takes two parameters, FileName, bUseHeaders

 

SaveTabFile

Takes two parameters, FileName, bUseHeaders

 

Pivot

Takes two parameters, FieldBase, PivotField

 

Reset

Takes no parameters.

 

SaveJsonFile

Takes two parameters, FileName, Options

 

FailIfRecError

Has no parameters

 

ForEach

Takes a variable number of parameters, QueryName, MethodName, [Param1, [Param2, etc...]]

 

CopyFirst

Takes two parameters, DestinationQuery, SourceQuery

 

Public Method

A Public Method may be called from any other Procedure, by the Default plug-in, or a Custom COM DLL. Each Public Method may either use specific Input Parameters, or it may accept an Input Query.

 

Table Report

Table Reports are presented to the users of the Default Admin interface and are also intended to be made available in a dynamic way to users of a customized front end. As a Report, the Procedure is expected to produce output to be displayed to the user.

 

GoTo

Takes one parameter, a Label

 

OnError (Continue)

Used as a scoping keyword, similar to WorkWith/End WorkWith .

 

[Reset] Fields

Has no parameters

 

LookupQuery

Takes six parameters, DestQuery, SourceQuery, DestDestFld, DestXFld, DestYFld, SourceYFld

 

JoinQuery

Has 5 parameters, DestinationQuery, SourceQuery, DestinationMatchField, SourceMatchField, Mode

 

LangWith

Has one parameter, a Content.Lang prefix

 

Table Action

Table Actions are presented to the users of the Default Admin interface and are also intended to be made available in a dynamic way to users of a customized front end. As an Action, the Procedure is expected to perform some sort of task, such as an automated set of updates to the Database Table.

 

[!] Limited Selection List

Parameter is a comma separated list (without quotes) of the options made available to the user and enforced on save. If the Parameter is just the single word Checkbox, then instead of a drop down list with values, the user will be given a single checkbox; if it is unchecked the value will be blank, and if it is checked the value will be "y". When used with a Top Query in MOX, this will ensure the field value matches one of the options, if not it will throw a run time error.

 

[SearchFieldList]

Parameter is a space separated list of field names to be displayed when the user is viewing results from the Search List.

 

Syntax and Builtin Values, Procedures and Code Documentation

The MOX language pays heritage to BASIC, but has been crafted for the specific type of work and environment that is demanded of Moxie.Build.

 

 

Overview for PHP Developers

This hands-on experience article is written by an experienced PHP developer, and serves as an overview to help you understand the similarities and differences.

 

[SearchSort]

Parameter is a space separated list of field names to have the display table sorted by when displaying search results.

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

 

 

[Sort] (DB Field Attribute)

Used as a Relationship Attribute, the parameter is a space separated list of field names

 

[FieldList]

Parameter is a space separated list of field names to be displayed.

 

Try / Catch / Finally / End Try

A traditional way to check for hard errors and enable those errors to error softly.

 

AppendTable

Takes one parameter, TableName

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

HtmlHistory

Takes two parameters, Title, Path

 

Tcp$

Takes three parameters, ServerName, Port, bSecure, Send

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

Backfill

Has no parameters

 

EmptyTable

Takes one parameter, the name of a database table

 

Get

Takes one parameter, a TableName

 

Detach

Takes 3 parameters, ParentTableName, ChildTableName, and a boolean expression (optional)

 

Children

Takes two parameters, ChildTableName, Mode

 

Delete

Takes two parameters, TableName and a boolean expression

 

Setup$

Takes one parameter, Name

 

[WQRecCount]

Has no parameters

 

CsvStream$

Takes one parameter bNoHeaders and returns the result to an assigned variable

 

[TQRecCount]

Has no parameters

 

[AnyRecError]

Takes no parameters.

 

[CountIf]

Takes one parameter, TestCondition

 

FirstAlias$

Takes one parameter, TableName

 

Lookup$

Takes one parameter, in the form of: Table|{Alias}|Field

 

NulStream$

Takes one parameter, bNoHeader

 

LastAlias$

Takes one parameter, TableName

 

JsonStream$

Used to manipulate a WorkQuery into a JSON type

 

Lang$

Takes four parameters, FieldBase, Destination, Source, IfLenFld