Step 4: Configuring the ASPX Page of the Form
In this step, you will define a grid on the Open Payment Summary (RS401000) form. In
the grid, you will add fields from the RSSVWorkOrderToPay
and
ARInvoice
DACs selected in the DetailsView
view. To configure the ASPX page of the form, do the following:
- In the RS401000.aspx file, for the
px:PXDataSource
control, specify the value of thePrimaryView
property as DetailsView.Note:If you are editing the file in Visual Studio, then you may need to reload the Visual Studio solution of the customization project to be able to see the RS401000.aspx file in the solution explorer. - If you have generated the ASPX code of the page based on the FormDetail
template by using the Screen Editor page, remove the
Content
element that contains the PXFormView control. - Define the columns for the grid as shown in the following
code.
<px:PXGridLevel DataMember="DetailsView"> <Columns> <px:PXGridColumn DataField="OrderNbr" /> <px:PXGridColumn DataField="Status" /> <px:PXGridColumn DataField="InvoiceNbr" /> <px:PXGridColumn DataField="PercentPaid" /> <px:PXGridColumn DataField="ARInvoice__DueDate" /> <px:PXGridColumn DataField="ARInvoice__CuryDocBal" /> </Columns> </px:PXGridLevel>
Note that to add fields that have not been defined in theRSSVWorkOrderToPay
DAC but have been defined in theARInvoice
DAC, which has been specified in the view, you use the following structure:<DAC_name>__<Field_name>
.Tip:You can perform the instructions above by modifying the RS401000.aspx file located in the Pages/RS folder of the instance or by modifying the RS401000.aspx file in the Files section of the Customization Project Editor. - Save your changes.
- Publish the customization project.