Skip to main content
Home

Search form

Menu

Search form

  • Overview
  • How To videos
  • Getting Started with SkyVault
  • Using SkyVault
  • Customizing
  • Programming
    • Integrating your application with SkyVault
    • Designing your application
    • Programming with CMIS
    • Programming with the repository
    • Programming with SkyVault services
    • Programming with Surf
    • Web Scripts
    • Scripting API
      • Root objects
      • ScriptNode Object API
      • Search API
      • People API
      • Actions API
      • ScriptAction API
      • Logging API
      • Session API
      • Classification API
      • AVM API
      • WCM Web Projects
      • Utility methods
        • pad
        • getNodeFromString
        • shortQName
        • longQName
        • moduleInstalled
        • toISO8601(long)
        • toISO8601(Date)
        • fromISO8601
        • toBoolean
        • createPaging
        • getLocale
        • setLocale
        • disableRules
        • enableRules
    • Services API
  • Copyright
  • Disclaimer
  • You are here

    SkyVault Enterprise 4.1.10 » Programming » 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