Form Container (PXFormView)

PXFormView is a data-bound UI container control that renders a single record from its associated data source.

An ASPX page can contain PXFormView as a main container. A form container, as the diagram below shows, can be also included in the following types of containers:
  • PXFormView
  • PXTabItem
  • PXSmartPanel
Figure 1. Nesting rules for a PXFormView container in an ASPX page


A form container can include multiple ASPX objects of the following types:
  • A data-bound UI container control: PXFormView, PXGrid, and PXTab
  • A layout rule: PXLayoutRule
  • A box for a data field: PXTextEdit, PXNumberEdit, PXMaskEdit, PXDateTimeEdit, PXCheckBox, PXDropDown, PXSelector, PXSegmentMask, and PXTreeSelector
  • Another control: PXPanel, PXGroupBox, PXRadioButton, PXLabel, PXButton, and PXJavaScript
A box for a data field can be added to a form container if the container is bound to a data view declared within the graph that provides business logic for the ASPX page. If you want to bind a form container to a data view, you must specify the properties as follows for the appropriate PXFormView object:
  • The DataSourceID property value must be equal to the value of the ID property of the PXDataSource control.
  • The DataMember property must contain the name of the data view that is declared in the graph and provides data for the controls of the form container.

To create a new form container in an ASPX page, follow the instructions described in To Add a Form Container.

To delete a form container from an ASPX page, follow the instructions described in To Delete a Container.