How the detail control (currently invoicing) works
Form content for detail control form fields
The display content of the detail control display field
Contrast |
Text control |
detail control |
Implementation of data entry |
Data comes from filling in |
Data comes from user filled and other tables (main sql ) |
|
|
|
Fill in the form page before saving |
Data only exists on the current page |
The data only exists on the current page, which is the list |
Fill out do not save |
data is missing |
data is missing |
data storage |
Click Save, there is a field in the current form |
The current table has no fields to store data, and the data needs to be written to a table through a processor |
Show page view |
Display field vo.XX |
Display fields independently, read a list from the saved table |
edit again |
Read data from the corresponding field in the table |
Configure independent form fields, the form content needs to read a list from the saved table , and supports editing |
Q&A
1. First, a detailed control is provided, just for the convenience of selection and display?
——The detail control is also a control, and the control is a tool for the user to input data or display and translate the data in a different way. So it can be said for selection and display.
2. Is there a detailed form field in the basic view just for display?
——Because the custom control also has display fields and form fields, the custom control is for display (translation) on the display page (view), and it has both display and input functions in the form page (processing).
3. The detailed display field is equipped in the basic view, is it also for display?
--Yes
4. The data processor in the basic view is equipped with post-processing, so that the detailed table is actually written. Only here is the detailed table written?
——Currently, our configuration method is to actually write the list in the post-processor of the base view. However, in theory, processors in other places, such as the processor when the control is saved, the view front, and the node processor, can be used as long as they can write data to other tables, but it is reasonable or unreasonable.