Search Results for query

 

JoinQuery

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

 

LookupQuery

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

 

DeleteQuery

Takes one parameter, the name of the query

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

CopyQuery

Takes two parameters, destinationQuery, sourceQuery

 

MapQuery

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

 

[Pull] List of Fields from another Query

Takes three parameters, QueryName, FieldBase, FieldNames

 

WorkQuery

Takes one parameter, QueryName

 

NewQuery

Takes 3 parameters, QueryName, SourceQuery, bWork

 

MoveQuery

Takes two parameters, DestinationQuery, SourceQuery

 

NewEComQuery

Takes one parameter, QueryName

 

Query Based Routing Example

For small and simple procedures that are not expected to grow in complexity over time, simple routing based on URL parameter values from a [Pull] directly from the Request query is sufficient and requires less code. For complex procedures that are expected to grow and evolve over time, a larger more robust foundation for the routing should be used.

 

TopQuery

Takes one parameter, FieldBase

 

 

 

 

 

 

 

[$] Currency (Top Query)

Takes one parameter, Source

 

[Date] (Top Query)

Has no parameters

 

[L] Lookup (Top Query)

Takes one parameter.

 

Pull

Takes three parameters, QueryName, FieldBase, FieldNames

 

[Ensure] Field Exists

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

 

CopyFirst

Takes two parameters, DestinationQuery, SourceQuery

 

