Search Results for field

 

TopField

Takes one parameter, FieldName

 

[Pull] List of Fields from another Query

Takes up to three parameters, QueryName, FieldBase, FieldNames

 

FieldDef$

Takes a single parameter, in the format of TableName.FieldName#Deff where Deff is one of: Label, Attr, Note, or DevNote

 

DeleteFields

Takes two parameters, FieldBase, FieldNameList

 

DeleteTableField

Takes two parameters, a FieldBase and FieldNamesList

 

[Temp] Field

Parameter is a single new field name or a space separated list of new field names.

 

[SearchFieldList]

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

 

[FieldList]

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

 

[New] Field

Takes one parameter, a comma separated list of FieldNames

 

CopyFields

Takes two parameters, DestinationFields, SourceFields

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

MergeFields

Takes 4 parameters, FieldBase, Destination, SourceFields, Delimiter

 

NewFields

Takes two parameters, FieldBase, FieldNames

 

ResetFields

Takes two parameters, FieldBase, FieldNames

 

PickFirstField

Takes three parameters, FieldBase, Destination, SourceFields

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

LTrimFields

Takes one parameter, FieldBaseToTrim

 

LFillFields

Takes one parameter, a FieldBase

 

[+] 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.

 

LoadTableFields

Takes one parameter, TableName

 

FixFields

Takes one parameter, a single character

 

IsValidDBField$

Takes one parameter, a Source value

 

MakeValidDBField$

Takes one parameter, Source value

 

[Reset] Fields

Has no parameters

 

[Ensure] Field Exists

Takes a variable number of parameters, a comma separated list of TopQuery variable names

 

[TQFieldList]

Takes no parameters

 

GetFieldDefs

Has no parameters.

 

[WQFieldList]

Has no parameters

 

 

 

 

 

 

[Custom] HTML Field Attribute

Allows any extra HTML Attributes to be specified in the Control's HTML Tag

 

