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.

 

 

 

 

 

 

 

 

 

 

TabStream

Takes two parameters, Data, bHasHeader

 

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

 

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

 

Meta

Takes any unspecified data, intended for use by external systems

 

CsvStream

Takes two parameters, CSVData, bNoHeaders

 

CsvStreamWS

Takes two parameters, CSVData, bNoHeaders

 

TemplateCustom

Takes one parameter, TemplateData

 

EmptyTable

Takes one parameter, the name of a database table

 

SaveFile

Takes two parameters, FileName, FileData

 

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.

 

NulStream

Takes two parameters, Data, bHasHeader

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

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.

 

JsonStream

Takes two parameters, Data, Options

 

XmlStream

Takes one parameter, Data

 

HtmlETable

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

 

TabStreamWS

Takes two parameters, CSVData, bNoHeaders

 

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.

 

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.

 

New

Takes two parameters, TableName, IfLenFld

 

NewTableProc

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

 

NewTableField

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

 

LoadTable

Takes one parameter, TableName

 

ListProcs

Takes one parameter, TableName

 

ListFields

Takes one parameter, TableName

 

ListRltns

Takes one parameter, TableName

 

LoadRecord

Takes two parameters, TableName, RecordAlias

 

ListTables

Has no parameters

 

SkipCalls

Takes no parameters

 

Session

Takes two parameters, Name, Value

 

UnloadTableFiles

Takes one parameter, TableName

 

Update

Takes two parameters, TableName, IfLenFld

 

HtmlTab

Takes 3 parameters, Location, Mode, bWithNoHeader

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

NewWithAttach

Takes 4 parameters, TableName, Relation, OtherTableName, IfLenFld

 

NewTableRltn

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

 

ParentsAlias

Takes three parameters, ChildTableName, ParentTableName, Mode

 

HtmlTable

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

 

PWHash

Takes three parameters, TableName, Alias, Password

 

Get

Takes two parameters, TableName, IfLenFld

 

HttpNoCache

Has no parameters.

 

HttpCookie

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

 

NamesToLabels

Takes no parameters

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

AppendTable

Takes one parameter, TableName

 

TimeZone$

Takes two parameters, Source, Value

 

TimeSub$

Takes two parameters, Source, Value

 

WebSafe$

Takes one parameter, Source

 

HtmlHistory

Takes two parameters, Title, Path

 

Html

Takes 3 parameters, Location, Mode, Text

 

Backfill

Has no parameters

 

DetachWithDelete

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

 

Detach

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

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

FlushAll

Has no parameters

 

Flush

Takes one parameter, TableName

 

CopyTable

Takes four parameters, DestinationTable, SourceTable, bWithParents, bWithPWHashes

 

ChildrenAlias

Takes two parameters, ChildTableName, Mode

 

Delete

Takes two parameters, TableName and a boolean expression

 

DeleteTableField

Takes two parameters, a TableName and FieldName

 

DeleteTable

Takes one parameter, TableName

 

UpdateOrNew

Takes two parameters, TableName, IfLenFld

 

MergeRecords

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

 

LoadTabFileWS

Takes two parameters, FileName, bHasHeader

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

NewRecords

Takes one parameter, QuantityToAdd

 

LoadCsvFileWS

Takes two parameters, FileName, bHasHeader

 

LoadCsvFile

Takes two parameters, FileName, bHasHeader

 

LoadNulFile

Takes two parameters, FileName, bHasHeader

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

LoadRawFile

Takes one parameter, FilePath

 

Pivot

Takes two parameters, FieldBase, PivotField

 

SaveJsonFile

Takes two parameters, FileName, Options

 

Time

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

 

SaveTabFile

Takes two parameters, FileName, bUseHeader

 

SendEmail

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

 

Text

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

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

SaveCsvFile

Takes two parameters, FilePath, bUseHeader

 

WithGroup

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

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

HtmlNavbar

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

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

Files

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

 

HtmlNav

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

 

UpdateTableField

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

 

UpdateOrNewWithAttach

Takes four parameters, TableName, Relation, OtherTableName, IfLenFld

 

UpdateTableProc

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

 

HtmlRaw

Takes 3 parameters, Location, Mode, bWithNoHeader

 

UpdateTableRltn

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

 

FixFields

Takes one parameter, a single character

 

HtmlDropdown

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

 

HtmlDTable

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

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

Group

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

 

Folders

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

 

JsonEmbed

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

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

HtmlForm

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

 

TimeDif$

Takes two parameters, Source, Value

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

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.

 

CopyQuery

Takes two parameters, destinationQuery, sourceQuery

 

CopyFirst

Takes two parameters, DestinationQuery, SourceQuery

 

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.

 

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.

 

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.

 

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.

 

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.

 

CopyUnique

Takes four parameters, DestinationQuery, SourceQuery, UniqueField, UniqueValue

 

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

 

MapQuery

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

 

LookupQuery

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

 

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

Takes a variable number of conditional statements

 

ETableReply

Takes 2 parameters, Result, Status

 

[Ensure] Field Exists

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

 

ForEach

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

 

FailIfRecError

Has no parameters

 

 

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

 

 

 

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

 

[MaxLen]

Accepts a numeric value as a parameter.

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

 

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

 

[Footer] Raw HTML

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

 

[L] Lookup (DB Field Attribute)

Takes one parameter.

 

[Header] Raw HTML

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

 

NulStream$

Takes one parameter, bNoHeader

 

Lookup$

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

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

Path$

Takes one parameter, Index

 

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

 

RawStream$

Takes one parameter, a top query destination variable

 

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

 

Thread

Takes a variable number of parameters

 

ServerLog

Takes one parameter, ServerLogText

 

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.

 

Select / Case / End Select

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

 

OnError (Continue)

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

 

MoveQuery

Takes two parameters, DestinationQuery, SourceQuery

 

Remote

Takes three parameters, Url, InputQuery, OutputQuery

 

PaaS

Takes three parameters, Url, SaaSTenant, InputQuery, OutputQuery

 

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.

 

FieldDef$

Takes one parameter, FieldName

 

CsvStream$

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

 

JsonDecode$

Has two parameters: Source, Options

 

Json$

Has two parameters: Source, Name

 

Compress$

Compress any value/table

 

[AnyRecError]

Takes no parameters.

 

Setup Table

The Setup Table controls aspects that can be changed while the server is running, and is intended to contain both Moxie.Build specific values as well as application specific.

 

CFApi$

Takes three parameters Method, URL, Body

 

[L] Lookup (Top Query)

Takes one parameter.