Search Results for field

 

CopyFields

Takes two parameters, DestinationFields, SourceFields

 

PickFirstField

Takes three parameters, FieldBase, Destination, SourceFields

 

NewFields

Takes two parameters, FieldBase, FieldNames

 

MergeFields

Takes 4 parameters, FieldBase, Destination, SourceFields, Delimiter

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

[SearchFieldList]

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

 

ReorderTableFields

Takes two parameters, TableName, FieldList

 

[Temp] Field

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

 

ResetFields

Takes two parameters, FieldBase, FieldNames

 

[FieldList]

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

 

UpdateTableField

Takes seven parameters, TableName, OldFieldName, NewFieldName, Label, Note, Attr, DevNote

 

LFillFields

Takes one parameter, a FieldBase

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

FieldDef$

Takes one parameter, FieldName

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

[New] Field

Takes one parameter, a comma separated list of FieldNames

 

LTrimFields

Takes one parameter, FieldBaseToTrim

 

[Pull] List of Fields from another Query

Takes three parameters, QueryName, FieldBase, FieldNames

 

TopField

Takes one parameter, FieldName

 

DeleteFields

Takes two parameters, FieldBase, FieldNameList

 

NewTableField

Takes six parameters, TableName, FieldName, Label, Note, Attr, DevNote

 

DeleteTableField

Takes two parameters, a TableName and FieldName

 

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

 

[WQFieldList]

Has no parameters

 

[Custom] HTML Field Attribute

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

 

LoadTableFields

Takes one parameter, TableName

 

GetFieldDefs

Has no parameters.

 

MakeValidDBField$

Takes one parameter, Source value

 

ListFields

Takes one parameter, TableName

 

IsValidDBField$

Takes one parameter, a 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

 

[TQFieldList]

Takes no parameters

 

 

 

[Reset]

Fields

 

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

 

[L] Lookup (DB Field Attribute)

Takes one parameter.

 

[Time] (DB Field Attribute)

Has no parameters.

 

 

[Date] (DB Field Attribute)

Has no parameters.

 

 

 

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

Takes 1 parameter, a formatting mask

 

 

