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.nameLFtemplate.
- Applies
-
SDK
-
Sage.Platform.Mobile.Format.encode- Escapes HTML entities.
Sage.Platform.Mobile.Format.linkSage.Platform.Mobile.Format.mailSage.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.percentSage.Platform.Mobile.Format.yesNoSage.Platform.Mobile.Format.boolSage.Platform.Mobile.Format.nl2brSage.Platform.Mobile.Format.timespan-
Sage.Platform.Mobile.Format.canvasDraw- This requires a
canvas(DOM) object as second parameter - Optional
optionsparameter to specify drawing properties: .scale, .lineWidth, .penColor
- This requires a
-
Sage.Platform.Mobile.Format.imageFromVector- Additional
optionsaccepted 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.