Portlet Factory, Version 6.1.2


 

Creating a Table That Supports Adding Rows

You can create a table that uses a button to add a row.

  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

    1. In the Data Column Modifier, add Row Method = blank. This can actually be left blank unless you need to write additional code to be executed during the add row process. Again, this is generally something you might need for adding a row to a database.

  2. Add a button to the page and label it "Add Row". An add row method is created for you by Data Page.

  3. Set the button action to use the rowName_Add method.

  4. Run the model and click the Add Row button. A new row is added to the bottom of the table.

Parent topic: Data Column Modifier builder


Library | Support |