Search Results for tab

 

DeleteTableProc

Takes two parameters, a TableName and ProcName

 

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.

 

CopyTable

Takes four parameters, DestinationTable, SourceTable, bWithParents, bWithPWHashes

 

DeleteTableRltn

Takes two parameters, a TableName1 and TableName2

 

ReorderTableRltns

Takes two parameters, TableName, RltnList

 

ResetTableNextAlias

Takes one parameter, TableName

 

ReorderTableFields

Takes two parameters, TableName, FieldList

 

ReorderTableProcs

Takes two parameters, TableName, ProcList

 

NewTableField

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

 

NewTableProc

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

 

LoadTableFiles

Takes one parameter, TableName

 

LoadTableFields

Takes one parameter, TableName

 

AppendTable

Takes one parameter, TableName

 

EmptyTable

Takes one parameter, the name of a database table

 

NewTableRltn

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

 

LoadTable

Takes one parameter, TableName

 

UpdateTableProc

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

 

UpdateTableField

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

 

ETableStream

Takes two parameters, ExcelTableData, Options

 

UpdateTableRltn

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

 

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.

 

DeleteTable

Takes one parameter, TableName

 

UnloadTableFiles

Takes one parameter, TableName

 

DeleteTableField

Takes two parameters, a TableName and FieldName

 

NewTable

Takes two parameters, TableName, AutoAlias

 

HtmlETable

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

 

TabStream

Takes two parameters, Data, bHasHeader

 

HtmlDTable

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

 

MakeValidTable$

Takes one parameter, Source

 

HtmlTable

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

 

HtmlTab

Takes 3 parameters, Location, Mode, bWithNoHeader

 

 

Export and Import of Database Schema

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

 

LoadTabFile

Takes two parameters, FileName, bHasHeader

 

ETableReply

Takes 2 parameters, Result, Status

 

IsValidTable$

Takes one parameter, a Source value

 

SaveTabFile

Takes two parameters, FileName, bUseHeader

 

ListTables

Has no parameters

 

TabStream$

Takes one parameter, bNoHeaders

 

 

 

 

 

 

 

 

 

 

Exists$

Takes two parameters, DBTableName, DBTableRecordAlias

 

FirstAlias$

Takes one parameter, TableName

 

Delete

Takes two parameters, TableName and a boolean expression

 

PWHash$

Takes three parameters, TableName, Alias, Password

 

LastAlias$

Takes one parameter, TableName

 

Lookup$

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

 

ChildrenAlias

Takes two parameters, ChildTableName, Mode

 

Children

Takes two parameters, ChildTableName, Mode

 

Attach

Takes 3 parameters, ParentTableName, ChildTableName, IfLenFld

 

Parents

Takes three parameters, ChildTableName, ParentTableName, Mode

 

ParentsAlias

Takes three parameters, ChildTableName, ParentTableName, Mode

 

New

Takes two parameters, TableName, IfLenFld

 

NewWithAttach

Takes 4 parameters, TableName, Relation, OtherTableName, IfLenFld

 

PWHash

Takes three parameters, TableName, Alias, Password

 

UpdateOrNew

Takes two parameters, TableName, IfLenFld

 

UpdateOrNewWithAttach

Takes four parameters, TableName, Relation, OtherTableName, IfLenFld

 

Search

Takes three parameters, TableName, SearchTerms, SearchInFields

 

Update

Takes two parameters, TableName, IfLenFld

 

Flush

Takes one parameter, TableName

 

Get

Takes two parameters, TableName, IfLenFld

 

Detach

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

 

DetachWithDelete

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

 

ListFields

Takes one parameter, TableName

 

LoadRecord

Takes two parameters, TableName, RecordAlias

 

Lookup

Takes six parameters, FieldBase, Destination, Table, Alias, SourceField, IfLenFld

 

ListProcs

Takes one parameter, TableName

 

ListRltns

Takes one parameter, TableName

 

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

 

[A] Copy Attached Value

