Controls the view's state behavior (how it shows in the application URL)
Type: Property
Access: Read/Write
Data Type: Integer
Parameters:
None
Syntax
Property Integer peStateMode
Get peStateMode to IntegerVariable |
Set peStateMode to IntegerVariable/Value |
Description
This property controls the view's state behavior (how it shows in the application URL).
By default, the view will be part of the state hash (if peApplicationStateMode is enabled) and the format depends on the application style (desktop vs drilldown) and view style (select vs zoom vs undefined).
Valid Values
Constant | Meaning | |
vsmDefault | Default behavior. |
vsmOff | Disables view state modes for this view. It will not be part of the URL. |
vsmRecord | Forces a view to add the current record to the URL. |
vsmCustom | No record ID's in the URL but the developer will add a custom hash. |
vsmOff is an advanced option that keeps the view out of the application state hash completely. This causes the URL to still point to the previous view. For drill-down applications, it is recommended to only use this on views that do not have options to drill further into other views.
vsmRecord can be used to forcibly select any undefined views in the drill-down model to put the record id of the Main_DD part of the state hash.