[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

 

Foreign

Takes a single parameter, a QueryName

 

[Time] (Top Query)

Has no parameters

 

 

ForEach

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

 

ProcECom

Takes one parameter, QueryName

 

PaaS

Takes three parameters, Url, SaaSTenant, InputQuery, OutputQuery

 

JsonStream

Used to manipulate a WorkQuery into a JSON type

 

Trigger

Takes two parameter, URL, InputQuery

 

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

Takes 1 parameter, a formatting mask

 

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

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

 

RawStream$

Takes one parameter, a top query destination variable

 

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.

 

 

[#] Format (Top Query)

Takes 1 parameter, a formatting mask

 

[DateTime] (Top Query)

Has no parameters

 

 

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.

 

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

 

QBox

Takes two parameters, QueryName, Title

 

KeepFirst

Takes no parameters

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

KeepFor

Takes two parameters, FromIndex, ToIndex

 

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

 

LoadTableFields

Takes one parameter, TableName

 

LoadTable

Takes one parameter, TableName

 

LoadRecord

Takes two parameters, TableName, RecordAlias

 

Parents

Takes three parameters, ChildTableName, ParentTableName, Mode

 

New

Takes two parameters, TableName, IfLenFld

 

Lookup

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

 

Children

Takes two parameters, ChildTableName, Mode

 

Backfill

Has no parameters

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

Get

Takes two parameters, TableName, IfLenFld

 

Detach

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

 

Delete

Takes two parameters, TableName and a boolean expression

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Files

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

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

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

 

FixFields

Takes one parameter, a single character

 

CsvStream

Takes two parameters, CSVData, bNoHeaders

 

UpdateOrNew

Takes two parameters, TableName, IfLenFld

 

Update

Takes two parameters, TableName, IfLenFld

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

Discard

Has no parameters

 

DeleteFields

Takes two parameters, FieldBase, FieldNameList

 

GetFieldDefs

Has no parameters.

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

ResetFields

Takes two parameters, FieldBase, FieldNames

 

SaveJsonFile

Takes two parameters, FileName, Options

 

SaveCsvFile

Takes one parameter, FilePath

 

Offset

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

 

NulStream

Takes two parameters, Data, bHasHeader

 

Pivot

Takes two parameters, FieldBase, PivotField

 

HtmlDropdown

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

 

Reset

Takes no parameters.

 

SaveNulFile

Takes two parameters, FileName, bUseHeader

 

Text

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

 

TabStream

Takes two parameters, Data, bHasHeader

 

WithAll

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

 

XmlStream

Takes one parameter, Data

 

WithGroup

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

 

SaveTabFile

Takes two parameters, FileName, bUseHeaders

 

SaveRawFile

Takes two parameters, FileName, bUseHeaders

 

SetEnsure

Takes two parameters, FieldName, Value

 

Sort

Takes two parameters, FieldBase, SortFieldList

 

SetNew

Takes four parameters, FieldBase, FieldName, Source, IfLenFld

 

NewRecords

Takes one parameter, QuantityToAdd

 

LoadCsvFile

Takes two parameters, FileName, bHasHeader

 

ListQueries

Takes no parameters

 

LoadJsonFile

Takes one parameter, PathToFile

 

LoadNulFile

Takes two parameters, FileName, bHasHeader

 

LoadMemUsage

Has no parameters

 

KeepLast

Takes no parameters

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

HtmlTable

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

 

ListFolders

Takes two parameters, FolderPath, bRecursive

 

ListFiles

Takes 3 parameters, Folder, Filter, bShowImgSize

 

HtmlTab

Takes 3 parameters, Location, Mode, bWithNoHeader

 

HtmlETable

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

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

HtmlDTable

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

 

NewFields

Takes two parameters, FieldBase, FieldNames

 

MergeRecords

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

 

HtmlRaw

Takes 3 parameters, Location, Mode, bWithNoHeader

 

LoadRawFile

Takes one parameter, FilePath

 

HtmlNavbar

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

 

HtmlForm

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

 

HtmlNav

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

 

If (Not) / Then

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

 

Function

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

 

OnError (Continue)

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

 

Macro

A set of instructions that can be called with parameters to run in the current scope.

 

File

Takes 3 parameters, Destination, Action, Source

 

FailIfRecError

Has no parameters

 

ForeignWith

Takes a single parameter, a FieldBase

 

Folder

Takes two parameters, FolderPath, Action

 

TopWith

Takes one parameter, FieldBase

 

TopField

Takes one parameter, FieldName

 

WorkWith

Takes one parameter, FieldBase

 

WorkIf

Takes one parameter, FieldName

 

Return

Takes a variable number of parameters.

 

[Reset] Fields

Has no parameters

 

ServerLog

Takes one parameter, ServerLogText

 

SaveFile

Takes two parameters, FileName, FileData

 

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

 

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.

 

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.

 

[Temp] Field

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

 

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.

 

 

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.

 

 

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.

 

ETableReply

Takes 2 parameters, Result, Status

 

Error

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

 

PaaS Method

A PaaS Method may be called by any other Moxie system. In order to call a PaaS Method from MOX, the PaaS 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 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.

 

CloudFlare Integration

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

 

JsonStream$

Has one parameter, Options

 

JsonEncode$

Has two parameters: Source, Options

 

Len%

Takes one parameter, a Source value

 

Lang$

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

CsvStream$

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

 

CFApi$

Takes three parameters Method, URL, Body

 

HttpSoap$

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

 

FieldDef$

Takes one parameter, FieldName

 

HttpCookie

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

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

AppendTable

Takes one parameter, TableName

 

Raw

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

 

NulStream$

Takes one parameter, bNoHeader

 

LongDate$

Takes one parameter, a Date value

 

WebSafe$

Takes one parameter, Source

 

Parse$

Takes four parameters, Source, bAny, Search, Item

 

[TQMessage]

Takes one parameter, Message, or no parameters

 

[TQFldCount]

Takes no parameters

 

[TQRecCount]

Has no parameters

 

[TQName]

Has no parameters

 

[CountIf]

Takes one parameter, TestCondition

 

[AnyRecError]

Takes no parameters.

 

[TQFieldList]

Takes no parameters

 

[Me]

Takes no parameters

 

[WQRecCount]

Has no parameters

 

[WQName]

Has no parameters

 

ApplyLang$

Takes one parameter

 

[WQResult]

Takes either one parameter, ResultValue, or no parameters

 

[WQFieldList]

Has no parameters

 

[TQResult]

Takes either one parameter, ResultValue, or no parameters

 

[WQMessage]

Takes one parameter, Message, or no parameters

 

[WQFldCount]

Takes no parameters