10,730
edits
Line 61: | Line 61: | ||
The view designer window is divided into multiple parts: | The view designer window is divided into multiple parts: | ||
* '''Toolbar''' with buttons on top: Use it to add or remove elements from your view | * '''Toolbar''' with buttons on top: Use it to add or remove elements from your view or configure additional functions. | ||
* '''Properties''' pane on the left shows properties of the selected component in the ''' | * '''Properties''' pane on the left shows the properties of the selected component in the '''Editor''' pane. | ||
* ''' | * '''Editor''' pane in the center shows your row design(s). | ||
* '''Fields''' pane on the right shows fields | * '''Fields''' pane on the right shows fields you can add to the view. | ||
[[File:View-designer-main-screen.png|600px|alt=View designer in Woodford: main screen]] | [[File:View-designer-main-screen.png|600px|alt=View designer in Woodford: main screen]] | ||
Line 70: | Line 70: | ||
=== Fields pane === | === Fields pane === | ||
The '''Fields''' pane lists all the fields and variables available in the view. | |||
* | * Use the + button to manage the fields. When displaying the view, Resco mobile apps fetch all the listed fields from the database. Keeping the list short can speed up the performance. | ||
* | * Drag fields from the Fields pane to the Editor pane to add them to your row design. | ||
* | * Not all fields must be displayed - the additional fields can be used for sorting and filtering. | ||
= | [[File:Select-fields-in-view.png|600px|alt=select fields in view]] | ||
If | If a field is not listed in the Select Fields window, it is probably not enabled for the app project. See [[Data_model_in_mobile_apps#Managing_fields|Managing fields]] for more information. | ||
=== Editor pane === | |||
The editor pane displays a mockup of the view's row design(s). Each view can contain one or more row designs. See [[Responsive view design]] to learn how multiple rows can be beneficial for your app. | |||
Use the editor pane to arrange and resize fields in the view. | |||
* Select any component of the view to display its properties. | |||
* Drag fields from the Fields pane to add them to your view. | |||
* To change the content of a cell, select it and change the Value property. (Or double-click the plus symbol next to a field on the Fields pane.) | |||
=== Properties pane === | === Properties pane === | ||
The following properties can be configured on '''View''' level: | The following properties can be configured on '''View''' level: | ||
* Default layout: Use list to display one record per line. Use grid to allow multiple records per line. This can be particularly useful for wider displays and/or if you want to create your view as a gallery of images. | |||
* Auto table: Enable this option if you want to switch to an Excel-like table view. Table view is used when the available screen width exceeds a threshold value ('''Breakpoint'''). You '''can''' modify the style of the entries; see [[Style_editor#Tricks|Tricks]]. | |||
* | |||
* Show header: When enabled, it creates a header row above the data rows. See [[View#Header|Header]] for more information. | |||
* | The following properties can be configured on '''Row''' level. Select the row in the '''Editor''' pane to display its properties. | ||
* Name – Defines the Row’s name (to distinguish between multiple Row designs). | |||
* Dimension – Defines the width and height of the row in a view. | |||
* Color (Background) – Defines the color of the row’s background. | |||
* Color (Selected) – Defines the color of the row’s background when the record is selected. | |||
* {{Anchor|Next}} Next row – used for custom responsive layout. Define multiple rows of various widths and chain them with this setting. In the app, row design changes as the screen width changes. See [[Responsive view design]] for more information. | |||
The following properties can be configured on '''Cell''' level. Select the cell in the '''Editor''' pane to display its properties. | |||
* Cell – Shows the selected cell. | |||
* Kind – Set how the selected element is displayed in the view. | * Kind – Set how the selected element is displayed in the view. | ||
** Text: Show text as is. | ** Text: Show text as is. | ||
Line 108: | Line 113: | ||
** Text-Edit, Text-DirectEdit, Image-Edit, Image-DirectEdit: The element becomes editable directly from the view. See [[#Editable_field|Editable field]]. | ** Text-Edit, Text-DirectEdit, Image-Edit, Image-DirectEdit: The element becomes editable directly from the view. See [[#Editable_field|Editable field]]. | ||
** Text-Click, Image-Click: Clicking the element opens details about related entity record. See [[#Clickable_field|Clickable field]]. | ** Text-Click, Image-Click: Clicking the element opens details about related entity record. See [[#Clickable_field|Clickable field]]. | ||
* Binding (Type, Value) – See the next section for more information. | |||
* Layout (X, Y, W, H) – Coordinates of the top left corner of the cell, and cell's width and height. You can adjust cell size and position either by typing the coordinates or by dragging the cell or its sides in the editor. | |||
* Style – You can select the style that will be used for the selected element. The designer will also preview the selected style. You can also create your own styles or adjust the existing ones using the '''[[Style editor|Edit Styles]]''' button in the toolbar. | * Style – You can select the style that will be used for the selected element. The designer will also preview the selected style. You can also create your own styles or adjust the existing ones using the '''[[Style editor|Edit Styles]]''' button in the toolbar. | ||
* | |||
* Responsive – Specify if the cell should grow/shrink to fit row width change or remain constant. In the case of images, disable responsive resizing. See [[Responsive_view_design#Responsive_fields|responsive fields]] for details. | |||
==== Binding ==== | ==== Binding ==== | ||
Line 118: | Line 127: | ||
Three binding types exist: | Three binding types exist: | ||
* Value – this is the default option. This way the field data is shown in a standard way | * Value – this is the default option. This way, the field data is shown in a standard way so that you can see the value of the field in the Mobile CRM app. | ||
* Raw Value – this makes sense for example for option sets, if you want to display the numeric representation of an option, rather than its label. This is useful if you don’t want to display text | * Raw Value – this makes sense, for example, for option sets, if you want to display the numeric representation of an option, rather than its label. This is useful if you don’t want to display text but different view images or map pins based on different values of the option set. It is because images cannot have space in their names. | ||
* Constant – this binding type allows you to enter static text. The exact text is displayed in the app | * Constant – this binding type allows you to enter static text. The exact text is displayed in the app instead of the entity field data. This way you can add labels to views, for example, to describe fields that only show numeric values. | ||
== General controls, adding new cells == | == General controls, adding new cells == |