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.

 

Home

Web/API Development Platform with an in-memory database, native-code CMS, and a powerful runtime environment Whether you are a new startup taking off or optimizing your business model for growth, Moxie.Build provides a robust platform with a proven track record for marketplaces, eCommerce, and business process automation

 

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.

 

ListFields

Takes one parameter, TableName

 

RecoverHtmlObj$

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

 

DeleteTable

Takes one parameter, TableName

 

RecoverHtml$

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

 

DeleteTableField

Takes two parameters, a TableName and FieldName

 

DetachWithDelete

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

 

Detach

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

 

TemplateCustom

Takes one parameter, TemplateData

 

HtmlHistory

Takes two parameters, Title, Path

 

TimeZone$

Takes two parameters, Source, Value

 

AppendTable

Takes one parameter, TableName

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

Backfill

Has no parameters

 

TimeSub$

Takes two parameters, Source, Value

 

RecoverTmpl$

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

 

Delete

Takes two parameters, TableName and a boolean expression

 

RecoverMOX$

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

 

TimeDif$

Takes two parameters, Source, Value

 

TimeAdd$

Takes two parameters, Source, Value

 

Setup$

Takes one parameter, Name

 

ListProcs

Takes one parameter, TableName

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

NewRecords

Takes one parameter, QuantityToAdd

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

LoadRawFile

Takes one parameter, FilePath

 

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

 

UpdateOrNewWithAttach

Takes four parameters, TableName, Relation, OtherTableName, IfLenFld

 

New

Takes two parameters, TableName, IfLenFld

 

NewWithAttach

Takes 4 parameters, TableName, Relation, OtherTableName, IfLenFld

 

PWHash

Takes three parameters, TableName, Alias, Password

 

ListRltns

Takes one parameter, TableName

 

ListTables

Has no parameters

 

LoadTable

Takes one parameter, TableName

 

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

 

[L] Lookup (DB Field Attribute)

Takes one parameter.

 

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

 

[#] Format (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

[Header] Raw HTML

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

 

 

 

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

 

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

Takes 1 parameter, a formatting mask

 

[Ajax]

Takes 3 parameters, Trigger, 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.

 

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.

 

[L] Lookup (Top Query)

Takes one parameter.

 

FieldDef$

Takes one parameter, FieldName

 

Moxie.cfg Config

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

 

[AnyRecError]

Takes no parameters.

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

RawStream$

Takes one parameter, a top query destination variable

 

Lang$

Takes one parameter, Source

 

Lookup$

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

 

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.

 

FailIfRecError

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.

 

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.

 

Thread

Takes a variable number of parameters

 

Try / Catch / Finally / End Try

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

 

Meta

Takes any unspecified data, intended for use by external systems

 

OnError (Continue)

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