Search Results for field

 

MergeFields

Takes 4 parameters, FieldBase, Destination, SourceFields, Delimiter

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

NewFields

Takes two parameters, FieldBase, FieldNames

 

[Pull] List of Fields from another Query

Takes three parameters, QueryName, FieldBase, FieldNames

 

[New] Field

Takes one parameter, a comma separated list of FieldNames

 

LTrimFields

Takes one parameter, FieldBaseToTrim

 

[FieldList]

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

 

[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 in the Admin interface.

 

CopyFields

Takes two parameters, DestinationFields, SourceFields

 

PickFirstField

Takes three parameters, FieldBase, Destination, SourceFields

 

ResetFields

Takes two parameters, FieldBase, FieldNames

 

UpdateTableField

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

 

DeleteFields

Takes two parameters, FieldBase, FieldNameList

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

DeleteTableField

Takes two parameters, a TableName and FieldName

 

NewTableField

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

 

ReorderTableFields

Takes two parameters, TableName, FieldList

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

LFillFields

Takes one parameter, a FieldBase

 

TopField

Takes one parameter, FieldName

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

FieldStream$

Takes two parameter: FieldName, Delimiter

 

FieldDef$

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

 

[Custom] HTML (DB Field Attribute)

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

 

GetFieldDefs

Has no parameters.

 

[Ensure] Field Exists

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

 

[TQFieldList]

Takes no parameters

 

[WQFieldList]

Has no parameters

 

ListFields

Takes one parameter, TableName

 

LoadTableFields

Takes one parameter, TableName

 

MakeValidDBField$

Takes one parameter, Source value

 

FixFields

Takes one parameter, a single character

 

IsValidDBField$

Takes one parameter, a Source value

 

 

[Reset]

Fields

 

 

[Date] (DB Field Attribute)

Has no parameters.

 

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

Takes 1 parameter, a formatting mask

 

 

 

[Time] (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

 

[L] Lookup (DB Field Attribute)

Takes one parameter.

 

[!] Limited Selection List (DB Field Attribute)

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.

 

KeepIfAll

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

 

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.

 

[ ? ] Pick First (Top Query)

Parameter is a space separated list of fields to choose from

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

KeepIfSimilar

Takes 3 parameters, FieldBase, pOne, pTwo

 

KeepIfAny

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

 

JoinQuery

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

 

WithGroup

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

 

SetIf

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

 

If (Not) / Then

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

 

TopQuery

Takes one parameter, FieldBase

 

WorkWith

Takes one parameter, FieldBase

 

KeepUnique

Takes one parameter, FieldName

 

TopWith

Takes one parameter, FieldBase

 

WorkIf

Takes one parameter, FieldName

 

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.

 

Lookup$

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

 

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

 

Files

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

 

Lookup

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

 

SetLast

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

Folders

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

 

SetIfAny

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

 

JsonEmbed

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

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

 

Geo

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

 

Format

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

 

Images

Takes up to 6 parameters, FieldBase, Destination, Action, Source, Value, IfLenField

 

Group

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

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Pivot

Takes two parameters, FieldBase, PivotField

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

Pull

Takes three parameters, QueryName, FieldBase, FieldNames

 

Num

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

 

Text

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

 

Offset

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

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

Parse

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

 

SetEnsure

Takes two parameters, FieldName, Value

 

Set

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

SetFirst

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

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

 

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

 

Sort

Takes two parameters, FieldBase, SortFieldList

 

SetNew

Takes four parameters, FieldBase, FieldName, Source, IfLenFld

 

SendEmail

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

 

[Raw] Raw HTML

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

 

Time

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

 

WithAll

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

 

 

MergeRecords

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

 

ForeignWith

Takes a single parameter, a FieldBase

 

CopyUnique

Takes four parameters, DestinationQuery, SourceQuery, UniqueField, UniqueValue

 

Value

Takes four parameters, FieldBase, Destination, Function, IfLenFld

 

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

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

 

ParentsAlias

Takes three parameters, ChildTableName, ParentTableName, Mode

 

HtmlTable

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

 

PWHash

Takes three parameters, TableName, Alias, Password

 

UpdateTableRltn

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

 

UpdateTableProc

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

 

CsvStream

Takes two parameters, CSVData, bNoHeaders

 

Build

Takes a variable number of parameters

 

HtmlRaw

Takes 3 parameters, Location, Mode, bWithNoHeader

 

Update

Takes two parameters, TableName, IfLenFld

 

Session

Takes two parameters, Name, Value

 

SaveTabFile

Takes two parameters, FileName, bUseHeader

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

Parents

Takes three parameters, ChildTableName, ParentTableName, Mode

 

Detach

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

 

Get

Takes two parameters, TableName, IfLenFld

 

Math

Takes a variable number of parameters

 

NamesToLabels

Takes no parameters

 

Children

Takes two parameters, ChildTableName, Mode

 

ChildrenAlias

Takes two parameters, ChildTableName, Mode

 

Delete

Takes two parameters, TableName and a boolean expression

 

LoadTabFileWS

Takes two parameters, FileName, bHasHeader

 

NewTableProc

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

 

NewTableRltn

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

 

New

Takes two parameters, TableName, IfLenFld

 

ListProcs

Takes one parameter, TableName

 

ListRltns

Takes one parameter, TableName

 

ListTables

Has no parameters

 

CsvStreamWS

Takes two parameters, CSVData, bNoHeaders

 

LoadMemUsage

Has no parameters

 

TabStreamWS

Takes two parameters, CSVData, bNoHeaders

 

LoadCsvFileWS

Takes two parameters, FileName, bHasHeader

 

LoadMultipart

Takes two parameters, Data, Boundary

 

JsonStream

Takes two parameters, Data, Options

 

TabStream

Takes two parameters, Data, bHasHeader

 

Reset

Takes no parameters.

 

KeepNone

Takes no parameters

 

ListFolders

Takes two parameters, FolderPath, bRecursive

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

NulStream

Takes two parameters, Data, bHasHeader

 

ListFiles

Takes 3 parameters, Folder, Filter, bShowImgSize, bShowAccessed

 

LoadCsvFile

Takes two parameters, FileName, bHasHeader

 

ListQueries

Takes no parameters

 

XmlStream

Takes one parameter, Data

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

SaveRawFile

Takes two parameters, FileName, bUseHeaders

 

HtmlDropdown

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

 

LoadReqFile

Has no parameters

 

HtmlNavbar

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

 

HtmlNav

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

 

HtmlForm

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

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

SSReference

A command to help build spreadsheets

 

LoadNulFile

Takes two parameters, FileName, bHasHeader

 

SaveCsvFile

Takes two parameters, FilePath, bUseHeader

 

LoadPipeFileWS

Takes two parameters, FileName, bHasHeader

 

SaveNulFile

Takes two parameters, FileName, bUseHeader

 

LoadRawFile

Takes one parameter, FilePath

 

SaveJsonFile

Takes two parameters, FileName, Options

 

Backfill

Has no parameters

 

File

Takes three parameters, Destination, Action, Source

 

FailIfRecError

Has no parameters

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

Function

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

 

ForEach

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

 

Folder

Takes three parameters, FolderPath, Action, Source

 

AppendFile

Takes two parameters, FileName, FileData

 

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.

 

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.

 

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.

 

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.

 

SaveFile

Takes two parameters, FileName, FileData

 

Return

Takes a variable number of parameters.

 

ProcECom

Takes one parameter, QueryName

 

Cloudflare Integration

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

 

Throttle / End Throttle

Takes one parameter, SlowWritePercent

 

Select / Case / End Select

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

 

OnError / End OnError

Takes one parameter, Control

 

LangWith

Has one parameter, a Content.Lang prefix

 

Image

Has 4 parameters, Destination, Action, Source, Value

 

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

Takes a variable number of conditional statements

 

NewEComQuery

Takes one parameter, QueryName

 

MapQuery

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

 

LookupQuery

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

 

Templates Documentation

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

 

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.

 

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.

 

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

 

[Ajax]

Takes 3 parameters, Event, DestinationID, Path

 

 

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

 

 

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.

 

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.

 

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.

 

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.

 

LoadPipeFile

Takes two parameters, FileName, bHasHeader

 

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

 

[MaxLen]

Accepts a numeric value as a parameter.

 

[Max]

Accepts a numeric value as a parameter.

 

[Markdown]

Has one parameter.

 

[R] Readonly

Has no parameters.

 

[Placeholder]

Takes one parameter

 

[MText] Multiline Text Editor

Accepts one optional numeric value as a parameter

 

RawStream$

Has no parameters

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

Path$

Takes one parameter, Index

 

Shell$

Takes two parameters Command, Options

 

SessionIsGroupType$

Takes one parameter, a List of possible group types

 

Second$

Takes one parameter, Source

 

NulStream$

Takes one parameter, bNoHeader

 

LongDate$

Takes one parameter, a Date value

 

LoadFile$

Takes three parameters, FilePath, Start, Len

 

Len%

Takes one parameter, a Source value

 

Month$

Takes one parameter, Source

 

Minute$

Takes one parameter, Source

 

MarkdownToHtml$

Takes one parameter, Source

 

HtmlUpload

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

 

HtmlSearchBox

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

 

HtmlButton

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

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

AppendTable

Takes one parameter, TableName

 

HttpCookie

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

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

TimeDif$

Takes two parameters, Source, Value

 

TimeAdd$

Takes two parameters, Source, Value

 

TabStream$

Takes one parameter, bNoHeaders

 

Year$

Takes one parameter, Source

 

WebSafe$

Takes one parameter, Source

 

TimeSub$

Takes two parameters, Source, Value

 

[TQMessage]

Takes one parameter, Message, or no parameters

 

[TQFldCount]

Takes no parameters

 

[L] Lookup (Top Query)

Takes one parameter.

 

[WQMessage]

Takes one parameter, Message, or no parameters

 

[WQFldCount]

Takes no parameters

 

[TQResult]

Takes either one parameter, ResultValue, or no parameters

 

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

 

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.

 

Moxie.cfg Config

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

 

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.

 

[CountIf]

Takes one parameter, TestCondition

 

[!] Assert (Top Query)

Parameter is a comma separated list (using CSV rules and not in quotes) of the fixed hard coded values to select from

 

[AnyRecError]

Takes no parameters.

 

JsonStream$

Has one parameter, Options

 

JsonEncode$

Has two parameters: Source, Options

 

JsonDecode$

Has two parameters: Source, Options

 

LastAny$

Takes two parameters, Source, Search

 

Last$

Takes two parameters, Source , Search

 

Lang$

Takes one parameter, Source

 

Hour$

Takes one parameter, Source

 

Ctid$

Has one parameter.

 

CsvStream$

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

 

[WQResult]

Takes either one parameter, ResultValue, or no parameters

 

GeoDistance$

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

 

Day$

Takes one parameter, Source

 

DateTime$

Takes one parameter, Source