Skip to content

Built In Templates & Formatting Functions

mmorton edited this page Aug 18, 2010 · 4 revisions

Templates

  • Mobile.SalesLogix.Template.nameLF

Formatting Functions

Remember, the first, and sometimes only, parameter is always the raw value. Some formatting functions take optional parameters, which can be easily applied using Ext’s Function.delegate 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.date
      • NOT LOCALIZED
      • Accepts an optional DateJS format string as the 2nd parameter.
    • Mobile.SalesLogix.Format.fixed
      • Accepts an optional precision value as the 2nd parameter.
  • SDK
    • Sage.Platform.Mobile.Format.encode
      • Escapes HTML entities.
    • Sage.Platform.Mobile.Format.link
    • Sage.Platform.Mobile.Format.mail
    • Sage.Platform.Mobile.Format.trim

Also, 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.

Clone this wiki locally