Tree view: Difference between revisions
Appearance
Created page with "{{UI Components TOC}}{{WIP}} Tree view is one of the building blocks of Resco mobile apps. This special view displays records from multiple entities organized in a tree-li..." |
|||
| Line 7: | Line 7: | ||
== Define a tree == | == Define a tree == | ||
# Edit an [[app project]] and select '''Components > Tree''' from the '''Project''' menu. | # Edit an [[app project]] and select '''Components > Tree''' from the '''Project''' menu. | ||
# Click '''New''' and enter a name for your tree, then click '''OK'''. | |||
# Select the parent '''Entity''', such as Account, and choose which '''View''' should be used to display its records. | |||
# In the '''Child (Lazy) Level''' field, select a child relationship, for example, Contact. The Contact entity is added to the tree. | |||
# Select the Contact entity and choose the appropriate view. | |||
# Add more entities as needed, then click '''Save & Close'''. | |||
[[File:Create a new tree view.png|600px]] | |||
[[ | == Add tree to home == | ||
# Edit the [[home screen]] of your app project. | |||
# Find your tree view on the '''Available Items''' pane in the '''Components''' section and add it to your home screen. | |||
# Save changes and publish the app project. | |||
== | == Tree view in the app == | ||
Synchronize your app to see the new tree view. | |||
[[File:Tree view in action.png|600px]] | |||
[[Category:Woodford]] | [[Category:Woodford]] | ||
Revision as of 10:18, 7 June 2021
| Warning | Work in progress! We are in the process of updating the information on this page. Subject to change. |
Tree view is one of the building blocks of Resco mobile apps. This special view displays records from multiple entities organized in a tree-like fashion. For example, a list of accounts combined with a list of contacts for each account.
Requirements
Tree view was introduced in summer 2021 release (14.1). An updated Woodford is required for configuration, and an updated version of Resco mobile apps is required to display it.
Define a tree
- Edit an app project and select Components > Tree from the Project menu.
- Click New and enter a name for your tree, then click OK.
- Select the parent Entity, such as Account, and choose which View should be used to display its records.
- In the Child (Lazy) Level field, select a child relationship, for example, Contact. The Contact entity is added to the tree.
- Select the Contact entity and choose the appropriate view.
- Add more entities as needed, then click Save & Close.
Add tree to home
- Edit the home screen of your app project.
- Find your tree view on the Available Items pane in the Components section and add it to your home screen.
- Save changes and publish the app project.
Tree view in the app
Synchronize your app to see the new tree view.
