Search Results for data

 

 

 

 

 

 

 

 

 

 

 

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.

 

Update

A database command which takes two parameters, TableName, IfLenFld

 

CsvStream

Takes two parameters, CSVData, bNoHeaders

 

UpdateOrNewWithAttach

A database command which takes four parameters, TableName, Relation, OtherTableName, IfLenFld

 

UpdateOrNew

A database command which takes two parameters, TableName, IfLenFld

 

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.

 

SaveFile

Takes two parameters, FileName, FileData

 

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.

 

Home

Web Portals & Databases

 

[L] Lookup (Top Query)

Parameter is the database path that is to be looked up in the form of TableName|Alias|FieldName where it may be a specific fixed path or you may use {} to replace one or more of the path components where the value inside the {} is a field name in the current record.

 

HtmlETable

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

 

XmlStream

Takes one parameter, Data

 

TabStream

Takes two parameters, Data, bHasHeader

 

TemplateCustom

Takes one parameter, TemplateData

 

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.

 

[L] Lookup (DB Field Attribute)

Parameter is the database path that is to be looked up in the form of TableName|Alias|FieldName where it may be a specific fixed path or you may use {} to replace one or more of the path components where the value inside the {} is a field name in the current record.

 

Moxie.Build for Developers

Moxie.Build Keeps it Simple Using a fully integrated stack, its powerful design eliminates barriers to getting things done. One stack, one app, from 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.

 

SkipCalls

Takes no parameters

 

UnloadTableFiles

Takes one parameter, TableName

 

TabStream$

Takes one parameter, bNoHeaders

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Session

Takes two parameters, Name, Value

 

Html

Takes 3 parameters, Location, Mode, Text

 

HttpCookie

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

 

HtmlHistory

Takes two parameters, Title, Path

 

Tcp$

Takes three parameters, ServerName, Port, bSecure, Send

 

WebSafe$

Takes one parameter, Source

 

HttpNoCache

Has no parameters.

 

PWHash

Takes three parameters, TableName, Alias, Password

 

Backfill

Has no parameters

 

DetachWithDelete

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

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

Delete

Takes two parameters, TableName and a boolean expression

 

Detach

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

 

CopyTable

Takes two parameters, destinationTable, sourceTable

 

LoadTable

Takes one parameter, TableName

 

New

Takes two parameters, TableName, IfLenFld

 

NewWithAttach

Takes 4 parameters, TableName, Relation, OtherTableName, IfLenFld

 

Get

Takes one parameter, a TableName

 

AppendTable

Takes one parameter, TableName

 

LoadRecord

Takes two parameters, TableName, RecordAlias

 

WithGroup

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

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

HtmlDropdown

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

 

Text

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

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

SaveJsonFile

Takes two parameters, FileName, Options

 

SendEmail

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

 

HtmlDTable

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

 

HtmlTab

Takes 3 parameters, Location, Mode, bWithNoHeader

 

HtmlTable

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

 

NamesToLabels

Takes no parameters

 

HtmlRaw

Takes 3 parameters, Location, Mode, bWithNoHeader

 

HtmlForm

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

 

HtmlNav

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

 

HtmlNavbar

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

 

Plus8Decode

Takes three parameters, FieldBase, Fields, IfLenFld

 

Folders

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

 

Group

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

 

JsonStream

Used to manipulate a WorkQuery into a JSON type

 

FixFields

Takes one parameter, a single character

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

Files

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

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

NewRecords

Takes one parameter, QuantityToAdd

 

ParseRecords

Takes two parameters, WorkFieldBase + FieldToParse, Delimiter

 

Pivot

Takes two parameters, FieldBase, PivotField

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

LoadRawFile

Takes one parameter, FilePath

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

MergeRecords

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

 

Setup$

Takes one parameter, Name

 

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.

 

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.

 

[SearchFieldList]

Parameter is a space separated list of field names to be displayed when the user is viewing results from the Search List.

 

 

 

CopyQuery

Takes two parameters, destinationQuery, sourceQuery

 

[Ensure] Field Exists

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

 

FailIfRecError

Has no parameters

 

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.

 

AppendQuery

Takes 3 parameters, DestinationQuery, SourceQuery, bMoveIt

 

CopyFirst

Takes two parameters, DestinationQuery, SourceQuery

 

[MaxLen]

Accepts a numeric value as a parameter.

 

Syntax and Builtin Values, Procedures and Code Documentation

The MOX language pays heritage to BASIC, but has been crafted for the specific type of work and environment that is demanded of Moxie.Build.

 

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

 

Overview for PHP Developers

This hands-on experience article is written by an experienced PHP developer, and serves as an overview to help you understand the similarities and differences.

 

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

 

[!] Limited Selection List

Parameter is a comma separated list (without quotes) of the options made available to the user and enforced on save. 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 it is unchecked the value will be blank, and if it is checked the value will be "y". When used with a Top Query in MOX, this will ensure the field value matches one of the options, if not it will throw a run time error.

 

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

 

[Footer] Raw HTML

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

 

Lang$

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

Left$

Takes two parameters, Source, Value

 

Len%

Takes one parameter, a Source value

 

CsvStream$

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

 

FieldDef$

Takes a single parameter, in the format of TableName.FieldName#Deff where Deff is one of: Label, Attr, Note, or DevNote

 

JsonStream$

Used to manipulate a WorkQuery into a JSON type

 

RecoverHtml$

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

 

RecoverHtmlObj$

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

 

Right$

Takes two parameters, Source, Value

 

Len$

Takes one parameter, a Source value

 

Lookup$

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

 

NulStream$

Takes one parameter, bNoHeader

 

Compress$

Compress any value/table

 

LookupQuery

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

 

MapQuery

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

 

MoveQuery

Takes two parameters, DestinationQuery, SourceQuery

 

ForEach

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

 

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

Takes a variable number of conditional statements

 

If (Not) / Then

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

 

Try / Catch / Finally / End Try

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

 

[AnyRecError]

Takes no parameters.

 

CFApi$

Takes one parameter, a string parameter of the desired API command

 

OnError (Continue)

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

 

Remote

Takes three parameters, Url, InputQuery, OutputQuery

 

ServerLog

Takes one parameter, ServerLogText