Search Results for database

 

 

Export and Import of Database Schema

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

 

 

 

 

 

 

 

 

 

 

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.

 

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

 

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

 

EmptyTable

Takes one parameter, the name of a database table

 

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.

 

Delete

Takes two parameters, TableName and a boolean expression

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

Backfill

Has no parameters

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

DetachWithDelete

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

 

Detach

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

 

DeleteTable

Takes one parameter, TableName

 

DeleteTableField

Takes two parameters, a TableName and FieldName

 

TimeAdd$

Takes two parameters, Source, Value

 

Setup$

Takes one parameter, Name

 

Second$

Takes one parameter, Source

 

TimeDif$

Takes two parameters, Source, Value

 

Year$

Takes one parameter, Source

 

HtmlHistory

Takes two parameters, Title, Path

 

TimeSub$

Takes two parameters, Source, Value

 

RecoverHtml$

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

 

AppendTable

Takes one parameter, TableName

 

RawStream$

Has no parameters

 

TemplateCustom

Takes one parameter, TemplateData

 

RecoverTmpl$

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

 

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

 

ListFields

Takes one parameter, TableName

 

LoadRawFile

Takes one parameter, FilePath

 

LoadReqFile

Has no parameters

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

LoadMultipart

Takes two parameters, Data, Boundary

 

NewRecords

Takes one parameter, QuantityToAdd

 

HtmlTable

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

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

NamesToLabels

Takes no parameters

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Text

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

 

HtmlForm

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

 

UpdateOrNewWithAttach

Takes four parameters, TableName, Relation, OtherTableName, IfLenFld

 

LoadTable

Takes one parameter, TableName

 

New

Takes two parameters, TableName, IfLenFld

 

NewWithAttach

Takes 4 parameters, TableName, Relation, OtherTableName, IfLenFld

 

ListProcs

Takes one parameter, TableName

 

ListRltns

Takes one parameter, TableName

 

ListTables

Has no parameters

 

PWHash

Takes three parameters, TableName, Alias, Password

 

UnloadTableFiles

Takes one parameter, TableName

 

Update

Takes two parameters, TableName, IfLenFld

 

UpdateOrNew

Takes two parameters, TableName, IfLenFld

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Session

Takes two parameters, Name, Value

 

SkipCalls

Takes no parameters

 

Month$

Takes one parameter, Source

 

[MaxLen]

Accepts a numeric value as a parameter.

 

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

 

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

 

[Time] (DB Field Attribute)

Has no parameters.

 

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.

 

Public Method

A Public Method may be called from any other Procedure, by the Default plug-in as part of the CMS.

 

 

 

[Header] Raw HTML

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

 

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

Takes 1 parameter, a formatting mask

 

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

 

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.

 

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

 

[Footer] Raw HTML

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

 

[#] Format (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

[Date] (DB Field Attribute)

Has no parameters.

 

 

Day$

Takes one parameter, Source

 

FieldDef$

Takes one parameter, FieldName

 

[L] Lookup (Top Query)

Takes one parameter.

 

DateTime$

Takes one parameter, Source

 

Hour$

Takes one parameter, Source

 

MarkdownToHtml$

Takes one parameter, Source

 

Minute$

Takes one parameter, Source

 

Lang$

Takes one parameter, Source

 

Lookup$

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

 

[AnyRecError]

Takes no parameters.

 

FailIfRecError

Has no parameters

 

Meta

Takes any unspecified data, intended for use by external systems

 

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.

 

OnError / End OnError

Takes one parameter, Control

 

Try / Catch / Finally / End Try

A traditional way to check for hard errors and enable those errors to error softly.

 

Moxie.cfg Config

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

 

Thread

Takes a variable number of parameters

 

Throttle / End Throttle

Takes one parameter, SlowWritePercent