This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||
|
4D v19
Field references
|
Type | Value type in 4D View Pro |
Alpha, Text | string |
Integer, Long integer, Integer 64-bit, Real, Float | number |
Date | JavaScript Date type (hour, minute, sec = 0) |
Time | JavaScript Date type (date in base date, i.e. 12/31/1899) |
Boolean | bool |
Picture | supported picture types: jpg, png, gif, bmp, svg; other types converted into png. Creates an uri (data:image/png;base64,xxxx) set as background for the 4D View Pro cell where the formula is executed |
We want to print the name of a person in a 4D View Pro area cell using a 4D field:
Case of
:(Form event code=On Load)
var $o : Object
$o:=New object
$o.EMP_NAME:=New object //declare the function
$o.EMP_NAME.formula:=Formula([Employee]L_Name)
VP SET CUSTOM FUNCTIONS("ViewProArea";$o)
End case
Note: When the VP SET CUSTOM FUNCTIONS command is not used (not recommended), fields declared in the virtual structure are entered with a syntax such as TABLENAME_FIELDNAME().
USE 4D FORMULAS IN YOUR SPREADSHEET (blog post)
VP SET CUSTOM FUNCTIONS
Product: 4D
Theme: 4D View Pro Database References
Created: 4D v17 R2
4D View Pro Reference ( 4D v19)