Skip to main content
Home

Search form

Menu

Search form

  • What's new in SkyVault
  • SkyVault 2.0 overview
  • SkyVault 2.0 video tutorials
  • Getting Started guides
  • Using SkyVault
  • Admin QuickStart
  • For Developers
    • Customizing Explorer and Share
    • Developing Applications and Extensions
      • Designing your application
      • SkyVault Repository
      • SkyVault Services
      • SkyVault Integration
      • Web Scripts
      • SkyVault Extensions
      • Share extensions
      • Maven SkyVault SDK
      • Programming with Surf
      • Content modeling
      • SkyVault 2.0 API
      • Scripting API
        • Root objects
        • ScriptNode API
        • Actions API
        • AVM API
        • Classification API
        • Logging API
        • People API
        • ScriptAction API
        • Search API
        • Session API
        • Utility methods
          • createPaging
          • disableRules
          • displayPath
          • enableRules
          • fromISO8601
          • getLocale
          • getNodeFromString
          • longQName
          • moduleInstalled
          • pad
          • setLocale
          • setServiceRegistry
          • setNodeService
          • shortQName
          • toBoolean
          • toISO8601(Date)
          • toISO8601(long)
      • Services API
  • SkyVault Public Java API
  • Copyright
  • Disclaimer
  • You are here

    SkyVault 2.0 » For Developers » Developing Applications and Extensions » SkyVault API Reference » Repository JavaScript API » Scripting API » Utility methods

    pad

    pad(string, length) pads a string with leading zeros to the specified length.

    Parameters

    string
    The string to pad with leading '0' characters.
    length
    The desired length of the padded string.

    Returns

    Returns the new string.

    Parent topic: Utility methods

    © 2017 TBS-LLC. All Rights Reserved.    Follow @twitter