User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:devel:field_structure [2018/10/03 16:48]
127.0.0.1 external edit
en:devel:field_structure [2020/03/23 16:12]
joebordes [Display Types for Fields in Modules]
Line 10: Line 10:
   * **2** - Displayed only in the Detail view (Ex. Created time, Modified time) Read-only field. Must be given a value through the code   * **2** - Displayed only in the Detail view (Ex. Created time, Modified time) Read-only field. Must be given a value through the code
   * **3** - It is not displayed either in DetailView nor EditView, but can be shown in ListView. For example Total, subtotal in Invoice Module. These Fields are not tied to any block.   * **3** - It is not displayed either in DetailView nor EditView, but can be shown in ListView. For example Total, subtotal in Invoice Module. These Fields are not tied to any block.
-  * **4** - a Read-Only field which can be modified with workflows+  * **4** - a Read-Only field that can be modified with workflows. **NOTE** if you want to save a displaytype 4 field from inside your custom code using the normal "​save"​ method, you **MUST** trick that save to think it is being called from the workflow system by setting the $from_wf global variable to true before the save (and back to false after)
   * **5** - Only in create mode. Cannot be used in workflows   * **5** - Only in create mode. Cannot be used in workflows