Every field type in Parsware, explained
Text, numbers, yes/no, dates, option sets, lookups to one table or several, files and images. What each field type stores, the settings it takes, and the control a form shows for it, built on one table.

A table is only as useful as its fields. Pick the right type and a form knows which control to show, a view knows how to sort and filter, and a report knows how to format the value. Pick the wrong one and every one of those works against you.
Parsware has eleven field types. In this article we build one table, Training Course, with one field of each type, then fill in a course so you can see what each one looks like to the person using it. Every picture is the real product.
The table
In a solution (ours is Sales, with the prefix con_), create a table called Training
Course. It starts with one field, Name, which is text. The rest we add with New on the
Fields page, choosing a Data type for each.

All eleven at a glance
| Type | Stores | Settings worth knowing | On a form |
|---|---|---|---|
| Text | One line of text | Max length | A text box, or a dropdown |
| Multiline text | Longer writing | — | A larger text area |
| Integer | A whole number | — | A number box |
| Decimal | A number with a fractional part | Precision, scale | A number box |
| Boolean | Yes or no | Check box or toggle | A check box or a switch |
| Date/time | A date, a time, or both | Which part to show, Gregorian or Persian, and the format | A calendar with a time picker |
| Option set | One value from a fixed list | Which option set | A dropdown, with the option's colour |
| Lookup | A link to one record in one other table | The related table | A search box that finds records as you type |
| Lookup (several tables) | A link to a record in one of several tables | Two or more related tables | The same search, with a tab per table |
| File | A document | — | Choose, replace or remove a file |
| Image | A picture | — | A picture you can choose or replace |
Every type also has Required and a Default control. Required is checked on forms, and the default control is set once, here, for every form and view that shows the field. The next article covers both.
Text and numbers
Text holds a single line, up to its Max length. Multiline text is for anything longer, like our course's Summary, and gets a larger box on the form.
Integer is a whole number, like Seats. Decimal has a fractional part, like Price. Its Precision is how many digits it holds in total, and its Scale is how many of them come after the decimal point.
Yes or no
Boolean is yes or no. Its Default control decides how it looks: a check box, or a toggle like our Online field.
Dates and times
Date/time is one type with several faces. Its Default control chooses what a form shows: the date and time, just the date, or just the time. Each comes in a Persian version too, which shows the Jalali calendar. The Default format sets how the value is written in forms and views.
On the form, it opens a calendar with the time underneath:

Option sets: a fixed list
An option set field takes one value from a list you define once and reuse on any table, with a colour for each option. Our Level field uses a Course level option set: Beginner, Intermediate and Advanced.
On the form it's a dropdown:

Use an option set when the values are part of your application's design and change only when you change the application. When people add values as they work, such as product categories or office locations, make those a table and use a lookup instead.
Lookups: a link to another record
A Lookup points at one record in another table. Our Trainer is a Contact.
It stores the record itself, not a name typed by hand, so the link survives the contact changing their name, and the form offers a search that finds contacts as you type. Creating the lookup also creates the relationship between the two tables.
A lookup to several tables
Sometimes a value can be a record from one of several tables. A course can be booked by a company or by a person, so Booked By is a Lookup (several tables) pointing at Account and Contact.
Tick at least two tables. For one, use a plain Lookup, which gets a real foreign key in the database. On the form, the search has a tab for each table:

