Search Results for field

 

NewFields

Takes two parameters, FieldBase, FieldNames

 

CopyFields

Takes two parameters, DestinationFields, SourceFields

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

[New] Field

Takes one parameter, a comma separated list of FieldNames

 

MergeFields

Takes 4 parameters, FieldBase, Destination, SourceFields, Delimiter

 

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

 

PickFirstField

Takes three parameters, FieldBase, Destination, SourceFields

 

ResetFields

Takes two parameters, FieldBase, FieldNames

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

DeleteTableField

Takes two parameters, a FieldBase and FieldNamesList

 

DeleteFields

Takes two parameters, FieldBase, FieldNameList

 

[Pull] List of Fields from another Query

Takes up to three parameters, QueryName, FieldBase, FieldNames

 

LTrimFields

Takes one parameter, FieldBaseToTrim

 

TopField

Takes one parameter, FieldName

 

FieldDef$

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

 

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.

 

IsValidDBField$

Takes one parameter, a Source value

 

MakeValidDBField$

Takes one parameter, Source value

 

[Ensure] Field Exists

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

 

FixFields

Takes one parameter, a single character

 

GetFieldDefs

Has no parameters.

 

[WQFieldList]

Has no parameters

 

[TQFieldList]

Takes no parameters

 

LoadTableFields

Takes one parameter, TableName

 

[Reset] Fields

Has no parameters

 

 

 

 

 

 

[Custom] HTML Field Attribute

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

 

[Sort] (DB Field Attribute)

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

 

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

 

[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

 

 

[Time] (DB Field Attribute)

Has no parameters.

 

 

 

[#] Format (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

 

[Date] (DB Field Attribute)

Has no parameters.

 

TopWith

Takes one parameter, FieldBase

 

WorkIf

Takes one parameter, FieldName

 

If (Not) / Then

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

 

WithAll

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

 

ForeignWith

Takes a single parameter, a FieldBase

 

JoinQuery

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

 

TopQuery

Takes one parameter, FieldBase

 

WithGroup

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

 

MergeRecords

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

 

Lookup$

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

 

Group

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

 

Images

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

 

Format

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

 

Lookup

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

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Files

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

 

Lang$

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

KeepIfSimilar

Takes 3 parameters, FieldBase, pOne, pTwo

 

KeepUnique

Takes two parameters, WorkFieldBase, UniqueValueField

 

WorkWith

Takes one parameter, FieldBase

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

KeepIfAll

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

 

KeepIfAny

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

 

Num

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

 

SetIf

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

 

SetNew

Takes two parameters, FieldName, FieldValue

 

[Raw] Raw HTML

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

 

[DatePicker]

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

 

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

[SearchSort]

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

 

Sort

Takes two parameters, FieldBase, SortFieldList

 

SetEnsure

Takes two parameters, FieldName, Value

 

[Header] Raw HTML

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

 

SetFirst

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

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

 

SendEmail

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

 

 

Set

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

[Footer] Raw HTML

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

 

Pivot

Takes two parameters, FieldBase, PivotField

 

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

 

Text

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

 

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

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

SetIfAny

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

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

SetLast

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

Pull

Takes three parameters, QueryName, FieldBase, FieldNames

 

SetIfAll

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

 

Offset

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

 

Value

Takes four parameters, FieldBase, Destination, Function, IfLenFld

 

Parse

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

 

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

 

Build

Takes a variable number of parameters

 

HtmlTable

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

 

Update

A database command which takes two parameters, TableName, IfLenFld

 

NamesToLabels

Takes no parameters

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

PWHash

Takes three parameters, TableName, Alias, Password

 

HtmlNavbar

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

 

HtmlNav

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

 

Reset

Takes no parameters.

 

LoadRawFile

Takes one parameter, FilePath

 

TabStream

Takes two parameters, Data, bHasHeader

 

LoadMemUsage

Has no parameters

 

SSReference

A command to help build spreadsheets

 

Math

Takes a variable number of parameters

 

NulStream

Takes two parameters, Data, bHasHeader

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

XmlStream

Takes one parameter, Data

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

SaveTabFile

Takes two parameters, FileName, bUseHeaders

 

SaveRawFile

Takes two parameters, FileName, bUseHeaders

 

HtmlDropdown

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

 

JsonStream

Used to manipulate a WorkQuery into a JSON type

 

HtmlForm

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

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

ListQueries

Takes no parameters

 

SaveJsonFile

Takes two parameters, FileName, Options

 

SaveNulFile

Takes two parameters, FileName, bUseHeader

 

KeepNone

Takes no parameters

 

Parents

Takes three parameters, ChildTableName, ParentTableName, Mode

 

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.

 

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.

 

[State] Error State

Takes one parameter.

 

[Score] 0.0 to 10

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

 

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.

 

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

 

LangWith

Has one parameter, a Content.Lang prefix

 

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

Takes a variable number of conditional statements

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

AjaxReply

Has no parameters

 

File

Takes 3 parameters, Destination, Action, Source

 

FailIfRecError

Has no parameters

 

[R] Readonly

Has no parameters.

 

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.

 

 

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.

 

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.

 

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.

 

 

 

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.

 

[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

 

[Ajax]

Takes 3 parameters, Trigger, DestinationID, Path

 

Templates Documentation

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

 

[Markdown]

Has no parameters.

 

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

 

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

 

LastAny$

Takes two parameters, Source , Search

 

Last$

Takes two parameters, Source , Search

 

NulStream$

Takes one parameter, bNoHeader

 

LongDate$

Takes one parameter, a Date value

 

Detach

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

 

Delete

Takes two parameters, TableName and a boolean expression

 

New

Takes two parameters, TableName, IfLenFld

 

Get

Takes one parameter, a TableName

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

AppendTable

Takes one parameter, TableName

 

Children

Takes two parameters, ChildTableName, Mode

 

Backfill

Has no parameters

 

JsonStream$

Used to manipulate a WorkQuery into a JSON type

 

Return

Takes a variable number of parameters.

 

ProcECom

Takes one parameter, QueryName

 

[CountIf]

Takes one parameter, TestCondition

 

[AnyRecError]

Takes no parameters.

 

MapQuery

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

 

LookupQuery

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

 

OnError (Continue)

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

 

NewEComQuery

Takes one parameter, QueryName

 

[WQMessage]

Takes one parameter, Message, or no parameters

 

[WQFldCount]

Takes no parameters

 

CsvStream$

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

 

[WQResult]

Takes either one parameter, ResultValue, or no parameters

 

[TQFldCount]

Takes no parameters

 

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

 

[TQResult]

Takes either one parameter, ResultValue, or no parameters

 

[TQMessage]

Takes one parameter, Message, or no parameters