Built In Templates & Formatting Functions - Sage/argos-sdk GitHub Wiki
Mobile.SalesLogix.Template.nameLF
Remember, the first, and sometimes only, parameter is always the raw value. Some formatting functions take optional parameters, which can be easily applied using the Function.bindDelegate method.
- SalesLogix
Mobile.SalesLogix.Format.address
-
Mobile.SalesLogix.Format.phone
- Uses the same rules as the current SLX web client.
-
Mobile.SalesLogix.Format.currency
- NOT LOCALIZED
-
Mobile.SalesLogix.Format.nameLF
- Applies
Mobile.SalesLogix.Template.nameLF
template.
- Applies
-
SDK
-
Sage.Platform.Mobile.Format.encode
- Escapes HTML entities.
Sage.Platform.Mobile.Format.link
Sage.Platform.Mobile.Format.mail
Sage.Platform.Mobile.Format.trim
-
Sage.Platform.Mobile.Format.date
- NOT LOCALIZED
- Accepts an optional DateJS format string as the 2nd parameter.
-
Sage.Platform.Mobile.Format.fixed
- Accepts an optional precision value as the 2nd parameter.
Sage.Platform.Mobile.Format.percent
Sage.Platform.Mobile.Format.yesNo
Sage.Platform.Mobile.Format.bool
Sage.Platform.Mobile.Format.nl2br
Sage.Platform.Mobile.Format.timespan
-
Sage.Platform.Mobile.Format.canvasDraw
- This requires a
canvas
(DOM) object as second parameter - Optional
options
parameter to specify drawing properties: .scale, .lineWidth, .penColor
- This requires a
-
Sage.Platform.Mobile.Format.imageFromVector
- Additional
options
accepted for generating <img> HTML element: .width, .height, .title
- Additional
-
All SDK format functions are also applied to the product’s Format
object, i.e. Sage.Platform.Mobile.Format.link
and Mobile.SalesLogix.Format.link
are the same function.