4D View v16PV UPDATE DYNAMIC AREA |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v16
PV UPDATE DYNAMIC AREA
PV UPDATE DYNAMIC AREA
The PV UPDATE DYNAMIC AREA command causes the synchronization of the data present in the 4D View area and those of the 4D database. This command is useful within the context of callback methods used in dynamic areas only. In fact, when a callback method causes the modification of the current selection of 4D, the 4D View area is only updated at the end of execution of the entire method. However, if in this case commands such as PV GOTO CELL are used in the callback method, the result obtained could be incorrect due to the temporary lag between 4D data and those of 4D View. To avoid this risk, it is necessary to call the PV UPDATE DYNAMIC AREA command during the callback method in order for the data of the 4D View area to immediately reflect any modifications carried out on those of 4D. PV UPDATE DYNAMIC AREA causes the update of the 4D View area if the 4D selection has undergone at least one of the following modifications:
This example continues that of the PV ADD DYNAMIC FIELDS command (enabling the linking of the 4D selection to the 4D View area). We install an on "right click" event method used to create a record in the 4D selection and to position itself on this record in the 4D View area. PV ON EVENT(area;pv on right clicked;"CallbackMethod") The code of the CallbackMethod project method is as follows: C_BOOLEAN($0)
See also
PV ADD DYNAMIC ARRAYS
|
PROPERTIES
Product: 4D View
HISTORY
Created: 4D View 6.8.1 ARTICLE USAGE
4D View Language ( 4D View v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||