Skip to content

OnDefineCustomStateHash - cWebView

Called every time the framework generates a new state hash and hook for developer to add custom values to the state hash

Type: Event

Parameters

Parameter Type Description
ByRef sStateHash String Should be filled with the custom state hash

Syntax

Procedure OnDefineCustomStateHash ByRef String sStateHash

Description

This event is called every time the framework generates a new state hash and is the place where the developer can add custom values to the state hash.

This will be the third part of the view state hash ({view name}-{record id}-{custom}).

This custom part of the state hash can be used to store additional information that would be used to restore a state (when using a deep link or using the browser forward button). Use the CustomStateHash function to retrieve the state hash in either OnBeforeShow or OnNavigateForward.