Siebel Developer's Reference > User Properties >

PostMainViewData


This control user property is used to prevent unsaved data from being lost when a control changes the current record or the active applet in the main view.

Value

TRUE or FALSE

Usage

This control user property is intended to prevent data loss when a control invokes a method that changes the main view before new data in the current record is saved.

  • If set to TRUE in a high interactivity (HI) view, and if the current record contains modified data, this user property causes the current record to be saved before the control changes the focus.
  • If set to TRUE in a standard interactivity (SI) view, and if the current record contains modified data, this user property causes a message to display that warns that unsaved data may be lost.

    NOTE:  For SI applications, the warning message does not display unless you also add EnableSIDataLossWarning = TRUE to the [SWE] section of the application's .cfg file.

  • If set to FALSE or if this user property is not set on the control, then the control's method is invoked and no unsaved data is written to the current record.

For example, if the main view is the All Service Requests view, you can click the Search button before the current record is saved. After you execute a search, subsequently clicking the Attach button for a record in the Results list drills down into the active record, thereby changing the applet in the main view. The new data in the unsaved service request record can then be lost. The PostMainViewData user property should be set on controls such as the Attach button.

You can inactivate and modify the values for this user property, and you can create a new instance of this user property if it is not already defined on the control.

Parent Object Type

Control

Functional Area

Various

Siebel Developer's Reference