New application
New application makes an application from nothing in one page: its name, the database it keeps its data in, its tables, a screen for each table and its menu. Each stage only describes; nothing is written until Create, which runs the work step by step and shows each step as it goes. The application then opens in the Studio, where everything it holds is edited like any other application.
Access: Liberty Next → Build → New application, or A new application on Overview. Superusers only.
At a glance
The six stages
The stages are drawn as a strip of cards; a click on a card opens its stage, in any order. Each card says what its stage holds — 3 tables · 2 made · 1 read, A new database on default's server — and turns orange while something in it must be corrected.
| # | Stage | Holds |
|---|---|---|
| 1 | Application | Its name, in each language, and its id. |
| 2 | Database | Where its data lives: a new PostgreSQL database, a pool that exists, or another database. |
| 3 | Tables | Its tables: new ones typed here, ones started from a file, ones read from the database. |
| 4 | Screens | A screen per table, ticked or not. |
| 5 | Menu | The menu's entries, in the order given, at the top or in folders. |
| 6 | Create | What remains to fix, then what Create will do — and, once started, each step as it runs. |
The header says how many things are left to fix (2 things to fix); Create stays greyed out until there are none. Leaving the page with something described asks first.
1 · Application
| Field | Description |
|---|---|
| Name | What users see in the application list — Orders. |
| Id | Lower case: its connector, its menu and its permissions are named by it. It follows the name until it is typed, and is refused when a connector or a menu already has it. |
| In the other languages | The name in each other language of the installation. Left blank, the name above is shown. |
2 · Database
Three cards say where the data lives.
| Card | What happens | Fields |
|---|---|---|
| A new database | Created on the PostgreSQL server of an admin pool: its account, its database, a read-only account if wanted. Its pool is added. | Admin pool (a PostgreSQL pool allowed to create databases and accounts — default when the installation has it), Database and Account (both follow the id), Password (generated, can be changed), Read-only account (ticked: its name, <database>_read by default, and its password). |
| A pool that exists | The application works on a pool of the installation. On a PostgreSQL pool, its database is created when missing; otherwise it is used as it is. | Pool; on PostgreSQL, Its database — Create it when missing: the database and account its address names, with its password, on the same server as the Admin pool picked below, with a read-only account if wanted. |
| Another database | Oracle, SQL Server, Db2…: a new pool on it, edited in the form of the Pools page — database, account, schemas, database links, tuning — with Test connection. Its tables are read or created. | Pool name (follows the id), then the pool's form. |
See A new database for the same creation from Liberty Next → Administer → Pools.
3 · Tables
The application's tables are listed on the left, each with where it comes from (new, from a file, in the database), its number of columns and its key; the picked one is edited beside the list. Three buttons under the list add a table.
| Button | The table |
|---|---|
| New table | Asks its name in the database (lower case), then starts empty: its columns are typed here. |
| From a file… | An xlsx or csv file: the first row names the columns, a few rows tell their types. The first column is the key when its values are all present and all different. Its rows — Load the rows of … — loads every row once the table is made (every row or none). |
| From the database… | Offered on A pool that exists: a table of that pool, its schema then the table, read as the database has it — Read it. Its name, its columns and their types are kept; it is never created. |
Remove takes a table out of the application; a list of another table that read it is removed with it.
A table's settings
| Field | Description |
|---|---|
| Table | Its name in the database. Fixed for a table read from the database. |
| Label, Label in each other language | What the screen and the menu call it. |
| Its rows | A table from a file: load its rows once it is made. |
| Schema | A table read from the database: the schema it was read in. |
Its columns
One line per column; + a column adds one, the bin removes one.
| Column | Description |
|---|---|
| Column | Its name in the database: lower-case letters, digits and _. |
| Label, Label in each other language | What the grid and the record form call it. Blank: the name, made readable. |
| Type | Text, Whole number, Large whole number, Decimal number, Date, Date and time, Yes / no, Long text. |
| Size | A text's length (255), a decimal's digits and decimals (15,2). |
| Key | Part of the table's key. A table without a key gets a grid and a form to add rows: a row is not changed afterwards. |
| Required | A value must be given. |
| List | The values the field takes: another table of the application (its key is the value), or Values… typed here (open, closed). |
A table read from the database keeps its names and types — the database has them: only its labels, its key and its lists are set here.
4 · Screens
One card per table, ticked by default: a grid and its form, 5 columns. A ticked table gets a screen — its grid and its record form, every column, the keys first — and a menu entry. A table left unticked still gets its read and write statements and its labels, so that a list of another table can read it.
5 · Menu
The menu is named after the application. It holds one entry per screen, in the order given here — Up / Down on each line —, each At the top or in a folder. A folder adds one; its name is typed in each language. A folder no entry uses is not created. With no screen ticked, the menu is made empty.
Who may open the application is not set here: it is given in Liberty Next → Administer → Access, where a role may open several applications — see Roles & permissions.
6 · Create
Before it runs, the stage lists what remains to fix — each line opens its stage — and what Create will do, one line per step. Create, in the page header, runs them one after the other:
| Step | When |
|---|---|
| Database orders and its account orders | A new database. |
| The database of …, when missing | A pool that exists with Create it when missing. |
| Pool orders, connector and menu orders | Always: the application's pool (unless it exists), its connector and its menu — each file kept in the configuration history first —, then the configuration is reloaded. |
| Table orders created (5 columns) | Each new table and each table from a file. |
| Rows of customers.xlsx loaded into customers | A table from a file whose rows are to be loaded. |
| orders: its read · add · change · delete, labels, screen and menu entry | Each table: its statements, its dictionary entries (its lists among them) and, when ticked, its screen and its menu entry. |
Each line shows its state as it runs — done (with what the server said: 4 statement(s) run, 212 row(s) loaded), running, waiting — and the strip counts the steps done. While Create runs, the other stages show what was asked, read-only.
A step that fails stops the run there, with the server's message. What was done before is kept and said — Stopped. Done before and kept (nothing is undone): … —; the rest is not run. Once the application's base is made, Open in the Studio is offered even after a failure, to finish the work there.
When every step is done — Orders is ready. — Open in the Studio opens the new application on its map.
Access
The page is a superuser's, like the rest of the Liberty Next workspace. The new application then appears in the application list for the users whose roles give its menu entries.
Tips & best practices
- Start from a spreadsheet the team already keeps: From a file… gives the columns and their types, and Load the rows brings the data in the same run.
- Set each column's List here rather than later: it becomes the dropdown of the record form and the filter of the grid.
- Give a key to every table that is edited; a table without one only takes new rows.
- For a single screen on a table that already exists, the Screen Assistant is quicker.
- After Create, check the application in the Studio and give it to a role in Access.
Related
- Overview and Studio — where an application is seen whole and edited in place.
- Connectors — pools and the databases they reach.
- Table structure — a table's columns changed later.
- Apps — what an application is made of.