Define new Object
Suppose we are making a health application, we might need an object type called patient with fields such as name and dob (date of birth), etc..
To define the object in Logiak, we would go to the Objects tab, click the + Object button and enter the name for the new object..
In the dialogue that appears, you give the name of the new Object Type.
Note: Object Types in Logiak map on to database tables, so object names are restricted to names which can be valid as database tables - no spaces, no obvious database keywords, etc. are permitted.
There is a dropdown indicating "Object type" which by default is "data". Leave it like that and we will discuss other types later,
The newly created object will appear in the list of objects, as below.
To add or edit fields, click the green arrow in the final column of the patient row to "go into" the Object definition.
From here, you can select to add a field to the Object (type) you selected -
To define a field give:
- Name - the field name must be lower case, contain no spaces
- Type of data - whether the field will hold a DATE, TEXT, NUMBER, TRUE/FALSE etc.
- Description - short and readable:to supplement the field name, add a longer variant text which accurately describes the meaning of the field. Still keep it as brief as possible however. Think of it as "long name" in which you should still name the field, but you are freed from the restrictions which apply to field names and may use Upper Case letters, spaces etc.
It is important to note that field descriptions are what represent fields in Object Views - they should be short and readable
You can continue adding fields to build up the object definition -