Portlet Factory, Version 6.1.2


 

Creating a Table That Incorporates Delete Rows

You can create a table that uses buttons, links or check boxes to delete rows.

  1. Add the following builders to the model.

    • Page

    • Main action list (loads page)

    • Variable, SQL Call or some other builder to act as the source of the data

    • Data Page to create the UI for the Data (set this to be Data Entry)

    • Data Column Modifier

  2. Configure the Data Column Modifier with the following values:

    • Delete Column Style = Link (This can also be Button or Checkbox.)

    • Delete Link Text = Delete Row (Use whatever text you like here.)

    • Delete Method Type = None (The other selections are used when you need to write your own delete code for more control over the process, such as when you need to also delete from a database.)

  3. Run the model. A table will be displayed where the last column contains links that can be used to delete a row. These rows will not only be removed from the table, but also from the XML variable used by Data Page.

Parent topic: Data Column Modifier builder


Library | Support |