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.

 

 

 

 

 

 

 

 

 

 

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.

 

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

 

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.

 

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.

 

EmptyTable

Takes one parameter, the name of a database table

 

Detach

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

 

ListRltns

Takes one parameter, TableName

 

DeleteTableField

Takes two parameters, a TableName and FieldName

 

ListFields

Takes one parameter, TableName

 

RecoverHtmlObj$

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

 

ListProcs

Takes one parameter, TableName

 

DetachWithDelete

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

 

RecoverMOX$

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

 

TemplateCustom

Takes one parameter, TemplateData

 

HtmlHistory

Takes two parameters, Title, Path

 

TimeZone$

Takes two parameters, Source, Value

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

Backfill

Has no parameters

 

AppendTable

Takes one parameter, TableName

 

TimeSub$

Takes two parameters, Source, Value

 

Delete

Takes two parameters, TableName and a boolean expression

 

RecoverTmpl$

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

 

DeleteTable

Takes one parameter, TableName

 

TimeDif$

Takes two parameters, Source, Value

 

TimeAdd$

Takes two parameters, Source, Value

 

Setup$

Takes one parameter, Name

 

LoadReqFile

Has no parameters

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

NewRecords

Takes one parameter, QuantityToAdd

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

LoadMultipart

Takes two parameters, Data, Boundary

 

LoadRawFile

Takes one parameter, FilePath

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

HtmlTable

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

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

NamesToLabels

Takes no parameters

 

Text

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

 

Time

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

 

HtmlForm

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

 

NewWithAttach

Takes 4 parameters, TableName, Relation, OtherTableName, IfLenFld

 

PWHash

Takes three parameters, TableName, Alias, Password

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

ListTables

Has no parameters

 

LoadTable

Takes one parameter, TableName

 

New

Takes two parameters, TableName, IfLenFld

 

Session

Takes two parameters, Name, Value

 

UpdateOrNew

Takes two parameters, TableName, IfLenFld

 

UpdateOrNewWithAttach

Takes four parameters, TableName, Relation, OtherTableName, IfLenFld

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

SkipCalls

Takes no parameters

 

UnloadTableFiles

Takes one parameter, TableName

 

Update

Takes two parameters, TableName, IfLenFld

 

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

 

[MaxLen]

Accepts a numeric value as a parameter.

 

[Header] Raw HTML

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

 

[L] Lookup (DB Field Attribute)

Takes one parameter.

 

 

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.

 

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

 

 

[#] Format (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

[_#] 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.

 

 

[Footer] Raw HTML

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

 

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

 

[Date] (DB Field Attribute)

Has no parameters.

 

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.

 

FieldDef$

Takes one parameter, FieldName

 

Lang$

Takes one parameter, Source

 

[AnyRecError]

Takes no parameters.

 

[L] Lookup (Top Query)

Takes one parameter.

 

RawStream$

Takes one parameter, a top query destination variable

 

RecoverHtml$

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

 

Lookup$

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

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

Moxie.cfg Config

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

 

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.

 

Throttle / End Throttle

Takes one parameter, SlowWritePercent

 

Try / Catch / Finally / End Try

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

 

OnError / End OnError

Takes one parameter, Control

 

Thread

Takes a variable number of parameters