Add MultipleSelection from Transaction action

Objective

Adding multiple selection grids to a web panel generated using K2BWebPanelDesigner involves many steps, as the developer must select the grid's columns, its filters, and its orders. To simplify this process, K2BWebPanelDesigner includes the "Add Multiple Selection from Transaction" action. Using this action, a grid is added to the web panel using a pattern-like inference, which determines which columns, filters, and orders should be included in the grid based on the selected transaction's structure.

The inferred Multiple selection grid may not suit all needs, but is a very good starting point that the developer can customize later to suit its particular requirements.

How it works

Adding a grid from a transaction involves three steps:

  1. Choose the node under which the grid should be created. The developer may choose nodes from any type, as long as they support having multiple selection grids as child nodes.
  2. Select the "Add Multiple Selection From Transaction" action in the Actions menu inside the contextual menu belonging to the node chosen in the previous step.
    AddMultipleSelectionFromTransactionMenu
    Contextual menu

  3. Choose the transaction the grid should be based on.
    AddGridFromTransctionChooseTransaction
    Transaction selection

After following these steps, the result will be similar to the one shown below.

MultipleSelectionDefinition
Generated multiple selection grid

Grid inference

The grid included inside the Multiple Selection node is equal to the one generated using the the "Add Grid From Transaction" action, if the developer chooses to include variables in the grid.

To see how this grid is inferred from the transaction, see the "Add Grid From Transaction" action page.

MultiSelection SDT

Multiple Selection nodes use an special SDT, which is used to maintain the state of the control (which elements are selected and which aren't). When adding a multiple selection node using this command, a SDT is generated using the same logic used when executing the "Generate MultiSelection SDT" action. For more information, check the corresponding page.