Delete

You can delete a specific record instance or a group of instances of a Data Master using event actions during simulation. To delete records from a specific Data Master, create the corresponding Data Master action following the steps:

  1. Select the widget which will trigger the event on the canvas.

  2. Select the user event type from the drop-down in the Events panel.

  3. Click on 'Add interaction' in the Events panel. A dialog will appear showing all the available actions that can be defined.

  4. Click on the 'Data Master action' radio button.

  5. Select the Data Master you want to delete records from and click on the 'Delete' button. The Expression Builder will appear with a delete expression for the Data Master specified.

  6. Create the expression filling the required parameter with a data source. Notice that the first and only parameter of the expression refers to the record or records collection you want to delete.

    Example 1: This expression deletes all users from the Data Master 'Users'.

    Example 2: This expression deletes only users matching 'Username=Bob'.

  7. Press Ok to all opened dialogs to apply the changes.

Notice that all the instances you create, modify or delete during simulation will be restored once you stop simulating.

For further information check out the video tutorial: http://www.justinmind.com/tutorials/advanced-level/delete-forms/