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.

 

LoadRecord

Takes two parameters, TableName, RecordAlias

 

NewTableField

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

 

New

Takes two parameters, TableName, IfLenFld

 

LoadTable

Takes one parameter, TableName

 

ListFields

Takes one parameter, TableName

 

Get

Takes two parameters, TableName, IfLenFld

 

FlushAll

Has no parameters

 

ListTables

Has no parameters

 

ListRltns

Takes one parameter, TableName

 

ListProcs

Takes one parameter, TableName

 

SkipCalls

Takes no parameters

 

Session

Takes two parameters, Name, Value

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Update

Takes two parameters, TableName, IfLenFld

 

HtmlTab

Takes 3 parameters, Location, Mode, bWithNoHeader

 

UnloadTableFiles

Takes one parameter, TableName

 

NewWithAttach

Takes 4 parameters, TableName, Relation, OtherTableName, IfLenFld

 

NewTableRltn

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

 

NewTableProc

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

 

HtmlTable

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

 

PWHash

Takes three parameters, TableName, Alias, Password

 

ParentsAlias

Takes three parameters, ChildTableName, ParentTableName, Mode

 

HtmlHistory

Takes two parameters, Title, Path

 

Html

Takes 3 parameters, Location, Mode, Text

 

HttpCookie

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

 

NamesToLabels

Takes no parameters

 

HttpNoCache

Has no parameters.

 

WebSafe$

Takes one parameter, Source

 

TimeAdd$

Takes two parameters, Source, Value

 

Tcp$

Takes three parameters, ServerName, Port, bSecure, Send

 

TimeDif$

Takes two parameters, Source, Value

 

TimeZone$

Takes two parameters, Source, Value

 

TimeSub$

Takes two parameters, Source, Value

 

AppendTable

Takes one parameter, TableName

 

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

 

DeleteTable

Takes one parameter, TableName

 

Backfill

Has no parameters

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

ChildrenAlias

Takes two parameters, ChildTableName, Mode

 

Delete

Takes two parameters, TableName and a boolean expression

 

CopyTable

Takes four parameters, DestinationTable, SourceTable, bWithParents, bWithPWHashes

 

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

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

LoadJsonFile

Takes two parameters, PathToFile, Options

 

LoadCsvFileWS

Takes two parameters, FileName, bHasHeader

 

LoadNulFile

Takes two parameters, FileName, bHasHeader

 

LoadRawFile

Takes one parameter, FilePath

 

LoadPipeFileWS

Takes two parameters, FileName, bHasHeader

 

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

 

SaveCsvFile

Takes two parameters, FilePath, bUseHeader

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Pivot

Takes two parameters, FieldBase, PivotField

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

WithGroup

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

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

LoadCsvFile

Takes two parameters, FileName, bHasHeader

 

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

 

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

 

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

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

Folders

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

 

FixFields

Takes one parameter, a single character

 

Group

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

 

HtmlForm

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

 

JsonEmbed

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

 

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.

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

CopyQuery

Takes two parameters, destinationQuery, sourceQuery

 

CopyFirst

Takes two parameters, DestinationQuery, SourceQuery

 

LoadPipeFile

Takes two parameters, FileName, bHasHeader

 

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.

 

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.

 

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.

 

If (Not) / Then

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

 

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

Takes a variable number of conditional statements

 

JoinQuery

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

 

MapQuery

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

 

LookupQuery

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

 

[Ensure] Field Exists

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

 

CopyUnique

Takes four parameters, DestinationQuery, SourceQuery, UniqueField, UniqueValue

 

ETableReply

Takes 2 parameters, Result, Status

 

ForEach

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

 

FailIfRecError

Has no parameters

 

 

[Ajax]

Takes 3 parameters, Event, DestinationID, Path

 

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

Takes 1 parameter, a formatting mask

 

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

 

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.

 

 

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.

 

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

 

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

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

 

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

 

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

 

[If] Assignment (DB Field Attribute)

Parameter is divided into two parts, the Test and the Result if True. The test comes prior to the keyword of Then and the Result if True comes after.

 

MoveQuery

Takes two parameters, DestinationQuery, SourceQuery

 

Len%

Takes one parameter, a Source value

 

Left$

Takes two parameters, Source, Value

 

Len$

Takes one parameter, a Source value

 

NulStream$

Takes one parameter, bNoHeader

 

Lookup$

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

 

JsonDecode$

Has two parameters: Source, Options

 

Json$

Has two parameters: Source, Name

 

JsonEncode$

Has two parameters: Source, Options

 

Lang$

Takes one parameter, Source

 

JsonStream$

Has one parameter, Options

 

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

 

Right$

Takes two parameters, Source, Value

 

TabStream$

Takes one parameter, bNoHeaders

 

Setup$

Takes one parameter, Name

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

Path$

Takes one parameter, Index

 

RawStream$

Takes one parameter, a top query destination variable

 

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

 

Hmac$

Takes two parameters, Source, OptionsAndSecret

 

Throttle / End Throttle

Takes one parameter, SlowWritePercent

 

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.

 

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.

 

Moxie.cfg Config

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

 

PaaS

Takes three parameters, Url, SaaSTenant, InputQuery, OutputQuery

 

OnError (Continue)

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

 

Remote

Takes three parameters, Url, InputQuery, OutputQuery

 

ServerLog

Takes one parameter, ServerLogText

 

Select / Case / End Select

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

 

Compress$

Compress any value/table

 

CFApi$

Takes three parameters Method, URL, Body

 

CsvStream$

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

 

Hash$

Takes two parameters, Source, Options

 

FieldDef$

Takes one parameter, FieldName

 

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

 

[If] Assignment (Top Query)

Parameter is divided into two parts, the Test and the Result if True. The test comes prior to the keyword of Then and the Result if True comes after.

 

Bom$

Takes one parameter

 

[L] Lookup (Top Query)

Takes one parameter.