StateHash - cWebApp
Returns the currently active state hash
Type: Function
Return Data Type: String
Syntax
Function StateHash Returns String
Call Example
Get StateHash to StringVariable
Description
This function returns the currently active state hash.
Where it loads the hash from depends on peApplicationStateMode and pbStateAsUrlHash.
Sample
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).
Return Value
String containing the state hash.