1. Script for reading parameters from URL

    Article: AN0001916 Displayed: 963x

    It is possible to pass the values between pages by means of URL parameters. URL can contain more parameters that are separated by character &.

    Example of URL request with two parameters:

    Use following functions for reading values and conversion to the appropriate data type.

    Where to use this script: Rules of type Script, Scripts in class detail, Script in page detail, Webpart Script, Script call...

    var s = OG.QueryString.GetString('name');
    var i = OG.QueryString.GetInt('number');
    var d = OG.QueryString.GetDateTime('name');
    var g = OG.QueryString.GetGuid('name');
    var b = OG.QueryString.Exist('name');

  2.    ---
    Your rating:
    Rated by users: 0x
  3. Top