1. Script object OG.QueryString

    Article: AN0001720Updated:

    This object simplyfies work with variables from url.

    Object properties

    Name Description
    string GetString(string name) Function returns text.
    int? GetInt(string name) Function returns integer.
    DateTime? GetDateTime(string name, string format) Function returns date.
    Guid? GetGuid(string name) Function returns guid.
    bool Exist(string name) Function finds out if there is variable name included inURL.
    string Query Function returns part of Query url (the part after the question mark).

    Parameter name is name of the varable in url. If the variable is not defined, NULL is returned.

    In case that variable cannot be converted to the given data type, NULL is also returned.