Search Results for start

 

Get Started by Making it Your Own

This video demonstrates how to get started with Moxie.Build with basic customization.

 

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.

 

Get Started with Running on localhost

The following video demonstrates how to download Moxie.Build to your workstation, and run it on localhost.

 

Get Started with Development Examples

This list of examples is going to grow over time. We are open to requests, as well as submissions if you have something you would like to share.

 

Moxie.cfg Config

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

 

Server and Service Documentation

To get started, be sure to first read the Service Setup on a Server topic under the Get Started menu.

 

Moxie.http Headers

The optional Moxie.http file is read on server start and controls the default HTTP headers set for all requests.

 

Format$

Takes two parameters, a source value, and a formatting mask.

 

Greg$

Takes one parameter, a gregorian number

 

Ctid$

Has one parameter.

 

Asc$

Takes two parameters, SourceValue, Position

 

CFApi$

Takes three parameters Method, URL, Body

 

Hmac$

Takes two parameters, Source, OptionsAndSecret

 

Remain$

Takes two parameters, Source and Search

 

Remove$

Takes two parameters, Source and Search

 

LTrimAny$

Takes two parameters, Source, Search

 

JsonStream$

Has one parameter, Options

 

Left$

Takes two parameters, Source, Value

 

[Meta]

Takes no parameters

 

Cloudflared Tunnel

Cloudflared Tunnel exposes applications running on your local web server on any network with an internet connection with an outbound tunnel that connects directly to Cloudflare's edge network without the need to configure inbound firewall rules.

 

Command Line with .mox file

A .mox file, with MOX code in it, can be run from the command line while a Moxie.Build system is not otherwise already 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.

 

Sleep

Takes one parameter.

 

Thread

Takes a variable number of parameters

 

HtmlTable

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

 

[_#] Format if not blank (Top Query)

Takes 1 parameter, a formatting mask

 

[#] Format (Top Query)

Takes 1 parameter, a formatting mask

 

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.

 

HtmlNavbar

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

 

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.

 

DeleteFields

Takes two parameters, FieldBase, FieldNameList

 

Format

Takes five parameters, FieldBase, FieldList, Mask, bBlanks2Zero, IfLenFld

 

SSReference

A command to help build spreadsheets

 

HtmlBlocks / End HtmlBlocks

Takes two parameters, Location, Mode

 

XmlMerge

Takes two parameters, [WorkWith]+Scope, EmbedScope

 

Group

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

 

LoadJsonFile

Takes two parameters, PathToFile, Options

 

SaveJsonFile

Takes two parameters, FileName, Options

 

ListQueries

Takes no parameters

 

JsonEmbed

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

 

KeepFields

Takes two parameters, FieldBase, FieldNamesList

 

HtmlDTable

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

 

HtmlBlock / End HtmlBlock

Takes two parameters, Location, Mode

 

HtmlNav

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

 

HtmlAlert

Takes three parameters, Location, ClassNames, AlertText

 

Right$

Takes two parameters, Source, Value

 

Shell$

Takes two parameters Command, Options

 

HtmlButton

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

 

Update

Takes two parameters, TableName, IfLenFld

 

HtmlForm

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

 

New

Takes two parameters, TableName, IfLenFld

 

HtmlPageBreak

Takes two parameters, Location, Mode

 

HtmlReset

Has no parameters

 

[#] Format (DB Field Attribute)

Takes 1 parameter, a formatting mask

 

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

 

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

Takes 1 parameter, a formatting mask

 

[DatePicker]

Takes no parameters

 

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.

 

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.

 

[Sort] (DB Relationship Attribute)

Accepts a space separated list of field names.

 

Export and Import of Database Schema

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

 

 

 

 

Learn More About Managing Files

Prerequisites: This tutorial assumes that you have already set up your Moxie.Build server and logged in. This page covers some of the basics that are involved in managing files and folders in 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.

 

Templates Documentation

Prerequisites: This tutorial assumes that you have already learned about Managing Files .

 

Help with Markdown

Markdown enables simple formatting of plain text via easy to remember conventions. This page will provide you with some pointers on what formatting options are available with "Moxie Flavored Markdown".

 

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.

 

MsgBox

Takes two parameters, Text, Title

 

QBox

Takes two parameters, QueryName, Title

 

Meta

Takes any unspecified data, intended for use by external systems

 

Method

Private Method contained within a given procedure.

 

ServerLog

Takes one parameter, ServerLogText

 

SetKillCount

Takes one parameter, Value

 

Rem / EndRem

A type of Prefix which allows the developer to separate blocks of code into organized, defined parts to help provide clarity of the logical block and add structure to the code.

 

Select / Case / End Select

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

 

Call

Takes a variable number of parameters

 

CFPurge

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

 

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.

 

AjaxReply

Has no parameters

 

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

Takes a variable number of conditional statements

 

IncrKillCount

Has one parameter.

 

EmailErr

Takes two parameters, SubjectPrefix, EmailBody

 

ForEach

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