Data
74 pages
Guides
Production databasesbetaConnect Production Data lets your app keep its records in your own PostgreSQL or Supabase database instead of the built-in database. MyAppBuilder always inspects your existing structure first, without making changes, and every schema change is shown to you as a reviewed migrationBindingsEvery property of a component is either static — a value you type that never changes — or dynamic , a binding that is computed when the page runs: the current record's name, the signed-in user's email, a page parameter, a count of records, or a text template that mixes words and Connect PostgreSQLbetaConnect a PostgreSQL database (version 13 or newer) to one environment of your app. The connection is tested and inspected read-only before any change is proposed. This feature is in beta .Connect SupabasebetaSupabase projects run PostgreSQL, so the flow is the same as Connect PostgreSQL, with a few Supabase-specific settings. This feature is in beta .Data backups and restorebetaA data snapshot saves every record of your app's test data or live data at one moment, so you can bring that data back later. Snapshots are in beta .Data sourcesBy default every entity is stored in the built-in database : hosted, backed up and secured for you, with separate test and live data. When your records already live elsewhere, you can connect an external data source — a PostgreSQL database, a Supabase project or a REST API — and Database credentials and permissionsbetaMyAppBuilder uses up to three separate database users per environment, so each job only has the permissions it needs. Credentials are encrypted on the server, never stored in your app definition and never sent back to the browser. This feature is in beta .Database migrationsbetaA migration brings your database in line with your app's entities and fields. MyAppBuilder never changes a database without showing you the plan first. This feature is in beta .Database troubleshootingbetaDatabase errors are shown in plain language with a list of things to check. Show technical details reveals the raw database message for your database administrator. This feature is in beta .Documents (print and PDF)betaThe Document component turns one record and its line items into a printable business document: a quotation, a purchase order, a work-order report, an inspection report or a receipt. People open it with Print / Save as PDF and use the browser's print dialog, or attach it privatelyEntitiesAn entity is one kind of thing your business keeps track of — customers, jobs, invoices, bookings, products. Each entity has fields (what you store about it), records (the actual items) and relationships to other entities. Entities are the foundation of every page: tables list thExport CSVExporting downloads every record of an entity as a CSV file you can open in Excel, Google Sheets or any other tool. Use it to back up data before a risky change, to analyse records elsewhere, to hand data to an accountant, or to produce a template for importing. The export coversFieldsFields are the pieces of information you keep about each record of an entity: a customer's Name, Email and Status; a job's Title, Scheduled date and Technician. Each field has a type that decides how it is entered, validated, stored and displayed, plus flags such as required and How production data worksbetaDesign with preview data. Connect your database for production. Build and test your application safely. When you're ready to launch, connect your own supported production database. This page explains what happens to your data at each step. Connecting a production database is in bImport CSVImporting a CSV file is the fastest way to load existing data — a customer list from a spreadsheet, a product catalogue, last year's invoices — into an entity. The importer matches the file's columns to your fields by label or key, validates every row exactly like a form would, cImporting existing databetaImport rows from your existing tables into app-managed tables, with a reviewed column mapping and transformations. An import is a one-time copy: there is no two-way sync. This feature is in beta .MySQL, MariaDB and SQL ServerexperimentalMySQL, MariaDB and SQL Server are planned and not available in the product yet. They do not appear in the Connect Production Data wizard, and there are no setup instructions for them.Publishing with a databasebetaWhen an environment uses your own database, publishing also checks that the database matches the app version you are publishing. This feature is in beta .QueriesA query is the instruction a component uses to fetch records: show Jobs where Status is "Open", newest first, at most 50 . Tables, cards, lists, data grids, kanban boards, calendars, timelines, galleries, charts and KPIs all read their records through a query configured on the coRecordsThe Records tab of an entity is the built-in data editor: a table of every record where you add, edit and delete items, search, filter and sort, select many at once, import and export CSV files and generate sample data. It works on the same data your pages use, in either the testRelationshipsA relationship connects two entities so that records can refer to each other: a job belongs to a customer, an invoice has many line items, a project involves many staff members. Technically a relationship is stored as a link field on one of the two entities; the builder creates aSchema driftbetaDrift means the database no longer matches what the app expects, usually because someone changed it outside MyAppBuilder. This feature is in beta .Spreadsheet to appbetaTurn the spreadsheet your team already uses into an app. MyAppBuilder reads the structure of a CSV or Excel (.xlsx) file — sheets, column names, the kind of values in each column and the links between sheets — proposes tables and fields for you to review, and builds an app previeStateState is what your app remembers while someone uses it: the location they selected, the tab that is open, the text in a search box, who is signed in, which record the address points at. MyAppBuilder has five kinds of state, each with a clear lifetime and a place in the data picke
Reference
Data overviewYour app's data lives in a built-in database that MyAppBuilder hosts, backs up and secures for you. You describe it in business terms — entities such as Customers or Jobs, with fields such as Name, Email or Status, linked by relationships — and the builder keeps two separate setsData pickerThe data picker is the menu that opens when you click ⚡ next to a value: in the inspector, in filters, in conditions, in action settings and in navigation parameters. It lists every dynamic value available at that spot, grouped by where the value comes from, with a search box at Field typesEvery field has one of twenty types. The type decides which input a form shows, how values are validated and stored, how they are displayed in tables and cards, which filter operators make sense and how CSV imports are read. Three of the types are system types filled in automaticFilters and operatorsFilters narrow a set of records to those that match a rule: Status is "Open" , Amount ≥ 100 , Email is Current user › email . The same thirteen operators are used by query filters on the Data tab, by the filter builder in the records editor, by visibility rules and conditions, anPaginationPagination splits a long list into pages so screens stay fast and readable. List components page their records automatically: a table shows 10 rows per page by default, a data grid 25, a list 20, cards 12, and each has its own previous/next controls. For layouts where the controlSortingSorting decides the order in which records are shown. Every query has one sort — a field and a direction — with Created, descending (newest first) as the default, and tables let visitors re-sort by clicking column headers. Sorting is done on the server, after filters and permissiTest and live dataEvery entity has two completely separate sets of records. Test data is what the builder, the preview and staging deployments use, so you can design, try forms and run workflows without touching anything real. Live data is what your published production app reads and writes. The d
Field types
Created atThe date and time the record was created — set automatically.Created byThe app user who created the record — set automatically; empty for anonymous visitors.CurrencyStores monetary values and displays them in the app's currency and locale.DateA calendar day without a time: appointment date, due date, birthday.Date & timeA date with a time: appointment start, delivery slot, check-in time.DecimalA number that always keeps two decimal places — percentages, rates, hours worked, weights.EmailA validated email address, stored lowercase and shown as a clickable mail link.FileAn uploaded document — PDF, contract, spreadsheet, photo — stored in your app's file storage.ImageAn uploaded picture, shown as a thumbnail in tables and full-size in galleries, cards and detail views.JSONStructured data (lists or objects) kept as-is — for API responses, settings blobs or anything without a fixed shape.Link (URL)A web address that must start with http:// or https://, shown as a link that opens in a new tab.Link to entityLinks a record to one or many records of another entity — the customer of a job, the products of an order.Long textMulti-line text for notes, descriptions, messages and anything longer than a sentence.Multi selectSeveral choices from a fixed list — tags, services requested, skills, allergens.NumberWhole or decimal numbers: quantities, counts, scores, measurements.PhoneA phone number, shown as a tap-to-call link.Single selectOne choice from a fixed list of options — status, category, priority, plan.TextShort, single-line text such as a name, a title, a reference number or a city.Updated atThe date and time of the last change to the record — updated automatically on every save.Yes / NoA simple on/off value: active, paid, confirmed, newsletter opt-in.
Data binding
Action resultsWhat a previous action in the same list returned — the created record, an API response, an uploaded file URL, a workflow's results.API resultsThe response of one of your API sources, used as the data of a table, list or cards.App stateA variable shared by every page of the app for the current visit — the cart, the selected branch, a “compact mode” switch.Component stateValues a component exposes about itself: the selected row of a table, the value of an input, whether a modal is open, the active tab.Current pageThe name, route or id of the page being shown.Current recordA field of the record currently in scope — the row of a table, the item of a list, the record of a detail view or edit form.Current userInformation about the signed-in app user: id, email, name, role (display name), role id (stable) and whether they are signed in.DatabaseRecords (or a count/sum) from one of your entities, with filters, sorting, a limit, search and grouping.Entity fieldA field of a specific entity — like Current record, but the binding names the entity explicitly.EventData carried by the event that started the actions: the new value of an input, the clicked record, the current loop item, an error message.Form fieldsThe current value of an input in the surrounding form, by input name.Page parametersValues taken from the page's address, such as the `id` in `/customers/:id`.Page stateA variable that belongs to one page — the active filter, the selected tab, a “show archived” toggle.Query parametersOptional values after the `?` in the address, such as `?tab=invoices` or `?status=open`.Shared data from a connected appbetaRead-only rows of a table that another app of your workspace shares with this app, used as the data of a table, list, cards, dropdown or KPI.Static valueA fixed value you type in: a label, a number, a colour, a yes/no. It never changes while the app runs.Text templateText with `{{ }}` placeholders that are filled in with live data: `Welcome {{user.name}}`, `Order #{{record.number}} — {{record.status}}`.Workflow resultsexperimentalMeant to expose the saved results of a workflow as a data source.
State
App stateVariables shared by all pages during a visit, declared once with a name, a type and a default — optionally kept across reloads.Component stateState that components publish about themselves — selections, values, open/closed, active tab — readable by other components and settable by actions.Page stateVariables that belong to one page — filters, toggles, the current step — separate from other pages.Session (current user)Who is using the app right now: signed-in app user or anonymous visitor, with id, email, name and role.URL (page and query parameters)Values that live in the page address: route parameters such as `/customers/:id` and query parameters such as `?tab=history`.