Search Results for data

 

Export and Import of Database Schema

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

 

 

 

 

 

 

 

 

 

 

 

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

 

CsvStream

Takes two parameters, CSVData, bNoHeaders

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

SaveFile

Takes two parameters, FileName, FileData

 

TemplateCustom

Takes one parameter, TemplateData

 

EmptyTable

Takes one parameter, the name of a database table

 

NulStream

Takes two parameters, Data, bHasHeader

 

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

 

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.

 

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.

 

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.

 

HtmlETable

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

 

XmlStream

Takes one parameter, Data

 

TabStream

Takes two parameters, Data, bHasHeader

 

Moxie.Build for Developers

Moxie.Build Keeps it Simple The full stack in one app, delivered by one company. Coding with the MOX server side scripting language is concise, well structured, and keeps your focus on the data. Use Moxie.Build in your company to pull together resources, centralize data, customize business workflows, and act as a highly accessible web portal for staff and customers alike.

 

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.

 

LoadTable

Takes one parameter, TableName

 

NewTableField

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

 

New

Takes two parameters, TableName, IfLenFld

 

LoadRecord

Takes two parameters, TableName, RecordAlias

 

ListProcs

Takes one parameter, TableName

 

ListFields

Takes one parameter, TableName

 

ListRltns

Takes one parameter, TableName

 

ListTables

Has no parameters

 

Get

Takes two parameters, TableName, IfLenFld

 

HtmlTable

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

 

Session

Takes two parameters, Name, Value

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

SkipCalls

Takes no parameters

 

Update

Takes two parameters, TableName, IfLenFld

 

UnloadTableFiles

Takes one parameter, TableName

 

NewTableRltn

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

 

NewTableProc

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

 

NewWithAttach

Takes 4 parameters, TableName, Relation, OtherTableName, IfLenFld

 

PWHash

Takes three parameters, TableName, Alias, Password

 

ParentsAlias

Takes three parameters, ChildTableName, ParentTableName, Mode

 

FlushAll

Has no parameters

 

HttpCookie

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

 

HtmlHistory

Takes two parameters, Title, Path

 

HttpNoCache

Has no parameters.

 

AppendTable

Takes one parameter, TableName

 

NamesToLabels

Takes no parameters

 

TimeSub$

Takes two parameters, Source, Value

 

TimeDif$

Takes two parameters, Source, Value

 

TimeZone$

Takes two parameters, Source, Value

 

Html

Takes 3 parameters, Location, Mode, Text

 

WebSafe$

Takes one parameter, Source

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

Detach

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

 

DeleteTableField

Takes two parameters, a TableName and FieldName

 

DetachWithDelete

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

 

Flush

Takes one parameter, TableName

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

ChildrenAlias

Takes two parameters, ChildTableName, Mode

 

Backfill

Has no parameters

 

CopyTable

Takes four parameters, DestinationTable, SourceTable, bWithParents, bWithPWHashes

 

DeleteTable

Takes one parameter, TableName

 

Delete

Takes two parameters, TableName and a boolean expression

 

HtmlDTable

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

 

NewRecords

Takes one parameter, QuantityToAdd

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

HtmlDropdown

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

 

Pivot

Takes two parameters, FieldBase, PivotField

 

LoadRawFile

Takes one parameter, FilePath

 

LoadNulFile

Takes two parameters, FileName, bHasHeader

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

MergeRecords

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

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

SendEmail

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

 

SaveTabFile

Takes two parameters, FileName, bUseHeader

 

WithGroup

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

 

Text

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

 

Time

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

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

SaveCsvFile

Takes two parameters, FilePath, bUseHeader

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

SaveJsonFile

Takes two parameters, FileName, Options

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

HtmlTab

Takes 3 parameters, Location, Mode, bWithNoHeader

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

Files

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

 

HtmlRaw

Takes 3 parameters, Location, Mode, bWithNoHeader

 

UpdateOrNewWithAttach

Takes four parameters, TableName, Relation, OtherTableName, IfLenFld

 

UpdateOrNew

Takes two parameters, TableName, IfLenFld

 

UpdateTableField

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

 

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

 

HtmlNavbar

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

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

JsonEmbed

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

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

LoadCsvFile

Takes two parameters, FileName, bHasHeader

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

Folders

Takes a single variable, the relative path to the directory from root of project

 

FixFields

Takes one parameter, a single character

 

HtmlNav

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

 

Group

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

 

HtmlForm

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

 

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.

 

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.

 

CopyFirst

Takes two parameters, DestinationQuery, SourceQuery

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

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.

 

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 , or when troubleshooting server errors.

 

 

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.

 

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.

 

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

Takes a variable number of conditional statements

 

ForEach

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

 

JoinQuery

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

 

If (Not) / Then

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

 

FailIfRecError

Has no parameters

 

CopyUnique

Takes four parameters, DestinationQuery, SourceQuery, UniqueField, UniqueValue

 

CopyQuery

Takes two parameters, destinationQuery, sourceQuery

 

ETableReply

Takes 2 parameters, Result, Status

 

[Ensure] Field Exists

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

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

[Ajax]

Takes 3 parameters, Trigger, DestinationID, Path

 

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

Takes 1 parameter, a formatting mask

 

[Date] (DB Field Attribute)

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

 

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.

 

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.

 

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

 

 

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

 

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

 

[#] Format (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

NulStream$

Takes one parameter, bNoHeader

 

Lookup$

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

 

RawStream$

Takes one parameter, a top query destination variable

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

Len$

Takes one parameter, a Source value

 

Lang$

Takes one parameter, Source

 

JsonStream$

Has one parameter, Options

 

Len%

Takes one parameter, a Source value

 

Left$

Takes two parameters, Source, Value

 

TabStream$

Takes one parameter, bNoHeaders

 

Setup$

Takes one parameter, Name

 

TimeAdd$

Takes two parameters, Source, Value

 

Tcp$

Takes three parameters, ServerName, Port, bSecure, Send

 

Right$

Takes two parameters, Source, Value

 

RecoverHtmlObj$

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

 

RecoverHtml$

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

 

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

 

JsonEncode$

Has two parameters: Source, Options

 

Select / Case / End Select

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

 

Remote

Takes three parameters, Url, InputQuery, OutputQuery

 

Thread

Takes a variable number of parameters

 

ServerLog

Takes one parameter, ServerLogText

 

PaaS

Takes three parameters, Url, SaaSTenant, InputQuery, OutputQuery

 

MapQuery

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

 

LookupQuery

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

 

OnError (Continue)

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

 

MoveQuery

Takes two parameters, DestinationQuery, SourceQuery

 

Compress$

Compress any value/table

 

CFApi$

Takes three parameters Method, URL, Body

 

FieldDef$

Takes one parameter, FieldName

 

CsvStream$

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

 

[L] Lookup (Top Query)

Takes one parameter.

 

Moxie.cfg Config

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

 

Try / Catch / Finally / End Try

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

 

[AnyRecError]

Takes no parameters.

 

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