Search Results for field

 

NewTableField

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

 

[Temp] Field

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

 

[FieldList]

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

 

DeleteFields

Takes two parameters, FieldBase, FieldNameList

 

UpdateTableField

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

 

ReorderTableFields

Takes two parameters, TableName, FieldList

 

[New] Field

Takes one parameter, a comma separated list of FieldNames

 

[Pull] List of Fields from another Query

Takes three parameters, QueryName, FieldBase, FieldNames

 

TopField

Takes one parameter, FieldName

 

DeleteTableField

Takes two parameters, a TableName and FieldName

 

CopyFields

Takes two parameters, DestinationFields, SourceFields

 

FieldDef$

Takes one parameter, FieldName

 

NewFields

Takes two parameters, FieldBase, FieldNames

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

MergeFields

Takes 4 parameters, FieldBase, Destination, SourceFields, Delimiter

 

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

 

ResetFields

Takes two parameters, FieldBase, FieldNames

 

PickFirstField

Takes three parameters, FieldBase, Destination, SourceFields

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

LFillFields

Takes one parameter, a FieldBase

 

LTrimFields

Takes one parameter, FieldBaseToTrim

 

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

 

[Ensure] Field Exists

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

 

LoadTableFields

Takes one parameter, TableName

 

ListFields

Takes one parameter, TableName

 

GetFieldDefs

Has no parameters.

 

FixFields

Takes one parameter, a single character

 

[WQFieldList]

Has no parameters

 

[TQFieldList]

Takes no parameters

 

MakeValidDBField$

Takes one parameter, Source value

 

IsValidDBField$

Takes one parameter, a Source value

 

[Custom] HTML Field Attribute

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

 

[Reset]

Fields

 

 

 

[Time] (DB Field Attribute)

Has no parameters.

 

[L] Lookup (DB Field Attribute)

Takes one parameter.

 

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

Takes 1 parameter, a formatting mask

 

 

 

[Date] (DB Field Attribute)

Has no parameters.

 

 

