Search Results for list

 

[FieldList]

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

 

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

 

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

 

ListFields

Takes one parameter, TableName

 

ListProcs

Takes one parameter, TableName

 

[Pull] List of Fields from another Query

Takes three parameters, QueryName, FieldBase, FieldNames

 

ListQueries

Takes no parameters

 

ListFolders

Takes two parameters, FolderPath, bRecursive

 

ListFiles

Takes 3 parameters, Folder, Filter, bShowImgSize

 

ListTables

Has no parameters

 

[WQFieldList]

Has no parameters

 

[TQFieldList]

Takes no parameters

 

ListRltns

Takes one parameter, TableName

 

 

ReorderTableRltns

Takes two parameters, TableName, RltnList

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

[Temp] Field

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

 

ReorderTableFields

Takes two parameters, TableName, FieldList

 

ReorderTableProcs

Takes two parameters, TableName, ProcList

 

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

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

[New] Field

Takes one parameter, a comma separated list of FieldNames

 

DeleteFields

Takes two parameters, FieldBase, FieldNameList

 

[Ensure] Field Exists

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

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

Format

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

 

Sort

Takes two parameters, FieldBase, SortFieldList

 

SessionIsGroupType$

Takes one parameter, a List of possible group types

 

[ ? ] Pick First (Top Query)

Parameter is a space separated list of fields to choose from

 

Simple To Do App with MEAN Stack Comparison

In this example, we use a plain old Moxie.Build system and compare it to the MEAN Stack equivalent by building two functionally equivalent versions of a fleshed out To Do List Application. Both versions utilize local user authentication, a relational database system and the security measures found in typical production-level applications on the web today.

 

Get Started with Development Examples

This list of examples is going to grow over time. We are open to requests, as well as submissions if you have something you would like to share.

 

TallyAny%

Takes two parameters, Source, Match

 

Tally$

Takes two parameters, Source, Match

 

Tally%

Takes two parameters, Source, Match

 

TallyAny$

Takes two parameters, Source, Match

 

TimeSub$

Takes two parameters, Source, Value

 

TimeDif$

Takes two parameters, Source, Value

 

TimeAdd$

Takes two parameters, Source, Value

 

ReplaceAny$

Takes one existing Source value, and two parameters of equal length, SearchVals, NewVals

 

Right$

Takes two parameters, Source, Value

 

Lookup

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

 

Login

Takes three parameters, Login, Password, bRememberMe

 

SSColAlpha$

Takes one parameter, Source

 

SSColNum$

Takes one parameter, Source

 

Session$

Takes one parameter, Name

 

HttpCookie

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

 

Get

Takes two parameters, TableName, IfLenFld

 

ChildrenAlias

Takes two parameters, ChildTableName, Mode

 

Children

Takes two parameters, ChildTableName, Mode

 

DeleteTableProc

Takes two parameters, a TableName and ProcName

 

DeleteTable

Takes one parameter, TableName

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

HtmlErr

Takes one parameter, ErrMsg

 

Backfill

Has no parameters

 

HtmlAlert

Takes three parameters, Location, ClassNames, AlertText

 

DeleteTableRltn

Takes two parameters, a TableName1 and TableName2

 

DetachWithDelete

Takes 4 parameters, TableName, Relation, OtherTableName, and a boolean expression (optional)

 

Detach

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

 

EndSession

Has no parameters.

 

HtmlUpload

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

 

Verify$

Takes two parameters, Source, AllowedCharacters (case sensitive)

 

WebSafe$

Takes one parameter, Source

 

Trim$

Takes two parameters, Source, Search

 

Verify%

Takes two parameters, Source, AllowedCharacters (case sensitive)

 

NewTableField

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

 

SetIf

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

 

SaveTabFile

Takes two parameters, FileName, bUseHeader

 

Text

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

 

Value

Takes four parameters, FieldBase, Destination, Function, IfLenFld

 

Time

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

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Pull

Takes three parameters, QueryName, FieldBase, FieldNames

 

SaveJsonFile

Takes two parameters, FileName, Options

 

SaveCsvFile

Takes two parameters, FilePath, bUseHeader

 

HtmlForm

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

 

HtmlETable

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

 

HtmlNav

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

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

HtmlNavbar

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

 

WithGroup

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

 

WithAll

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

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

HtmlDTable

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

 

HtmlDropdown

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

 

Parse

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

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

UpdateTableRltn

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

 

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

 

NewTableRltn

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

 

NewTableProc

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

 

ParentsAlias

