K2BTools Tutorial - Exercise 1.3: Advanced Features

You can now insert data using the interfaces generated by the EntityServices pattern. In this exercise we will review some of the other features provided by this pattern.

Feedback messages

  1. Go to the “Products” option in the application’s menu.
  2. Select a product, and click on the update action.
  3. Update the product’s price, and confirm the transaction.
  4. A message similar to the following will be shown.
    FeedbackMessagesRT
    Feedback Message

Note: The contents of these messages can be customized in the Transaction Node, in the “After (insert|update|delete) Message” properties.

FeedbackMessagesDefinition
Feedback Message Configuration

Grid Settings

Visible Columns

  1. Go to the “Products” option in the application’s menu.
  2. Open the “Grid Settings” menu. Inside it, uncheck the “Type” option.
    RuntimeColumnSelectionMenu
    Grid Settings Menu

  3. Click on the “Save” action.
  4. You can now see how the “Type” column is no longer visible.
    RuntimeColumnSelectionEffect
    After Saving Grid Settings

Note: Visible columns are stored in the Web Session by default. The developer may extend this behavior to persist this behaviour in the database, using the “K2BPersistGridColumns” procedure.

Page Size

  1. Open the “Grid Settings” menu.
  2. Change the “Rows Per Page” option to “10”.
    GridSettingsRowsPerPage
    Grid Settings Rows Per Page Option

  3. Click on the “Save” action and see the result in the grid.

Order By

You can order the grid by clicking on the column title of an attribute having an associated SimpleOrder in K2BEntityServices instance.

  1. Click on the "Description" column. See how the order of the elements in the grid changes.
    OrderByGridColumn
    Oder by Grid Column

Excel and PDF Reports

  1. Click on the “PDF Report” and “Export” actions and see their behavior.
    ExcelPDFReport
    Excel and PDF Report Actions

Note: Reports are generated for WorkWith and SubWorkWith interfaces. Yo can disable this generation in the Modes (WorkWith) node.