Marking Repeater Rows
In this tutorial, you'll learn how to mark rows, both visually and programmatically, to be worked with later.
Note
Click here to download the completed RP file for this tutorial.
1. Widget Setup
Open a new RP file and open Page 1 on the canvas.
Drag a rectangle widget onto the canvas, right-click it, and select Create Repeater from the context menu.
Edit the Column1 cells to be numbered from 1-3.
Drag a checkbox widget onto the canvas and place it to the right of the rectangle.
Set the checkbox label's text to
Mark Row
.
2. Mark the Row When the Checkbox Is Checked
Select the checkbox widget and click New Interaction in the Interactions pane.
Select the Selected event in the list that appears, and then select the Mark Rows action.
Select the repeater widget in the Target dropdown.
Leave the This radio button selected and click OK to save the action.
3. Unmark the Row When the Checkbox Is Unchecked
With the checkbox widget still selected, click New Interaction in the Interactions pane again.
Select the Unselected event in the list that appears, and then select the Unmark Rows action.
Select the repeater widget in the Target dropdown.
Leave the This radio button selected and click OK to save the action.
Click Close at the top-right of the canvas or press ESC to close the repeater's item.
4. Delete All Marked Rows with a Button Click
- Drag a button widget onto the canvas and set its text to
Delete Marked Rows
.
With the button selected, click New Interaction in the Interactions pane.
Select the Click or Tap event in the list that appears, and then select the Delete Rows action.
Select the repeater widget in the Target dropdown.
Select the Marked radio button and click OK to save the action.
5. Preview
Preview the page and check the boxes for a few of the repeater rows.
Click the "Delete Marked Rows" button to delete the checked rows.