Get Value

This gets the value for the client variable with name "variableName":

string context.ClientVariables.GetValue(variableName)

string context.ClientVariables.GetValue(variableName, whenNull)

number context.ClientVariables.GetValueAsNumber(variableName)

number context.ClientVariables.GetValueAsNumber(variableName, whenNull)

boolean context.ClientVariables.GetValueAsBoolean(variableName)

boolean context.ClientVariables.GetValueAsBoolean(variableName, whenNull)

IPFDocumentI context.ClientVariables.GetValueAsIPFDocumentI(variableName)

IPFDocumentI context.ClientVariables.GetValueAsIPFDocumentI(variableName, whenNull)

Date context.ClientVariables.GetValueAsDate(variableName)

Date context.ClientVariables.GetValueAsDate(variableName, whenNull)

Cookies are stored in the browser specific to the domain and path. The domain is the first part of the URL after the protocol. For example, if the URL is http://www.CustPortal.infor.com/IPFSitePages/Main.aspx, then the domain and path is www.CustPortal.infor.com/IPFSitePages. Cookies created (set into the ClientVariables collection) will be visible to only pages with the same domain and path or subdirectories of the path.

If the user browses to a page with another domain and path, such as www.CustPortal.otherCompany.com/IPFSitePages, the cookies that were set for the first domain and path will not be visible in the ClientVariables collection.

Cookies are restricted in size and number. Browsers are required to keep only 20 cookies per web server (all domains and paths, not each domain and path) and four kilobytes per cookie (both the name and value count towards the 4kb limit).

The most restrictive is the 20 cookie limit. It is generally a good idea to save multiple values as a single cookie. During retrieval, you can then split them back apart using string functions.