StateHash - cWebApp

Returns the currently active state hash

Type: Function

Return Data Type: String

Parameters: None

Return Value

String containing the state hash.

Function StateHash Returns String

Call: Get StateHash to StringVariable


This function returns the currently active state hash.

Where it loads the hash from depends on peApplicationStateMode and pbStateAsUrlHash.


This sample code returns "Order-2226" when called from inside a loaded ZoomOrder.vw in the WebOrderMobile sample web app and order 2226 is loaded (current URL is "WebOrderMobile_19_1/Index.html#Order-2226").

String sStateHash
Get StateHash to sStateHash

Override this function to customize the URL format (see Custom URL Format).

Note that this function does not always reflect changes made during the current request (SetStateHash is asynchronous).