-
Notifications
You must be signed in to change notification settings - Fork 8
HowToReferencedFields
carlowolter edited this page Apr 25, 2015
·
6 revisions
If you want to show in a Grid or in a Form a field from a referenced model, you have to customize the MainTable/Fields node of the view, by using the model.field notation and adding a local name to the field.
Example from [HelloKitto] (HelloKitto):
# model girl.yaml
ModelName: Girl
....
Fields:
......
Phone: String(16)
Rules:
SubType: phone_number# view dolls.yaml
Type: Data
Controller: List
.....
MainTable:
Model: Doll
Fields:
.....
Mom:
Mom.Phone: Mom_Phone
DisplayLabel: _(Mom's Phone)

- Kitto at a glance
- Getting started
- Setup
-
Basic concepts
- Basic Materials
- Controllers
- Panel-Based
- [List] (List)
- [Form] (Form)
- [GridPanel] (GridPanel)
- [ChartPanel] (ChartPanel)
- [Tool Controllers] (Tool)
- [Login] (Login)
- [Logout] (Logout)
- [ChangePassword] (ChangePassword)
- Features
- Examples
- Developer's guide
- Library reference
- Frequently Asked Questions
- Kitto tips & tricks and how-tos
- Other information
- Kitto Enterprise