[#] Format (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

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

 

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Pivot

Takes two parameters, FieldBase, PivotField

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

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

 

SendEmail

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

 

Pull

Takes three parameters, QueryName, FieldBase, FieldNames

 

If (Not) / Then

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

 

JoinQuery

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

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

WorkIf

Takes one parameter, FieldName

 

WorkWith

Takes one parameter, FieldBase

 

TopQuery

Takes one parameter, FieldBase

 

TopWith

Takes one parameter, FieldBase

 

Lookup$

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

 

Group

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

 

JsonEmbed

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

 

Images

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

 

Geo

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

 

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

 

[ ? ] Pick First (Top Query)

Parameter is a space separated list of fields to choose from

 

KeepUnique

Takes one parameter, FieldName

 

Num

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

 

MergeRecords

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

 

KeepIfSimilar

Takes 3 parameters, FieldBase, pOne, pTwo

 

KeepIfAll

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

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

KeepIfAny

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

 

Set

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

Value

Takes four parameters, FieldBase, Destination, Function, IfLenFld

 

WithAll

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

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

Time

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

 

SetNew

Takes four parameters, FieldBase, FieldName, Source, IfLenFld

 

Sort

Takes two parameters, FieldBase, SortFieldList

 

Text

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

 

WithGroup

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

 

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

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

[Raw] Raw HTML

Accepts one parameter which is the raw HTML content to be placed in the form at 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.

 

[Header] Raw HTML

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

 

SetLast

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SetIf

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

 

SetIfAll

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

 

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

 

SetEnsure

Takes two parameters, FieldName, Value

 

ForeignWith

Takes a single parameter, a FieldBase

 

SetFirst

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SetIfAny

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.

 

CopyUnique

Takes four parameters, DestinationQuery, SourceQuery, UniqueField, UniqueValue

 

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

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

 

CsvStream

Takes two parameters, CSVData, bNoHeaders

 

CsvStreamWS

Takes two parameters, CSVData, bNoHeaders

 

ListProcs

Takes one parameter, TableName

 

UpdateTableRltn

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

 

Build

Takes a variable number of parameters

 

HtmlTable

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

 

HtmlRaw

Takes 3 parameters, Location, Mode, bWithNoHeader

 

HtmlNavbar

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

 

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.

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

UpdateTableProc

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

 

NamesToLabels

Takes no parameters

 

 

ParentsAlias

Takes three parameters, ChildTableName, ParentTableName, Mode

 

New

Takes two parameters, TableName, IfLenFld

 

NewTableRltn

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

 

Parents

Takes three parameters, ChildTableName, ParentTableName, Mode

 

Session

Takes two parameters, Name, Value

 

Update

Takes two parameters, TableName, IfLenFld

 

ListRltns

Takes one parameter, TableName

 

PWHash

Takes three parameters, TableName, Alias, Password

 

ListTables

Has no parameters

 

NewTableProc

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

 

HtmlNav

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

 

NulStream

Takes two parameters, Data, bHasHeader

 

TabStreamWS

Takes two parameters, CSVData, bNoHeaders

 

TabStream

Takes two parameters, Data, bHasHeader

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

LoadTabFileWS

Takes two parameters, FileName, bHasHeader

 

Math

Takes a variable number of parameters

 

SSReference

A command to help build spreadsheets

 

SaveNulFile

Takes two parameters, FileName, bUseHeader

 

SaveRawFile

Takes two parameters, FileName, bUseHeaders

 

SaveTabFile

Takes two parameters, FileName, bUseHeader

 

Reset

Takes no parameters.

 

SaveCsvFile

Takes two parameters, FilePath, bUseHeader

 

SaveJsonFile

Takes two parameters, FileName, Options

 

LoadRawFile

Takes one parameter, FilePath

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

XmlStream

Takes one parameter, Data

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

HtmlForm

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

 

JsonStream

Takes two parameters, Data, Options

 

HtmlDropdown

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

 

KeepNone

Takes no parameters

 

LoadCsvFileWS

Takes two parameters, FileName, bHasHeader

 

LoadMemUsage

Has no parameters

 

LoadNulFile

Takes two parameters, FileName, bHasHeader

 

ListFiles

Takes 3 parameters, Folder, Filter, bShowImgSize

 

ListQueries

Takes no parameters

 

LoadCsvFile

Takes two parameters, FileName, bHasHeader

 

Moxie.cfg Config

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

 

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

 

Setup Table

The Setup Table controls aspects that can be changed while the server is running, and is intended to contain both Moxie.Build specific values as well as application specific.

 

[CountIf]

Takes one parameter, TestCondition

 

[AnyRecError]

Takes no parameters.

 

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.

 

Return

Takes a variable number of parameters.

 

[State] Error State

Takes one parameter.

 

Select / Case / End Select

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

 

Cloudflare Integration

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

 

Templates Documentation

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

 

[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

 

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.

 

[WQMessage]

Takes one parameter, Message, or no parameters

 

[WQFldCount]

Takes no parameters

 

[TQFldCount]

Takes no parameters

 

[L] Lookup (Top Query)

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.

 

[R] Readonly

Has no parameters.

 

[Placeholder]

Takes one parameter

 

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.

 

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.

 

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.

 

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

 

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.

 

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.

 

Export and Import of Database Schema

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

 

[Ajax]

Takes 3 parameters, Trigger, DestinationID, Path

 

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.Build , 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.

 

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.

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

MapQuery

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

 

LookupQuery

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

 

NewEComQuery

Takes one parameter, QueryName

 

ProcECom

Takes one parameter, QueryName

 

OnError (Continue)

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

 

LangWith

Has one parameter, a Content.Lang prefix

 

File

Takes 3 parameters, Destination, Action, Source

 

FailIfRecError

Has no parameters

 

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

 

Function

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

 

WebSafe$

Takes one parameter, Source

 

TimeZone$

Takes two parameters, Source, Value

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

HtmlSearchBox

Takes 6 parameters, Location, Mode, ActionPath, Name, Class, Prompt

 

HtmlButton

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

 

TimeSub$

Takes two parameters, Source, Value

 

SessionIsGroupType$

Takes one parameter, a List of possible group types

 

[DatePicker]

Takes no parameters

 

TabStream$

Takes one parameter, bNoHeaders

 

TimeDif$

Takes two parameters, Source, Value

 

TimeAdd$

Takes two parameters, Source, Value

 

HtmlUpload

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

 

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.

 

Delete

Takes two parameters, TableName and a boolean expression

 

Detach

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

 

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.

 

Get

Takes two parameters, TableName, IfLenFld

 

ChildrenAlias

Takes two parameters, ChildTableName, Mode

 

AppendTable

Takes one parameter, TableName

 

HttpCookie

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

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

Children

Takes two parameters, ChildTableName, Mode

 

Backfill

Has no parameters

 

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

 

JsonStream$

Has one parameter, Options

 

JsonEncode$

Has two parameters: Source, Options

 

Lang$

Takes one parameter, Source

 

[WQResult]

Takes either one parameter, ResultValue, or no parameters

 

Last$

Takes two parameters, Source , Search

 

JsonDecode$

Has two parameters: Source, Options

 

 

CsvStream$

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

 

[MText] Multiline Text Editor

Accepts one optional numeric value as a parameter

 

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.

 

GeoDistance$

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

 

[Max]

Accepts a numeric value as a parameter.

 

Path$

Takes one parameter, Index

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

[Markdown]

Has no parameters.

 

RawStream$

Takes one parameter, a top query destination variable

 

NulStream$

Takes one parameter, bNoHeader

 

LastAny$

Takes two parameters, Source, Search

 

[MaxLen]

Accepts a numeric value as a parameter.

 

Len%

Takes one parameter, a Source value

 

 

LongDate$

Takes one parameter, a Date value