Skip to content

IsViewChanged - cWebView

Returns True if the view is changed

Type: Function
Return Data Type: Boolean

Syntax

Function IsViewChanged Returns Boolean

Call Example

Get IsViewChanged to BooleanVariable

Description

IsViewChanged returns True if the view is changed.

This is what is called to determine if a view has changes, which might require a save or data loss warning. This determination of a change is based on the main DataDictionary object (DDO) in the view. If that view's main DDO's Should_Save returns True, the view is changed and the function will return True.

This function can be augmented to provide your own determination of a view change. For example, you might have a view where a change occurs outside of the main-DDO's knowledge or there might not even be a main DDO. Alternately, a change may have occurred in a child DDO, which the main-DDO may not know about. Augmenting or replacing this function provides a way to control these custom conditions.

Return Value

Returns True if the view is changed