Data type mappings for Data Object Services : Rollbase object to JavaScript data type mappings
  

Rollbase object to JavaScript data type mappings

A JSDO communicates with a a Rollbase server through a Data Object Service to marshal Rollbase field data for parameters (and return values) of the Rollbase APIs that operate on Rollbase objects. The JSDO provides this Rollbase field data to the mobile app programmer as JavaScript data. For more information on Rollbase field types, see the Rollbase reference to Field Types. For more information on the format and use of JavaScript data types, you can review sources on the web, such as http://www.w3schools.com/js/js_datatypes.asp. For more information on JSDOs and how they communicate with a Rollbase server through a Data Object Service, see progress.data.JSDO class.
The following tables describe the mappings between the field types of different categories of Rollbase object fields and the JavaScript data types of corresponding table fields in a JSDO. These data type conversions happen in the server-side Data Object when the JSDO invokes a resource operation that exchanges data between the JSDO and its Rollbase resource using the fill( ), saveChanges( ), or any invocation method.
Note: Any unmapped Rollbase fields default to a JavaScript string.
Table 43. Rollbase Basic field type mappings
Rollbase field type
JavaScript data type
Base Currency
number
Checkbox
boolean
Currency
number
Date
string
Date/Time
string
Decimal
number
Email
string
Group of Checkboxes
string
Integer
number
Password
string
Percent
number
Phone Number
string
Picklist
string
Picklist(Multi-Select)
string
Radio Buttons
number
Reference
number
Text
string
Text Area
string
Time
number
URL
string
Table 44. Rollbase Advanced field type mappings
Rollbase field type
JavaScript data type
Auto-number
string
Dependent Picklist
number
Document Template
string
Email Template
string
Expression
string
File Upload
string
Formula
string
Image Upload
string
Integration Link
string
Related Field
string
Roll-up Summary
string
Shared Image
string
Template
string
Version Number
number
Table 45. Rollbase Portal field type mappings
Rollbase field type
JavaScript data type
Captcha Image
string
Hidden Input
string
IP Address
string
Table 46. Rollbase System field type mappings (read-only)
Rollbase field type
JavaScript data type
Comments
string
iCal
string
LDF Filter
string
Organization Data
string
Parent Object
string
Tag
string
Time Zone
string
User Role
string
vCard
string