Search Results for field

 

TopField

Takes one parameter, FieldName

 

[Pull] List of Fields from another Query

Takes three parameters, QueryName, FieldBase, FieldNames

 

FieldDef$

Takes one parameter, FieldName

 

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.

 

[TQFieldList]

Takes no parameters

 

[WQFieldList]

Has no parameters

 

[Ensure] Field Exists

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

 

[Reset] Fields

Has no parameters

 

FixFields

Takes one parameter, a single character

 

GetFieldDefs

Has no parameters.

 

LoadTableFields

Takes one parameter, TableName

 

IsValidDBField$

Takes one parameter, a Source value

 

MakeValidDBField$

Takes one parameter, Source value

 

[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

 

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

Takes 1 parameter, a formatting mask

 

 

 

[Time] (DB Field Attribute)

Has no parameters.

 

[L] Lookup (DB Field Attribute)

Takes one parameter.

 

 

[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 (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

Parse

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

 

Using the Backtick `

Some Work Query command parameters can accept a source of either a Work Query Field name or a text literal. Text literals in these cases are prefixed with a backtick ` character.

 

Offset

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

 

Num

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

 

WorkWith

Takes one parameter, FieldBase

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Pivot

Takes two parameters, FieldBase, PivotField

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

JoinQuery

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

 

Pull

Takes three parameters, QueryName, FieldBase, FieldNames

 

TopWith

Takes one parameter, FieldBase

 

WorkIf

Takes one parameter, FieldName

 

TopQuery

Takes one parameter, FieldBase

 

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

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

Images

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

 

Group

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

 

KeepIfAll

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

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Lookup

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

 

Format

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

 

Files

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

 

KeepUnique

Takes one parameter, FieldName

 

Lang$

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

MergeRecords

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

 

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

 

KeepIfAny

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

 

Lookup$

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

 

KeepIfSimilar

Takes 3 parameters, FieldBase, pOne, pTwo

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

Sort

Takes two parameters, FieldBase, SortFieldList

 

[Footer] Raw HTML

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

 

Text

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

 

SetIfAny

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

 

SetLast

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SetNew

Takes four parameters, FieldBase, FieldName, Source, IfLenFld

 

[Header] Raw HTML

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

 

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

 

WithAll

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

 

WithGroup

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

 

Value

Takes four parameters, FieldBase, Destination, Function, IfLenFld

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

 

 

SendEmail

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

 

ForeignWith

Takes a single parameter, a FieldBase

 

If (Not) / Then

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

 

[Raw] Raw HTML

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

 

[SearchSort]

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

 

SetFirst

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SetIfAll

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

 

SetIf

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

 

SetEnsure

Takes two parameters, FieldName, Value

 

Set

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

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

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

 

HtmlNav

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

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

HtmlForm

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

 

JsonStream

Used to manipulate a WorkQuery into a JSON type

 

HtmlDropdown

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

 

HtmlNavbar

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

 

Parents

Takes three parameters, ChildTableName, ParentTableName, Mode

 

PWHash

Takes three parameters, TableName, Alias, Password

 

NamesToLabels

Takes no parameters

 

HtmlTable

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

 

Update

Takes two parameters, TableName, IfLenFld

 

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.

 

HtmlRaw

Takes 3 parameters, Location, Mode, bWithNoHeader

 

Build

Takes a variable number of parameters

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

TabStream

Takes two parameters, Data, bHasHeader

 

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

 

SaveNulFile

Takes two parameters, FileName, bUseHeader

 

SaveRawFile

Takes two parameters, FileName, bUseHeaders

 

SaveJsonFile

Takes two parameters, FileName, Options

 

SaveTabFile

Takes two parameters, FileName, bUseHeaders

 

Reset

Takes no parameters.

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

ListFiles

Takes 3 parameters, Folder, Filter, bShowImgSize

 

KeepNone

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

 

XmlStream

Takes one parameter, Data

 

LoadNulFile

Takes two parameters, FileName, bHasHeader

 

LoadRawFile

Takes one parameter, FilePath

 

LoadMemUsage

Has no parameters

 

ListQueries

Takes no parameters

 

LoadCsvFile

Takes two parameters, FileName, bHasHeader

 

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

 

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

Takes a variable number of conditional statements

 

LookupQuery

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

 

LangWith

Has one parameter, a Content.Lang prefix

 

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.

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

[Ajax]

Takes 3 parameters, Trigger, DestinationID, Path

 

File

Takes 3 parameters, Destination, Action, Source

 

FailIfRecError

Has no parameters

 

Return

Takes a variable number of parameters.

 

Get Started with Setting up the Development Environment

Developing in Moxie.Build on localhost give you the advantage of working with the template files natively. When working on procedures (MOX code) you need to access that through the Procedures page in the Admin area of a Moxie.Build system, if running the server on localhost or on a remote server. When running on a remote server, you can edit the template files via the Files page in the Admin area.

 

CloudFlare Integration

CloudFlare is a first and foremost a Web Application Firewall and Content Distribution Network, among other additional services

 

[CountIf]

Takes one parameter, TestCondition

 

[AnyRecError]

Takes no parameters.

 

 

MapQuery

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

 

NewEComQuery

Takes one parameter, QueryName

 

ProcECom

Takes one parameter, QueryName

 

OnError (Continue)

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

 

[Placeholder]

Takes one parameter

 

[MText] Multiline Text Editor

Accepts one optional numeric value as a parameter

 

[R] Readonly

Has no parameters.

 

 

[Score] 0.0 to 10

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

 

[DatePicker]

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

 

[Markdown]

Has no parameters.

 

[MaxLen]

Accepts a numeric value as a parameter.

 

[Max]

Accepts a numeric value as a parameter.

 

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.

 

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.

 

AjaxReply

Has no parameters

 

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.

 

 

[State] Error State

Takes one parameter.

 

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.

 

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.

 

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

 

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

 

LongDate$

Takes one parameter, a Date value

 

Len%

Takes one parameter, a Source value

 

NulStream$

Takes one parameter, bNoHeader

 

Templates Documentation

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

 

Get

Takes two parameters, TableName, IfLenFld

 

Detach

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

 

New

Takes two parameters, TableName, IfLenFld

 

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.

 

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

 

LastAny$

Takes two parameters, Source, Search

 

[TQResult]

Takes either one parameter, ResultValue, or no parameters

 

[WQFldCount]

Takes no parameters

 

[WQMessage]

Takes one parameter, Message, or no parameters

 

[L] Lookup (Top Query)

Takes one parameter.

 

[TQFldCount]

Takes no parameters

 

[TQMessage]

Takes one parameter, Message, or no parameters

 

[WQResult]

Takes either one parameter, ResultValue, or no parameters

 

JsonEncode$

Has two parameters: Source, Options

 

Last$

Takes two parameters, Source , Search

 

JsonStream$

Has one parameter, Options

 

CsvStream$

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