Jump to content
  • Properties & Methods

    Properties & Methods


    18 pages in this category

    1. 4.1 - Name

      VBScript   This property defines the name of the persitent variable. The name is used to access/identify the persistent variable.   Depending on the used Scope (SCOPE_USER, SCOPE_GROUP or SCOPE_GLOBAL) the name is already sufficient to identify the variable.   If the used scope is SCOPE_NAMESPACE the Namespace property must be given as well.   The given name may contain any character. It has a maximum length of 50 characters. Longer names will be truncate
      • 267 views
    2. 4.2 - Value

      VBScript   This property represents the value (i.e. the content) of the persistent variable.   While accessing this property the content will be either automatically written into the database or retrieved from the database.   The value takes up to 1kB (1024 Byte) of any data, like strings, booleans, numbers or dates. Data above the 1kB limit will be truncated.   Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" Ann
      • 232 views
    3. 4.3 - Default

      VBScript   This property defines the default value of a persistent variable.   When reading the content of a persistent variable it is possible that the variable has not been set before. In this case the configured default value will be returned.   The default value takes up to 1kB (1024 Byte) of any data, like strings, booleans, numbers or dates. Data above the 1kB limit will be truncated.   Dim Announcement Set Announcement = new PersistentVariable An
      • 199 views
    4. 4.4 - Scope

      VBScript   This property sets the scope, i.e. the visibility, of a persistent variable. It takes a numerical value from 1 - 4. Any other values will be ignored.   If you omit this property the default scope is used. This is the user scope if you use the persistent variables within a call routing script of a user, or the group scope if you use the persistent variable within a call routing script of a group.   If you use the persistent variable outside of a call rout
      • 204 views
    5. 4.5 - Namespace

      VBScript   This property set the name of a namespace if the Scope if the persistent variable is set to SCOPE_NAMESPACE.   The given name may contain any characters. It has a maximum length of 128 characters. Longer strings will be truncated.   Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" Announcement.Scope = SCOPE_NAMESPACE Announcement.Namespace = "Support"   The above example defines a persistent va
      • 257 views
    6. 4.6 - UserID

      VBScript   1.1.0   The usual way of working with persistent variables is most likely from within a call routing script. From v1.1.0 the persistent variables can also be used outside of a call routing script, i.e. in a standard windows scripting file (.wsf) or an asp web page.   In these cases the persistent variables switch their default Scope from User/Group to Global to reflect the fact, that they don't have access to a SwyxWare user id, and therefore can't use the User
      • 388 views
    7. 4.7 - GroupID

      VBScript   1.4.0   The usual way of working with persistent variables is most likely from within a call routing script. From v1.1.0 the persistent variables can also be used outside of a call routing script, i.e. in a standard windows scripting file (.wsf) or an asp web page.   In these cases the persistent variables switch their default Scope from User/Group to Global to reflect the fact, that they don't have access to a SwyxWare user id or group id, and therefore can't u
      • 46 views
    8. 4.8 - CallerName

      VBScript   1.4.0   With this property you can set the name which is written into the CreatedByName and ModifiedByName properties when a variable is created the first time or modified.   Usuallaly you don't need to set this property manually as the persistent variable will use the name of the current caller automatically. If however you need to overwrite that namber or use the persistent variable outside of a call routing script you can used this property to do so,  
      • 38 views
    9. 4.9 - CallerNumber

      VBScript   1.4.0   With this property you can set the number which is written into the CreatedByNumber and ModifiedByNumber properties when a variable is created the first time or modified.   Usuallaly you don't need to set this property manually as the persistent variable will use the number of the current caller automatically. If however you need to overwrite that number or use the persistent variable outside of a call routing script you can used this property to do so,
      • 23 views
    10. 4.10 - Created

      VBScript   1.3.0   This property contains the date/time when the persistent varibale was stored first time.    Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" If Not IsNull(Announcement.Created) Then PBXScript.OutputTrace "Created: " & FormatDateTime(Announcement.Created) PBXScript.OutputTrace "CreatedByName: " & Announcement.CreatedByName PBXScript.OutputTrace "CreatedByNumber: " & Announcement.Create
      • 63 views
    11. 4.11 - CreatedByName

      VBScript   1.4.0   This property contains the name of the caller when the persistent varibale was stored first time.    Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" If Not IsNull(Announcement.Created) Then PBXScript.OutputTrace "Created: " & FormatDateTime(Announcement.Created) PBXScript.OutputTrace "CreatedByName: " & Announcement.CreatedByName PBXScript.OutputTrace "CreatedByNumber: " & Announceme
      • 39 views
    12. 4.12 - CreatedByNumber

      VBScript   1.4.0   This property contains the number of the caller when the persistent varibale was stored first time.    Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" If Not IsNull(Announcement.Created) Then PBXScript.OutputTrace "Created: " & FormatDateTime(Announcement.Created) PBXScript.OutputTrace "CreatedByName: " & Announcement.CreatedByName PBXScript.OutputTrace "CreatedByNumber: " & Announce
      • 30 views
    13. 4.13 - Modified

      VBScript   1.3.0   This property contains the date/time when the persistent varibale was modified the last time.    Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" If Not IsNull(Announcement.Modified) Then PBXScript.OutputTrace "Modified: " & FormatDateTime(Announcement.Modified) PBXScript.OutputTrace "ModifiedByName: " & Announcement.ModifiedByName PBXScript.OutputTrace "ModifiedByNumber: " & Announce
      • 43 views
    14. 4.14 - ModifiedByName

      VBScript   1.4.0   This property contains the name of the caller when the persistent varibale was stored/modified the last time.    Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" If Not IsNull(Announcement.Modified) Then PBXScript.OutputTrace "Modified: " & FormatDateTime(Announcement.Modified) PBXScript.OutputTrace "ModifiedByName: " & Announcement.ModifiedByName PBXScript.OutputTrace "ModifiedByNumber:
      • 31 views
    15. 4.15 - ModifiedByNumber

      VBScript   1.4.0   This property contains the number of the caller when the persistent varibale was stored/modified the last time.    Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" If Not IsNull(Announcement.Modified) Then PBXScript.OutputTrace "Modified: " & FormatDateTime(Announcement.Modified) PBXScript.OutputTrace "ModifiedByName: " & Announcement.ModifiedByName PBXScript.OutputTrace "ModifiedByNumber
      • 21 views
    16. 4.16 - Forget

      VBScript   1.3.0   This method removes a persistent variable from the database, i.e. its content is getting forgotten.   Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" Announcement.Forget   The above example removes the persistent variable from the user or group scope of the current call routing user from the database.   Ususally it shouldn't be needed to use this method at all. If for what reason ever you really n
      • 51 views
    17. 4.17 - LatestError

      VBScript   This property returns a Windows Error Code (numerical) of the last read/write access of the persistent variable. The Windows Error Text can be found in LatestDescription.   A list of all possible error codes and their meaning can be found in the MSDN (Microsoft Developer Network):   System Error Codes      This property is read only.   As persistent variables are stored into a database there is a possibility of runtime errors. T
      • 216 views
    18. 4.18 - LatestDescription

      VBScript   This property returns a Windows Error Text (string) of the last read/write access of the persistent variable. The Windows Error Code (numerical) can be found in LatestError.   This property is read only.   As persistent variables are stored into a database there is a possibility of runtime errors. To check for any such runtime errors during read or write access of a persistent variable you can check LatestError for not equal zero.   If you have
      • 205 views
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.