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

    shortQName

    shortQName(string) returns the short, or prefix, version of a long QName.

    Parameters

    string

    Returns

    Returns a string of the prefix version of a QName.

    Example

        var shortQName = utils.shortQName("{http://www.alfresco.org/model/content/1.0}content");
      

    The preceding code snippet would return shortQName as cm:content.

    Parent topic: Utility methods

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