Files and images
File holds a document, like the course Handout. Image holds a picture, like its Cover. On a form you choose, replace or remove them. On a new record they are uploaded when you save it. Both are meant for a record's own small files, and each is capped in size. Larger files go to object storage, which has an article of its own later in this series.
Three more you will meet
The field drawer offers the eleven types above. Three more appear on tables without you choosing them from that list, and each has its own article.
- Auto number gives every new record a reference such as CR-2026-417, built from a pattern you write once. It is stored as the formatted text, because that is what people quote on the phone and what they search for. See Reference numbers that number themselves.
- State and Reason are on every table. State says where a record is in its life, active or inactive, and Reason says why. See States and reasons.
What each type becomes in the database
Every field is a real column in the environment's own PostgreSQL schema, of a type that matches what it holds. You never write this yourself, but knowing it explains a lot about how views sort, how reports format and how big a value can be.
| Field type | Column | What that means for you |
|---|---|---|
| Text | varchar(n), where n is the max length (100 if you leave it empty) |
A longer value is refused, not cut short |
| Multiline text | text |
No practical limit for notes and descriptions |
| Integer | bigint |
Whole numbers into the quintillions, so a quantity never overflows |
| Decimal | numeric(precision, scale), 18 and 2 unless you say otherwise |
Exact: £0.10 + £0.20 is £0.30, never £0.30000000000000004 |
| Boolean | boolean |
Yes, no, or empty if nobody has answered |
| Date/time | timestamptz |
Stored once, shown in each person's own time zone and calendar |
| Option set | bigint |
The option's number, so renaming an option changes no record |
| Lookup | uuid, with a foreign key to the related table |
A link to a record that no longer exists can't be saved |
| Lookup (several tables) | uuid, plus a second column naming the table |
Checked when saved, since one column can't have a key to two tables |
| File, Image | text, holding a reference to the stored file |
The bytes live beside the record, or in object storage when large |
Because each value has a real type, a view sorts Seats as numbers (9 before 10), a filter on Starts can ask for every course after a given date, and a report can add up Price without converting anything.
How values look to a script or an integration
Most types travel exactly as you would expect: text as a string, numbers as numbers, a boolean as
true or false, a date as an ISO date and time. A few are worth seeing once. This is the course
from the picture above, as the record API returns it:
{
"con_name": "Writing for the web",
"con_seats": 12,
"con_price": 450.00,
"con_online": true,
"con_starts": "2026-09-14T09:30:00Z",
"con_level": 270150001,
"con_trainer": "6b0d8f2e-6a7c-4a7e-9a55-1f0c2d3b4a11",
"con_bookedby": "account:3f1c9a40-2b7d-4c6e-8f10-5a9b8c7d6e21",
"con_handout": "recordfile:91a2b3c4-d5e6-47f8-9a0b-1c2d3e4f5a6b"
}
- An option set is its number, not its label, so a script that checks for Advanced keeps working after somebody renames it to Expert. The numbers come from the publisher's option value base, which is why they are large.
- A lookup is the id of the record it points at.
- A lookup to several tables is the table's logical name and the id, joined by a colon, so one value says both which table and which record.
- A file or an image is a reference to where the file is kept. Read the bytes through the record's file address, which checks that the reader may see the record.
The ids above are made up for the example. What a script can see shows the same values from BS Lang.
Choosing between types that look alike
Most mistakes with field types are a choice between two that both seem to fit.
Text or option set? If the values are a short list you decide, such as Beginner and Advanced, use an option set: nobody can type Begginer, and each option can have a colour. If people make up values as they go, such as a supplier's name, use text.
Option set or lookup? If people add values while they work, such as new office locations, those values are records: make a table and point a lookup at it. An option set changes only when the application is changed and imported again. Option sets goes further into the trade-off.
Integer or decimal? Anything you count is an integer: seats, items, days. Anything you measure or pay is a decimal, with the scale set to the smallest unit that matters, 2 for money.
Date only, or date and time? It is the same type either way; the default control decides what the form shows. Choose Date for a birthday or a due date, where a time would only confuse. Persian calendars and date formats covers the Jalali controls.
Lookup or lookup to several tables? Use the plain lookup whenever one table will do, because it gets a foreign key and the database itself guarantees the link. Use several tables only when the value really can be either, as with a customer that is an account or a contact. One lookup, several tables walks through that case.
File, or a link to object storage? A record's own small documents and pictures belong in a File or Image field. Large files: where they go explains what happens to one over the size cap.
Pick the type before you save
A field's logical name and its data type are fixed once it is saved. Its display name, whether it is required, its default control and its format can all change later. The type can't, because the column underneath would have to be rewritten and every value in it converted. If you chose text and later need a lookup, add a new lookup field, fill it in, and remove the old one.
The same rule protects you when a solution arrives from elsewhere: an import that tries to change the type of an existing field is refused before anything is written, with the table and the field named.
The result
With the fields placed on the table's form and the table in an app, adding a course fills in every type at once: typed text and numbers, a switch, a calendar, a dropdown, two searches, a file and a picture. Saved, each value goes into a column of its own type in the environment's database, so views can sort and filter it, reports can format it, and scripts can read it.

Next: required and read-only fields, and the default controls a field brings to every form.