form
form, tile type
The form
tile is intended to display a form where values can be manually entered from the dashboard view. The variables listed for display in this tile are expected to be attached to the virtual Form
table. Variables defined in forms are always scalars and their type should be explicitly declared.
read form with
StartDate : date
IsTicked : boolean
Category : text
MyHidden : text
show form "My settings" a1b2 with
Form.StartDate as "My start date"
Form.IsTicked as "Is ticked"
Form.Category as "My category"
Form.MyHidden { formAccess: hidden }
show summary "My settings view" a3b4 with
Form.StartDate
Form.IsTicked
Form.Category
Form.MyHidden
Specifying a default form values is possible.
read form with
StartDate : date
IsTicked : boolean
Category : text
MyHidden : text
show form "My settings" a1b2 with
date(2022, 2, 17) as "My start date" form: "StartDate"
false as "Is ticked" form: "IsTicked"
"my default category" as "My category" form: "Category"
"my hidden default" form: "MyHidden" { formAccess: hidden }
show summary "My settings view" a3b4 with
Form.StartDate
Form.IsTicked
Form.Category
Form.MyHidden
Roadmap: There are two syntaxes that co-exist for the tile
form. The former does not allow the default values to be set. The later uses text literals to identifies variables. Neither of the two syntaxes for the form
tile is really satisfying. This syntax will be refactored in the future.