uniface.View
The uniface.View object represents a view of a component that has been created by calling instance.createView().
Description
For each instance of a dynamic server page, you can define multiple views of its data. For example, you can filter the data that is displayed, or provide alternate layouts for mobile and desktop-based browsers.
A view object is created using the uniface.Instance.createView function, and is returned by uniface.Instance.getView() and .getViews().
Functions
Function | Description |
---|---|
show() | Make the View visible inside the specified parent element |
hide() | Hide the View. Remove it from its parent element. |
remove() | Delete the View. After this, the View object is invalid, and any attempt to call its member functions throws a uniface.InvalidDataObjectException exception. |
isValid() | Returns true if the View is valid. |
Note: The View functions are not supported for the default view, which is created by the weblayout ProcScript statement, not by calling instance.createView().