Creating User Interfaces
Library WebUI Home

Overview

Startup & Operation Capturing & Displaying data Styling with CSS Sale lifecycle

Examples

Hello World / minimal Online Selling Page

Overrideables

User Message User Prompt Device

In Depth

EventSource realtime feed The Fieldpine Object UI Dispatch Data Fields Global Namespace Scripts

WebView2

Barcode Handling

Global Namespace

Fieldpine scripts add and use the following global namespace elements. This information is provided in good faith but may not cover all usage.

Variables / Objects

Fieldpine This object holds the majority of the Fieldpine definition

All items starting with Fieldpine or fdl are reserved to Fieldpine. This includes variables, script names, CSS elements, functions, basically everything. You should not use these strings in your names.

Local & Session Storage

Scripts add and use a range of elements starting with the prefix 'Fieldpine' or 'Fdl' (in any case)

FieldpineSessionId (sessionStorage) Contains a unique key identifying this session to the PosGreen engine (technical details)

Functions

Not all functions are scoped to the Fieldpine object, in general these will start with the prefixs 'Fieldpine' or 'Fdl' or 'eLink'

FieldpinePrimitive() and FieldpinePrimitiveP()

Can be called to send direct commands to the Fieldpine engine. FieldpinePrimitiveP() returns a promise

FieldpineUI()

Directly invokes a function to modify the user interface in some manner. See UIDispatch for more details

FieldpineDirect_AdviseSale()

FieldpineDirect_AdviseUIState()