Search Results for query

 

NewEComQuery

Takes one parameter, QueryName

 

MoveQuery

Takes two parameters, DestinationQuery, SourceQuery

 

NewQuery

Takes 3 parameters, QueryName, SourceQuery, bWork

 

WorkQuery

Takes one parameter, QueryName

 

[Pull] List of Fields from another Query

Takes up to three parameters, QueryName, FieldBase, FieldNames

 

MapQuery

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

 

CopyQuery

Takes two parameters, destinationQuery, sourceQuery

 

DeleteQuery

Takes one parameter, the name of the query

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

LookupQuery

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

 

JoinQuery

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

 

TopQuery

Takes one parameter, FieldBase

 

 

 

 

 

 

 

[$] Currency (Top Query)

Takes one parameter, Source

 

[Date] (Top Query)

Has no parameters

 

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

 

 

Foreign

Takes a single parameter, a QueryName

 

[Time] (Top Query)

Has no parameters

 

JsonStream

Used to manipulate a WorkQuery into a JSON type

 

JsonStream$

Used to manipulate a WorkQuery into a JSON type

 

ForEach

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

 

Pull

Takes three parameters, QueryName, FieldBase, FieldNames

 

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

 

Remote

Takes three parameters, Url, InputQuery, OutputQuery

 

 

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

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

 

[_#] Format if not blank (Top Query)

Takes 1 parameter, a formatting mask

 

 

[#] Format (Top Query)

Takes 1 parameter, a formatting mask

 

ProcECom

Takes one parameter, QueryName

 

[DateTime] (Top Query)

Has no parameters

 

[Ensure] Field Exists

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

 

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.

 

CopyFirst

Takes two parameters, DestinationQuery, SourceQuery

 

QBox

Takes two parameters, QueryName, Title

 

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

 

FixFields

Takes one parameter, a single character

 

Files

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

 

Group

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

 

Folders

Takes a single variable, the relative path to the directory from root of project

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

Discard

Has no parameters

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

HtmlTab

Takes 3 parameters, Location, Mode, bWithNoHeader

 

HtmlForm

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

 

HtmlNav

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

 

HtmlDTable

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

 

HtmlETable

Takes 6 parameters, Location, Mode, Div, Data, Script, Extra

 

HtmlRaw

Takes 3 parameters, Location, Mode, bWithNoHeader

 

KeepFirst

Takes no parameters

 

KeepFor

Takes two parameters, FromIndex, ToIndex

 

HtmlNavbar

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

 

Lookup

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

 

LoadTableFields

Takes one parameter, TableName

 

HtmlTable

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

 

New

Takes two parameters, TableName, IfLenFld

 

Get

Takes one parameter, a TableName

 

Detach

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

 

LoadTable

Takes one parameter, TableName

 

LoadRecord

Takes two parameters, TableName, RecordAlias

 

Parents

Takes three parameters, ChildTableName, ParentTableName, Mode

 

Children

Takes two parameters, ChildTableName, Mode

 

CsvStream

Takes two parameters, CSVData, bNoHeaders

 

DeleteFields

Takes two parameters, FieldBase, FieldNameList

 

Backfill

Has no parameters

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Delete

Takes two parameters, TableName and a boolean expression

 

UpdateOrNew

A database command which takes two parameters, TableName, IfLenFld

 

Update

A database command which takes two parameters, TableName, IfLenFld

 

HtmlDropdown

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

 

SaveRawFile

Takes two parameters, FileName, bUseHeaders

 

SaveTabFile

Takes two parameters, FileName, bUseHeaders

 

SaveJsonFile

Takes two parameters, FileName, Options

 

SaveNulFile

Takes two parameters, FileName, bUseHeader

 

SetNew

Takes two parameters, FieldName, FieldValue

 

Sort

Takes two parameters, FieldBase, SortFieldList

 

SetEnsure

Takes two parameters, FieldName, Value

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

MergeRecords

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

 

Offset

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

 

NulStream

Takes two parameters, Data, bHasHeader

 

Reset

Takes no parameters.

 

Pivot

Takes two parameters, FieldBase, PivotField

 

NewRecords

Takes one parameter, QuantityToAdd

 

NewFields

Takes two parameters, FieldBase, FieldNames

 

ResetFields

Takes two parameters, FieldBase, FieldNames

 

SaveCsvFile

Takes one parameter, FilePath

 

WithGroup

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

 

KeepIfAll

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

 

KeepIfAny

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

 

WithAll

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

 

GetFieldDefs

Has no parameters.

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

XmlStream

Takes one parameter, Data

 

Text

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

 

ListQueries

Takes no parameters

 

ListFolders

Takes two parameters, FolderPath, bRecursive

 

LoadRawFile

Takes one parameter, FilePath

 

LoadJsonFile

Takes one parameter, PathToFile

 

KeepLast

Takes no parameters

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

ListFiles

Takes 3 parameters, Folder, Filter, bShowImgSize

 

TabStream

Takes two parameters, Data, bHasHeader

 

ForeignWith

Takes a single parameter, a FieldBase

 

Function

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

 

If (Not) / Then

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

 

Folder

Takes two parameters, FolderPath, Action

 

ETableReply

Takes 2 parameters, Result, Status

 

FailIfRecError

Has no parameters

 

File

Takes 3 parameters, Destination, Action, Source

 

OnError (Continue)

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

 

TopField

Takes one parameter, FieldName

 

TopWith

Takes one parameter, FieldBase

 

WorkIf

Takes one parameter, FieldName

 

ServerLog

Takes one parameter, ServerLogText

 

[Reset] Fields

Has no parameters

 

Return

Takes a variable number of parameters.

 

SaveFile

Takes two parameters, FileName, FileData

 

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.

 

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

 

[Temp] Field

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

 

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.

 

 

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.

 

 

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.

 

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.

 

CFPurge

Takes one parameter, the string URL to send to CloudFlare's API

 

Error

Takes one parameter, the text of the error to throw.

 

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.

 

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.

 

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.

 

HttpSoap$

Takes 8 parameters, ServerName, Port, bSecure, Path, ExtraHttpHeaders, Envelope, ExtraBody, xml

 

Lang$

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

LongDate$

Takes one parameter, a Date value

 

FieldDef$

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

 

[WQResult]

Takes either one parameter, ResultValue, or no parameters

 

CFApi$

Takes one parameter, a string parameter of the desired API command

 

CsvStream$

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

 

NulStream$

Takes one parameter, bNoHeader

 

Raw

Takes one parameter, the contents of which are used for the HTTP Reply Body

 

AppendTable

Takes one parameter, TableName

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

HttpCookie

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

 

Parse$

Takes four parameters, Source, bAny, Search, Item

 

WebSafe$

Takes one parameter, Source

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

[TQFieldList]

Takes no parameters

 

[TQFldCount]

Takes no parameters

 

[TQMessage]

Takes one parameter, Message, or no parameters

 

[Me]

Takes no parameters

 

WorkWith

Takes one parameter, FieldBase

 

[AnyRecError]

Takes no parameters.

 

[CountIf]

Takes one parameter, TestCondition

 

[TQName]

Has no parameters

 

[WQMessage]

Takes one parameter, Message, or no parameters

 

[WQName]

Has no parameters

 

[WQRecCount]

Has no parameters

 

[WQFldCount]

Takes no parameters

 

[TQRecCount]

Has no parameters

 

[TQResult]

Takes either one parameter, ResultValue, or no parameters

 

[WQFieldList]

Has no parameters