4D v17

Handling 4D View Pro areas

Home

 
4D v17
Handling 4D View Pro areas

Handling 4D View Pro areas  


 

When working with 4D View Pro areas in your forms, you need to handle several elements:

  • The 4D View Pro form area (4D form object): contains and displays the 4D View Pro object. This area is defined by a name ("Object name" field in the Property list).
  • The 4D View Pro object (C_OBJECT type variable or expression): stores the whole spreadsheet contents (see below). You can get or set this object using the VP IMPORT FROM OBJECT or VP Export to object commands.
  • The 4D View Pro document (.4vp documents): stores the whole spreadsheet contents in JSON format.

When loading a 4D View Pro object in a form area, 4D generates the On VP Ready form event once the whole area is loaded. You must execute any 4D View Pro code handling the area in this event, otherwise an error is returned.

The 4D View Pro object describes the document and is automatically handled by the 4D View Pro commands. It contains the following properties:

PropertyValue typeDescription
versionLongintInternal component version
dateCreationTimestampCreation date
dateModifiedTimestampLast modification date
metaObjectFree contents, reserved for the 4D developer
spreadJSObjectReserved for the 4D View Pro component



See also 

VP Export to object
VP IMPORT FROM OBJECT

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Language

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D View Pro Reference ( 4D v17)