2022.2

Table Of Contents
Note: DataformatsettingstelltheDataMapperhowtoreadandparsedatafrom the data
source.Theydon'tdeterminehowthesedataareformattedintheDataModelorinatemplate.In
theDataModel,dataareconvertedtothenativedatatype.Dates,forexample,areconvertedto
aDateTimeobject.HowtheyaredisplayedintheDataModeldependsonthepreferences(see
"DefaultFormat"onpage786).
ThefollowingdatatypesareavailableinPlanetPressConnect.
l
"Boolean"below
l
"String"onpage283
l
"HTMLString"onpage281
l
"Integer"onpage281
l
"Float"onpage281
l
"Currency"onthenextpage
l
"Date"onpage278
l
JSON
l
"Object"onpage282
TheObjectdatatypeisonlyavailableintheDataMappermodule.Itcanbeusedforpropertiesin
thePreprocessorstep,butnotforfieldsintheDataModel.
Boolean
Booleansareasimpletrue/falsedatatypeoftenusedinconditionsandcomparisons.
Defining Boolean values
l
Preprocessor:
l
IntheStep propertiespane,underProperties,addorselectafield.
l
SpecifytheTypeasBooleanandsetadefaultvalueofeithertrueorfalse,followedby
asemicolon.
l
Extraction:
l
IntheData Model,selectafield.
l
OntheStep propertiespane,underField DefinitionsettheTypetoBoolean.
Thefieldvaluemustbetrueorfalse.
l
JavaScript Expression:Setthedesiredvaluetoeithertrueorfalse.
Example:record.fields["isCanadian"] = true;
Page 276