Takes three parameters, ChildTableName, ParentTableName, Mode

 

UpdateTableProc

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

 

UpdateTableField

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

 

Math

Takes a variable number of parameters

 

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

 

Num

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

 

KeepFirst

Takes no parameters

 

JsonEmbed

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

 

KeepLast

Takes no parameters

 

LoadRawFile

Takes one parameter, FilePath

 

LoadCsvFile

Takes two parameters, FileName, bHasHeader

 

ProcECom

Takes one parameter, QueryName

 

Prefix

Takes a single string as parameter, which is then appended to each line in the code block.

 

Select / Case / End Select

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

 

[Reset]

Fields

 

NewEComQuery

Takes one parameter, QueryName

 

ForEach

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

 

Folder

Takes two parameters, FolderPath, Action

 

If (Not) / Then

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

 

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

Takes a variable number of conditional statements

 

Trigger

Takes two parameter, URL, InputQuery

 

Moxie.cfg Config

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

 

Cloudflared Tunnel

Cloudflared Tunnel exposes applications running on your local web server on any network with an internet connection with an outbound tunnel that connects directly to Cloudflare's edge network without the need to configure inbound firewall rules.

 

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.

 

Nightly Management Utility

This utility program manages a server install with one or many Moxie.Build services running by taking care of nightly tasks via a scheduled task

 

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.

 

WorkIf

Takes one parameter, FieldName

 

TRONLog

Takes one parameter, OutputText

 

Cloudflare Integration

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

 

WorkWith

Takes one parameter, FieldBase

 

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.

 

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

 

 

 

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.

 

Get Started with Service Setup on a Server

A single Windows OS can host many instances of Moxie.Build, these steps will guide you through the setup process.

 

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.

 

 

[MaxLen]

Accepts a numeric value as a parameter.

 

ETableReply

Takes 2 parameters, Result, Status

 

DeleteQuery

Takes one parameter, the name of the query

 

File

Takes 3 parameters, Destination, Action, Source

 

FailIfRecError

Has no parameters

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

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.

 

Export and Import of Database Schema

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

 

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.

 

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.

 

ParseCount%

Takes two parameters, Source and Match

 

Lookup$

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

 

ParseCountAny%

Takes two parameters, Source and Match

 

ParseCount$

Takes two parameters, Source and Match

 

LongDate$

Takes one parameter, a Date value

 

Left$

Takes two parameters, Source, Value

 

LastAny$

Takes two parameters, Source, Search

 

Len$

Takes one parameter, a Source value

 

Len%

Takes one parameter, a Source value

 

ParseCountAny$

Takes two parameters, Source and Match

 

RecoverMOX$

Takes one parameter, HtmlEscapedString, and returns the Unescaped Version of this string

 

RecoverHtmlObj$

Takes one parameter, EscapedHTMLString, and returns the Unescaped Version of this string

 

Replace$

Takes one existing Source value, and two parameters, Search, NewVal

 

RecoverTmpl$

Takes one parameter, EscapedTemplate, and returns the Unescaped Version of this string

 

RecoverHtml$

Takes one parameter, EscapedHTMLString, and returns the Unescaped Version of this string

 

Plus8Encode$

Takes one parameter, Source

 

Plus8Decode$

Takes one parameter, Source

 

RawStream$

Takes one parameter, a top query destination variable

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

Last$

Takes two parameters, Source , Search

 

FieldDef$

Takes one parameter, FieldName

 

ExtractAny$

Takes two parameters, Source , Search

 

GeoDistance$

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

 

Greg$

Takes one parameter, a gregorian number

 

Greg%

Takes one parameter, a date of the form yyyy-mm-dd

 

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

 

[CountIf]

Takes one parameter, TestCondition

 

CFApi$

Takes three parameters Method, URL, Body

 

Extract$

Takes two parameters, Source, Search

 

CheckPw$

Takes two parameters, User and Password

 

JsonEncode$

Has two parameters: Source, Options

 

IsGroupType$

Takes two parameters: Username, GroupTypes

 

JsonStream$

Has one parameter, Options

 

Lang$

Takes one parameter, Source

 

Keywords$

Has one parameter.

 

InStr%

Takes two parameters, Source, Match

 

Http$

Takes 9 parameters, ServerName, Port, bSecure, Mode, Path, ContentType, extraHeader, body, rtnHeaders

 

InStr$

Takes two parameters, Source, Match

 

Rem / EndRem

A type of Prefix which allows the developer to separate blocks of code into organized, defined parts to help provide clarity of the logical block and add structure to the code.

 

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.