Lesson 4: Creating an advanced Detail panel

In this lesson you will learn how to add more controls to the Detail panel created in the previous step. When the exercise is completed, the panel will show the customer’s information (as before), along with information about the invoices associated with that customer. The panel will be separated in two tabs with each piece of information.

Follow these steps:

  1. Open the “CustomerDetail” panel created in the previous exercise.
  2. Add a “Tabs” node to the specification root node.
  3. Add two “Tab” nodes to that “Tabs” node. Name these tabs “General” and “Invoices”.
  4. Move the “Content (SDDetailStandardPrimaryAction)” node to the first tab.
  5. We must now add a grid with the customer’s invoices to the second tab. To do so, select the second “Tab” node and execute the “Add Grid From Transaction” action (available in its contextual menu). Choose the “Invoice” transaction, and then choose the layout “Notification List”. Create the grid using attributes.
  6. Assign the "CustomerPhoto" attribute to the "Photo" node, the “InvoiceDate” attribute to the “Date” node, the “InvoiceSearchResult” attribute to the “Summary” node and the "InvoicePaymentReceived" to "IsRead" attribute.
  7. Delete all filters except for InvoiceCode filter.
  8. Execute the application by running CustomerList, and see the result. It should look like the image below.
    SDTutorialAdvancedDetail2
    Advanced detail panel