Jump to content
  • Properties & Methods

    Properties & Methods


    13 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 the name can be already sufficient (SCOPE_USER or SCOPE_GLOBAL) or the Namespace property (SCOPE_NAMESPACE) must be given to uniquely identity the variable.   The given name may contain any character. It has a maximum length of 50 characters. Longer names will be truncated.   Dim MyVariable Set MyVar
      • 233 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 MyVariable Set MyVariable = new PersistentVariable MyVariable.Name = "Welcome" MyVariab
      • 203 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 MyVariable Set MyVariable = new PersistentVariable MyVari
      • 175 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 - 3. Any other values will be ignored.   If you omit this property the default scope is used, which is the user scope. in case you use the persistent variables with a call routing script. If you use them outside of a call routing script (new in v1.1.0) the default scope is the global scope.   For convenience purpose there are three VBScript cons
      • 180 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 MyVariable Set MyVariable = new PersistentVariable MyVariable.Name = "Welcome" MyVariable.Scope = SCOPE_NAMESPACE MyVariable.Namespace = "Support"   The above example defines a persistent variable Wel
      • 241 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 to Global to reflect the fact, that they don't have access to a SwyxWare user id, and therefore can't use the User Scope
      • 354 views
    7. 4.7 - Created

      VBScript   1.3.0   This property contains the date/time when the persistent varibale was stored first time.    Dim MyVariable Set MyVariable = new PersistentVariable MyVariable.Name = "Welcome" If Not IsNull(MyVariable.Created) Then PBXScript.OutputTrace "Created: " & FormatDateTime(MyVariable.Created) End If   This propery returns a datetime value.   This property allows read access only.   If a variable wasn't set before you access th
      • 26 views
    8. 4.8 - CreatedBy

      VBScript   1.3.0   This property contains the SwyxWare UserID of the user who set the persistent varibale the first time.    Dim MyVariable Set MyVariable = new PersistentVariable MyVariable.Name = "Welcome" PBXScript.OutputTrace "Created By: " & MyVariable.CreatedBy   This propery returns an integer value.   This property allows read access only.   If a variable wasn't set before you access this property, a 0 (zero) value will be returned
      • 14 views
    9. 4.9 - Modified

      VBScript   1.3.0   This property contains the date/time when the persistent varibale was modified the last time.    Dim MyVariable Set MyVariable = new PersistentVariable MyVariable.Name = "Welcome" If Not IsNull(MyVariable.Modified) Then PBXScript.OutputTrace "Modified: " & FormatDateTime(MyVariable.Modified) End If   This propery returns a datetime value.   This property allows read access only.   If a variable wasn't modified before
      • 10 views
    10. 4.10 - ModifiedBy

      VBScript   1.3.0   This property contains the SwyxWare UserID of the user who modified the persistent varibale the last time.    Dim MyVariable Set MyVariable = new PersistentVariable MyVariable.Name = "Welcome" PBXScript.OutputTrace "Modified By: " & MyVariable.ModifiedBy   This propery returns an integer value.   This property allows read access only.   If a variable wasn't modified before you access this property, a 0 (zero) value will
      • 10 views
    11. 4.11 - Forget

      VBScript   1.3.0   This method removes a persistent variable from the database, i.e. its content is getting forgotten.   Dim MyVariable Set MyVariable = new PersistentVariable MyVariable.Name = "Welcome" MyVariable.Forget   The above example removes the persistent variable from the user 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 need to remove a
      • 21 views
    12. 4.12 - 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
      • 181 views
    13. 4.13 - 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
      • 181 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.