Skip to main content
Home

Search form

Menu

Search form

  • What's new in SkyVault Content Services
  • Supported Platforms
  • Video tutorials
  • Using SkyVault Share
  • SkyVault SDK 3.0
  • API guide
    • API overview
    • Use Cases
    • Java API
    • JavaScript API
      • About script files
      • Root objects
      • Scripting API
        • ScriptNode API
        • Actions API
        • Classification API
        • Logging API
        • People API
        • ScriptAction API
        • Search API
        • Session API
        • SessionTicket API
        • Utility methods
          • createPaging
          • disableRules
          • displayPath
          • enableRules
          • fromISO8601
          • getLocale
          • getNodeFromString
          • longQName
          • moduleInstalled
          • pad
          • setLocale
          • setServiceRegistry
          • setNodeService
          • shortQName
          • toBoolean
          • toISO8601(Date)
          • toISO8601(long)
      • Services API
    • FreeMarker API
    • Spring Surf API
  • Extension packaging - modules
  • Platform extensions
  • Platform integrations
  • Share extensions
  • Copyright
  • You are here

    SkyVault Content Services 5.2 » Developer guide » API guide » SkyVault Content Services API Reference » 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 length of the padded string.

    Returns

    Returns the new string.

    Parent topic: Utility methods

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