[#] Format (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

ForeignWith

Takes a single parameter, a FieldBase

 

JoinQuery

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

 

WithGroup

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

 

Lookup$

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

 

If (Not) / Then

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

 

MergeRecords

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

 

Lookup

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

 

TopQuery

Takes one parameter, FieldBase

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

JsonEmbed

Has six parameters, UniqueParent, DestField, FieldBase, UniqueChild, EmbedFields, Options

 

KeepIfAll

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

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

Images

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

 

Format

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

 

Files

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

 

Group

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

 

Geo

Takes nine parameters, FieldBase, Destination, Function, Source1, Source2, Source3, Source4, Options, IfLenFld

 

WorkWith

Takes one parameter, FieldBase

 

KeepUnique

Takes one parameter, FieldName

 

TopWith

Takes one parameter, FieldBase

 

WorkIf

Takes one parameter, FieldName

 

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.

 

KeepIfAny

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

 

[ ? ] Pick First (Top Query)

Parameter is a space separated list of fields to choose from

 

KeepIfSimilar

Takes 3 parameters, FieldBase, pOne, pTwo

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

CopyUnique

Takes four parameters, DestinationQuery, SourceQuery, UniqueField, UniqueValue

 

[SearchSort]

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

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

SetIf

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

 

 

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

 

Text

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

 

SetIfAll

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

 

[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

 

Set

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SendEmail

Takes 10 parameters, FieldBase, From, To, Subject, Body, bMerge, AttachName, AttachPath, Slow, 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. To use different values than labels, for each comma separated pair, specify the value first inside of { } followed by the label.

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 this attribute is used with a Top Query in MOX, it will ensure the field value matches one of the options; if not, it will throw a run time error.

 

SetEnsure

Takes two parameters, FieldName, Value

 

[Raw] Raw HTML

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

 

 

[Header] Raw HTML

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

 

[Footer] Raw HTML

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

 

WithAll

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

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Pivot

Takes two parameters, FieldBase, PivotField

 

Sort

Takes two parameters, FieldBase, SortFieldList

 

Num

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

 

Parse

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

 

Offset

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

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Value

Takes four parameters, FieldBase, Destination, Function, IfLenFld

 

SetIfAny

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

 

Time

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

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

Pull

Takes three parameters, QueryName, FieldBase, FieldNames

 

SetNew

Takes four parameters, FieldBase, FieldName, Source, IfLenFld

 

SetLast

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.

 

Get

Takes two parameters, TableName, IfLenFld

 

UpdateTableRltn

Takes eight parameters, TableName, OldOtherTableName, NewOtherTableName, ParentChild, Ratio, Note, Attr, DevNote

 

Build

Takes a variable number of parameters

 

ListTables

Has no parameters

 

Session

Takes two parameters, Name, Value

 

Update

Takes two parameters, TableName, IfLenFld

 

New

Takes two parameters, TableName, IfLenFld

 

UpdateTableProc

Takes ten parameters, TableName, OldProcName, NewProcName, Type, Params, GroupTypes, Label, Note, DevNote, Source

 

PWHash

Takes three parameters, TableName, Alias, Password

 

ParentsAlias

Takes three parameters, ChildTableName, ParentTableName, Mode

 

Parents

Takes three parameters, ChildTableName, ParentTableName, Mode

 

ListProcs

Takes one parameter, TableName

 

ListRltns

Takes one parameter, TableName

 

NewTableProc

Takes nine parameters, TableName, ProcName, Type, Params, GroupTypes, Label, Note, DevNote, Source

 

NewTableRltn

Takes seven parameters, TableName, OtherTableName, ParentChild, Ratio, Note, Attr, DevNote

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

XmlStream

Takes one parameter, Data

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

TabStream

Takes two parameters, Data, bHasHeader

 

SaveRawFile

Takes two parameters, FileName, bUseHeaders

 

SaveTabFile

Takes two parameters, FileName, bUseHeader

 

SSReference

A command to help build spreadsheets

 

HtmlRaw

Takes 3 parameters, Location, Mode, bWithNoHeader

 

HtmlTable

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

 

NamesToLabels

Takes no parameters

 

HtmlNavbar

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

 

HtmlDropdown

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

 

HtmlForm

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

 

HtmlNav

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

 

LoadMemUsage

Has no parameters

 

LoadNulFile

Takes two parameters, FileName, bHasHeader

 

LoadRawFile

Takes one parameter, FilePath

 

LoadCsvFile

Takes two parameters, FileName, bHasHeader

 

KeepNone

Takes no parameters

 

ListFiles

Takes 3 parameters, Folder, Filter, bShowImgSize

 

ListQueries

Takes no parameters

 

SaveCsvFile

Takes two parameters, FilePath, bUseHeader

 

SaveJsonFile

Takes two parameters, FileName, Options

 

SaveNulFile

Takes two parameters, FileName, bUseHeader

 

Reset

Takes no parameters.

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

Math

Takes a variable number of parameters

 

NulStream

Takes two parameters, Data, bHasHeader

 

Public Method WorkQuery Example

In this example, you will see how to use a public method that works on or with the current WorkQuery that you pass into the method.

 

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.

 

AjaxReply

Has no parameters

 

FailIfRecError

Has no parameters

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

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.

 

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.

 

Folder and File Structure

Brief overview on the file structure and contents under Moxie. The files and folders discussed in this post are those that are essential when upgrading to the most recent version of Moxie , or when troubleshooting server errors.

 

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.

 

NewEComQuery

Takes one parameter, QueryName

 

MapQuery

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

 

OnError (Continue)

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

 

Return

Takes a variable number of parameters.

 

ProcECom

Takes one parameter, QueryName

 

LookupQuery

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

 

ForEach

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

 

File

Takes 3 parameters, Destination, Action, Source

 

Function

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

 

LangWith

Has one parameter, a Content.Lang prefix

 

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

Takes a variable number of conditional statements

 

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.

 

 

MOX Coding and Programing Language Syntax Documentation

The MOX coding and programming language pays heritage to BASIC, but has been crafted for the specific type of work and environment that is demanded of Moxie.Build.

 

[Ajax]

Takes 3 parameters, Trigger, DestinationID, Path

 

Templates Documentation

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

 

Learn More About the Content Management System

Prerequisites: This page assumes that you have already set up your Moxie.Build server and logged in as an admin user. This page covers some of the basics that are involved in using the Content Management aspects of the Moxie.Build system.

 

 

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.

 

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.

 

[R] Readonly

Has no parameters.

 

[Placeholder]

Takes one parameter

 

[Score] 0.0 to 10

Accepts 3 parameters, first is required, 2nd and 3rd are optional. A trailing optional expression after an = sign may also assign a value on the same line.

 

Export and Import of Database Schema

ExportSchema and ImportSchema are BuiltIn procedures that are available for use with source control systems.

 

[State] Error State

Takes one parameter.

 

[MText] Multiline Text Editor

Accepts one optional numeric value as a parameter

 

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

 

TimeDif$

Takes two parameters, Source, Value

 

TimeAdd$

Takes two parameters, Source, Value

 

TimeSub$

Takes two parameters, Source, Value

 

WebSafe$

Takes one parameter, Source

 

TimeZone$

Takes two parameters, Source, Value

 

TabStream$

Takes one parameter, bNoHeaders

 

NulStream$

Takes one parameter, bNoHeader

 

LongDate$

Takes one parameter, a Date value

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

SessionIsGroupType$

Takes one parameter, a List of possible group types

 

RawStream$

Takes one parameter, a top query destination variable

 

Children

Takes two parameters, ChildTableName, Mode

 

Backfill

Has no parameters

 

ChildrenAlias

Takes two parameters, ChildTableName, Mode

 

Detach

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

 

Delete

Takes two parameters, TableName and a boolean expression

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

HtmlButton

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

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

HtmlUpload

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

 

AppendTable

Takes one parameter, TableName

 

HttpCookie

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

 

[L] Lookup (Top Query)

Takes one parameter.

 

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

 

[TQFldCount]

Takes no parameters

 

[TQResult]

Takes either one parameter, ResultValue, or no parameters

 

[TQMessage]

Takes one parameter, Message, or no parameters

 

[CountIf]

Takes one parameter, TestCondition

 

Cloudflare Integration

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

 

Select / Case / End Select

Takes a variable number of conditional statements to compare against a single source

 

Cloudflare Origin Certificates

Cloudflare automatically provides free client-facing certificates for your domain, even if using their free service. In addition, they provide free Origin Certificates to encrypt the connection between Cloudflare and your origin Moxie.Build server. Use this article if you are going to have Cloudflare connect to inbound open ports on your Moxie.Build server.

 

[AnyRecError]

Takes no parameters.

 

Moxie.cfg Config

The Moxie.cfg file is read on server start and controls aspects that cannot be changed while the server is running

 

Lang$

Takes one parameter, Source

 

JsonStream$

Has one parameter, Options

 

Last$

Takes two parameters, Source , Search

 

Len%

Takes one parameter, a Source value

 

LastAny$

Takes two parameters, Source, Search

 

JsonEncode$

Has two parameters: Source, Options

 

[WQMessage]

Takes one parameter, Message, or no parameters

 

[WQFldCount]

Takes no parameters

 

[WQResult]

Takes either one parameter, ResultValue, or no parameters

 

GeoDistance$

Takes five parameters, Lat1, Long1, Lat2, Long2, Options

 

CsvStream$

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