Prompted Scripts (.scr) Create Web Forms for Data Entry and Edit
“The technical specification for driving the ubprompt engine, ensuring absolute parity between the Data Dictionary and the User Interface.”
Execution & File Path
Scripts are stored as flat ASCII files in the /scripts directory. They act as the custom validation presentation layer and are invoked via the ubprompt utility.
The Header Record Configuration
The very first line of any .scr file is mandatory. It outlines the global operating parameters for the screen canvas.
Header Implementation Example:
The layout window is titled “Customer Entry”, instantiates at Row 2/Col 5, handles a 70×20 grid, renders in White on Black, and locks execution to Security Level 5.
Field Specification Syntax
Every line following the header represents an interactive input block. It adheres to a strict 10-position structural rule. Empty positional arrays must contain blank trailing commas.
| Position | Parameter Definition |
|---|---|
| 1. Label | The textual prompt displayed to the end-user. |
| 2. Name | The literal attribute link matching the corresponding entry in the dict.dat. |
| 3. Len | The physical character length allocated to the screen input box. |
| 4. Type | Explicit data type override constraints (e.g., DT, AN, N2). |
| 5. P-Row | Vertical terminal row positioning for the prompt label. |
| 6. P-Col | Horizontal terminal column positioning for the prompt label. |
| 7. D-Row | Vertical terminal row positioning for the actual entry field. |
| 8. D-Col | Horizontal terminal column positioning for the actual entry field. |
| 9. Modifiers | Real-time evaluation rules applied during value interception. |
| 10. Default | Pre-populated session constants or literal dynamic strings. |
Attribute Modifier Glossary
Modifiers are declared inside Position 9 to alter field-level traits and enforce business rules at the glass layer:
| M | Mandatory: Reject empty submittals; field requires structural data. |
| U | Uppercase: Automatically cast lowercase alpha characters to capitals. |
| R | Read Only: Protects values (like background math calculations) from manual modification. |
| V | Verify: Forces an instantaneous referential integrity lookup against linked tables. |
| H | Hidden: Invisible runtime capture fields (used for passing tokens or system IDs securely). |
| P | Pattern: Imposes input masking logic onto structural data strings. |
| L | Lookup: Spawns a floating modal search interface if entry parameters fail index matches. |
| C | Clear: Purges the localized lower coordinate terminal space immediately upon activation. |
Attribute Modifier & Variable Examples
Example: Mandatory & Uppercase Verification
Enforces a 10-character alphanumeric layout that forces uppercase input and triggers schema verification.
Example: System Session Mapping
Captures and displays the running date as a protected, un-editable input baseline.
Multi-Column Offset Layouts
To array layout properties into horizontal rows, pin the matching row parameters while offsetting column markers across the axis:
State, state_code, 2, AN, 8, 35, 8, 42, MU,
Zip, zip_code, 10, N0, 8, 50, 8, 55, M,
The engine executes these three discrete fields side-by-side along Row 8 of the UI wrapper.
Separators & Logic Branching
Visual Break Separator Lines
Assigning a hyphen to the label variable outputs a clean divider rule from Column 2 to 70 across Row 7.
Procedural Branching (The GOTO Directive)
IF “Y” GOTO TOTALS
Address 1, ship_adr1, 30, AN, 11, 2, 11, 20, M,
[… sequential secondary shipping attributes …]
:TOTALS
Final Total, order_total, 12, N2, 15, 2, 15, 20, R,
The conditional array breaks procedural top-down flow, skipping past non-applicable input configurations dynamically based on real-time data states.