Parameter must first specify only looking at Parents ( PARENT ) or only looking at Children ( CHILD ). The remainder of the parameter should be the table and field name you are after in the form of TableName.FieldName.

 

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

 

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.

 

[+] Sum of Field of Attached Child Records

Parameter is the table and field name that you want to sum in the form of TableName.FieldName. The specified Table must be a Child of the calling Record.

 

[&] Count Attached Child Records

Takes 1 Parameter which is the Table name that you want to count the Attached Records in. The specified Table must be a Child of the calling Record's 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.

 

Compress$

Compress any value/table

 

[SearchSort]

Parameter is a space separated list of field names to have the display table sorted by when displaying search results in the Admin interface.

 

 

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.

 

 

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.

 

CsvStream

Takes two parameters, CSVData, bNoHeaders

 

Build

Takes a variable number of parameters

 

EnsureFields

Takes two parameters, FieldBase, FieldNames

 

DeleteFields

Takes two parameters, FieldBase, FieldNameList

 

Session

Takes two parameters, Name, Value

 

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.

 

SkipCalls

Takes no parameters

 

Setup

Takes two parameters, Name, Value

 

[Footer] Raw HTML

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

 

 

[Date] (DB Field Attribute)

Has no parameters.

 

[#] Format (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

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

 

[Header] Raw HTML

Accepts one parameter which is the raw HTML content to be placed in the form, above 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.

 

Style Guide, Procedures and Code Documentation

In order for source code to be more readily readable across teams, it is recommended that your source code always be styled according to this style guide.

 

Licensing

Moxie.Build, in short, may be used and licensed free of charge for education and non-profit organizations. Whenever it is used by government or for-profit organizations the license is granted on a subscription basis.

Moxie.Build includes a number of open source components as part of its distribution; each is subject to their own licenses as included with the files for those components.

 

Learn More About the Content Management System

Prerequisites: This page assumes that you have already set up your Moxie.Build server and logged in as an admin user. This page covers some of the basics that are involved in using the Content Management aspects of the Moxie.Build system.

 

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.

 

FlushAll

Has no parameters

 

[Ajax]

Takes 3 parameters, Trigger, DestinationID, Path

 

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

Takes 1 parameter, a formatting mask

 

EnsureNavFields

Takes two parameters, FieldBase, FieldNamesList

 

SSReference

A command to help build spreadsheets

 

Sort

Takes two parameters, FieldBase, SortFieldList

 

Time

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

 

Text

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

 

SetIf

Takes six parameters, FieldBase, Destination, Source, Left, Comparison, Right

 

SendEmail

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

 

SetNew

Takes four parameters, FieldBase, FieldName, Source, IfLenFld

 

SetIfAll

Takes a variable number of parameters, FieldBase, Destination, Source, Test1, Test2, [etc...]

 

Value

Takes four parameters, FieldBase, Destination, Function, IfLenFld

 

HtmlNavbar

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

 

HtmlNav

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

 

NamesToLabels

Takes no parameters

 

Lang

Takes four parameters, FieldBase, Destination, Source, IfLenFld

 

GetFieldDefs

Has no parameters.

 

WithGroup

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

 

HtmlForm

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

 

HtmlDropdown

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

 

SaveJsonFile

Takes two parameters, FileName, Options

 

KeepIfFound

Takes 3 parameters, FieldBase, Fields, SearchTerms

 

KeepIfAll

Takes a variable number of parameters, FieldBase, Test1, Test2, [etc..]

 

ListQueries

Takes no parameters

 

KeepUnique

Takes one parameter, FieldName

 

Geo

Takes nine parameters, FieldBase, Destination, Function, Source1, Source2, Source3, Source4, Options, IfLenFld

 

FixFields

Takes one parameter, a single character

 

KeepIf

Takes 4 parameters, FieldBase, Left, Comparison, Right

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

LoadNulFile

Takes two parameters, FileName, bHasHeader

 

PickFirstField

Takes three parameters, FieldBase, Destination, SourceFields

 

Parse

Takes seven parameters, FieldBase, Destination, Source, bAny, Delimiter, Item, IfLenFld

 

Pull

Takes three parameters, QueryName, FieldBase, FieldNames

 

Plus8Encode

Takes three parameters, FieldBase, Fields, IfLenFld

 

LTrimFields

Takes one parameter, FieldBaseToTrim

 

LoadRawFile

Takes one parameter, FilePath

 

NewRecords

Takes one parameter, QuantityToAdd

 

NameField

Takes three parameters, FieldBase, OldFieldName, NewFieldName

 

Moxie.cfg Config

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

 

Cloudflare Origin Certificates

Cloudflare automatically provides free client-facing certificates for your domain, even if using their free service. In addition, they provide free Origin Certificates to encrypt the connection between Cloudflare and your origin Moxie.Build server. Use this article if you are going to have Cloudflare connect to inbound open ports on your Moxie.Build server.

 

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

 

[AnyRecError]

Takes no parameters.

 

Using the Backtick `

Some Work Query command parameters can accept a source of either a Work Query Field name or a text literal. Text literals in these cases are prefixed with a backtick ` character.

 

Sleep

Takes one parameter.

 

ServerLog

Takes one parameter, ServerLogText

 

Thread

Takes a variable number of parameters

 

Cloudflare Integration

Cloudflare is a first and foremost a Web Application Firewall and Content Distribution Network, among other additional services

 

Try / Catch / Finally / End Try

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

 

IsGroupType$

Takes two parameters: Username, GroupTypes

 

FieldDef$

Takes one parameter, FieldName

 

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.

 

JsonStream$

Has one parameter, Options

 

JsonEncode$

Has two parameters: Source, Options

 

CFApi$

Takes three parameters Method, URL, Body

 

[L] Lookup (Top Query)

Takes one parameter.

 

CheckPw$

Takes two parameters, User and Password

 

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.

 

CsvStream$

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

 

Critical

Takes one parameter, the Name of the critical section

 

CopyUnique

Takes four parameters, DestinationQuery, SourceQuery, UniqueField, UniqueValue

 

EmailErr

Takes two parameters, SubjectPrefix, EmailBody

 

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.

 

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.

 

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.

 

CFPurge

Takes one parameter, the URL to purge from CloudFlare's cache

 

CopyQuery

Takes two parameters, destinationQuery, sourceQuery

 

CopyFirst

Takes two parameters, DestinationQuery, SourceQuery

 

OnError (Continue)

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

 

LangWith

Has one parameter, a Content.Lang prefix

 

PaaS

Takes three parameters, Url, SaaSTenant, InputQuery, OutputQuery

 

Remote

Takes three parameters, Url, InputQuery, OutputQuery

 

[Pull] List of Fields from another Query

Takes three parameters, QueryName, FieldBase, FieldNames

 

Foreign

Takes a single parameter, a QueryName

 

ForEach

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

 

ForeignWith

Takes a single parameter, a FieldBase

 

If (Not) / Then

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

 

GoTo

Takes one parameter, a Label

 

TimeAdd$

Takes two parameters, Source, Value

 

Setup$

Takes one parameter, Name

 

TimeDif$

Takes two parameters, Source, Value

 

TimeZone$

Takes two parameters, Source, Value

 

TimeSub$

Takes two parameters, Source, Value

 

SessionIsGroupType$

Takes one parameter, a List of possible group types

 

RecoverHtml$

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

 

RawStream$

Takes one parameter, a top query destination variable

 

RecoverHtmlObj$

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

 

[Raw] Raw HTML

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

 

Backfill

Has no parameters

 

 

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

 

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

 

Utf16ToUtf8$

Takes one parameter, Source

 

Utf16ToAnsi$

Takes one parameter, Source

 

WebSafe$

Takes one parameter, Source

 

TemplateCustom

Takes one parameter, TemplateData

 

HtmlHistory

Takes two parameters, Title, Path

 

[FieldList]

Parameter is a space separated list of field names to be displayed.

 

LoadFile$

Takes one parameter, PathToFile

 

 

Lang$

Takes one parameter, Source

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.