[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.

 

[Sort] (DB Field Attribute)

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

 

 

 

[Time] (DB Field Attribute)

Has no parameters.

 

 

[Date] (DB Field Attribute)

Has no parameters.

 

 

[If] Assignment (DB Field Attribute)

Parameter is divided into two parts, the Test and the Result if True. The test comes prior to the keyword of Then and the Result if True comes after.

 

[_#] Format if not blank (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

[#] Format (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

WorkWith

Takes one parameter, FieldBase

 

JoinQuery

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

 

Pull

Takes three parameters, QueryName, FieldBase, FieldNames

 

WorkIf

Takes one parameter, FieldName

 

Parse

Takes seven parameters, FieldBase, Destination, Source, bAny, Delimiter, Item, IfLenFld

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Pivot

Takes two parameters, FieldBase, PivotField

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

TopQuery

Takes one parameter, FieldBase

 

TopWith

Takes one parameter, FieldBase

 

Offset

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

 

Num

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

 

Group

Takes 7 parameters, FieldBase, GroupBy, GroupTotals, GrandTotals, Seperator, TotalPre, TotalPost

 

Images

Takes up to 6 parameters, FieldBase, FileName, Action, Val1, Val2, IfLenField

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

Format

Takes five parameters, FieldBase, FieldList, Mask, bBlanks2Zero, IfLenFld

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Lookup

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

 

Files

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

 

KeepIfAll

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

 

Lang$

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

KeepUnique

Takes two parameters, WorkFieldBase, UniqueValueField

 

MergeRecords

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

 

KeepIfSimilar

Takes 3 parameters, FieldBase, pOne, pTwo

 

KeepIfAny

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

 

Lookup$

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

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

If (Not) / Then

Takes a single Field name, with an optional Not operator, followed by the conditional statement

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

WithAll

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

 

[SearchSort]

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

 

 

SetNew

Takes two parameters, FieldName, FieldValue

 

Sort

Takes two parameters, FieldBase, SortFieldList

 

WithGroup

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

 

[!] Limited Selection List

Parameter is a comma separated list (using CSV rules and not in quotes) of the options made available to the user which are 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 the field 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.

 

Value

Takes four parameters, FieldBase, Destination, Function, IfLenFld

 

Text

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

 

[Header] Raw HTML

Accepts one parameter which is the raw HTML content to be placed in the form, above the Field's location.

 

[DatePicker]

No parameters, provides a user friendly date picker as the input field for a given Field.

 

 

[Footer] Raw HTML

Accepts one parameter which is the raw HTML content to be placed in the form, below the Field's location.

 

SendEmail

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

 

Set

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SetEnsure

Takes two parameters, FieldName, Value

 

ForeignWith

Takes a single parameter, a FieldBase

 

[Raw] Raw HTML

Accepts one parameter which is the raw HTML content to be placed in the form at the Field's location.

 

[A] Copy Attached Value

Parameter must first specify only looking at Parents ( PARENT ) or only looking at Children ( CHILD ). The remainder of the parameter should be the table and field name you are after in the form of TableName.FieldName.

 

[AccKey] Keyboard Accelorator Key

Takes one parameter which is the keyboard key which will be used as the Access Key for a given Database Table's field.

*Note: By default, each Field's Access Key will be initialized to the first character of the Field's Label.

 

SetFirst

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SetIfAll

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

 

SetIfAny

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

 

SetLast

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SetIf

Takes six parameters, FieldBase, Destination, Source, Left, Comparison, Right

 

[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.

 

[_$] Currency if not blank (Top Query)

Has no parameters. If the field is blank it will remain blank.

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

HtmlDropdown

Takes 5 parameters, Location, Mode, Title, Element, Class

 

HtmlForm

Takes 6 parameters, Location, Mode, ActionLabel, ActionPath, Class, ActionMethod

 

HtmlNavbar

Takes 10 parameters, Location, Mode, Title, TitleLink, Class, Fixed, bNotResponsive, bInverted, HtmlPre, HtmlApn

 

Update

A database command which takes two parameters, TableName, IfLenFld

 

NamesToLabels

Takes no parameters

 

HtmlTable

Takes 6 parameters, Location, Mode, Class, bNoHeader, bNoAutoAlign, bNoIDTags

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

JsonStream

Used to manipulate a WorkQuery into a JSON type

 

HtmlNav

Takes 7 parameters, Location, Mode, Title, TitleLink, Class, HtmlPre, HtmlApn

 

Build

Takes a variable number of parameters

 

SSReference

A command to help build spreadsheets

 

NulStream

Takes two parameters, Data, bHasHeader

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

Math

Takes a variable number of parameters

 

SaveTabFile

Takes two parameters, FileName, bUseHeaders

 

SaveJsonFile

Takes two parameters, FileName, Options

 

SaveNulFile

Takes two parameters, FileName, bUseHeader

 

SaveRawFile

Takes two parameters, FileName, bUseHeaders

 

Reset

Takes no parameters.

 

LoadRawFile

Takes one parameter, FilePath

 

KeepNone

Takes no parameters

 

ListFiles

Takes 3 parameters, Folder, Filter, bShowImgSize

 

XmlStream

Takes one parameter, Data

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

ListQueries

Takes no parameters

 

TabStream

Takes two parameters, Data, bHasHeader

 

LoadNulFile

Takes two parameters, FileName, bHasHeader

 

LoadCsvFile

Takes two parameters, FileName, bHasHeader

 

LoadMemUsage

Has no parameters

 

PWHash

Takes three parameters, TableName, Alias, Password

 

File

Takes 3 parameters, Destination, Action, Source

 

FailIfRecError

Has no parameters

 

Function

A special type of Private Method, called a Private Function, is intended to return a single value or multiple values simultaneously.

 

ForEach

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

 

 

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.

 

Remote Method

A Remote Method may be called by any other Moxie system. It can be used to divide up a large system among a number of backend servers, or as a public API for 3rd parties. In order to call a Remote Method from MOX, the Remote statement is used.

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

AjaxReply

Has no parameters

 

If (Not) / And / Or / ElseIf / End If

Takes a variable number of conditional statements

 

ProcECom

Takes one parameter, QueryName

 

OnError (Continue)

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

 

Return

Takes a variable number of parameters.

 

Learn More about Frontend Development

Prerequisites: This tutorial assumes that you have already set up a Category and Procedure if necessary. This page covers some of the basics that are involved in Front End development using the MOX language.

 

NewEComQuery

Takes one parameter, QueryName

 

LookupQuery

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

 

LangWith

Has one parameter, a Content.Lang prefix

 

Learn More About Managing Files

Prerequisites: This tutorial assumes that you have already set up your Moxie.Build server and logged in. This page covers some of the basics that are involved in managing files and folders in the Moxie.Build system.

 

MapQuery

Takes five parameters, DestQuery, SourceQuery, SourceXFld, SourceYFld, SourceZFld

 

[MaxLen]

Accepts a numeric value as a parameter.

 

[Max]

Accepts a numeric value as a parameter.

 

[Placeholder]

Accepts one parameter

 

[MText] Multiline Text Editor

Accepts one optional numeric value as a parameter

 

[Markdown]

Has no parameters.

 

Templates Documentation

Prerequisites: This tutorial assumes that you have already learned about Managing Files .

 

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.

 

[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.

 

[Ajax]

Takes 3 parameters, Trigger, DestinationID, Path

 

[R] Readonly

Has no parameters.

 

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.

 

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.

 

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.

 

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.

 

 

Style Guide, Procedures and Code Documentation

In order for source code to be more readily readable across teams, it is recommended that your source code always be styled according to this style guide.

 

[Score] 0.0 to 10

Accepts 3 parameters, first is required, 2nd and 3rd are optional.

 

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.

 

[State] Error State

Takes one parameter.

 

 

HtmlButton

Takes 6 parameters, Location, Mode, ActionLabel, ActionPath, Class, ActionMethod

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

HttpCookie

Takes 6 parameters, Name, Value, Path, Domain, Expires, Other

 

HtmlUpload

Takes seven parameters, Location, Mode, Prompt, Path, Class, Name, HelpText

 

RawStream$

Takes one parameter, a top query destination variable

 

LastAny$

Takes two parameters, Source , Search

 

Last$

Takes two parameters, Source , Search

 

NulStream$

Takes one parameter, bNoHeader

 

LongDate$

Takes one parameter, a Date value

 

Get

Takes one parameter, a TableName

 

Detach

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

 

Parents

Takes three parameters, ChildTableName, ParentTableName, Mode

 

New

Takes two parameters, TableName, IfLenFld

 

Delete

Takes two parameters, TableName and a boolean expression

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

AppendTable

Takes one parameter, TableName

 

Children

Takes two parameters, ChildTableName, Mode

 

Backfill

Has no parameters

 

[TQFldCount]

Takes no parameters

 

[TQMessage]

Takes one parameter, Message, or no parameters

 

[TQResult]

Takes either one parameter, ResultValue, or no parameters

 

[AnyRecError]

Takes no parameters.

 

[CountIf]

Takes one parameter, TestCondition

 

[If] Assignment (Top Query)

Parameter is divided into two parts, the Test and the Result if True. The test comes prior to the keyword of Then and the Result if True comes after.

 

[WQResult]

Takes either one parameter, ResultValue, or no parameters

 

CsvStream$

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

 

[WQMessage]

Takes one parameter, Message, or no parameters

 

JsonStream$

Has one parameter, Options

 

[WQFldCount]

Takes no parameters