Apama 10.15.0 | Building and Using Apama Dashboards | Building Dashboard Clients | Defining Dashboard Commands | Supporting deletion of an instance
 
Supporting deletion of an instance
To delete an instance, you have to add a control object, such as a push button and set its action to perform delete operation.
*To define commands for deleting an instance
1. Open the file tutorial-delete.rtv by selecting Delete Instance in the tutorial main page.
2. Double-click the object labeled Test to display the dashboard in a new window such that the control objects are enabled.
This dashboard displays a summary table of all instances of the tutorial and a Delete button for deleting the selected instance.
3. Double-click the APMA row in the table. This will cause the instance for APMA to become selected and its Instrument name displayed in the form above the Delete button.
4. Click Delete. This will delete the APMA instance as indicated by the APMA row being removed from the table.
As with Edit, when performing a Delete you need to identify the instance to be deleted.
5. Select the Delete button and in the Object Properties panel, double-click the actionCommand property.
Here the command is defined to delete the instance of the tutorial whose instance id equals $instanceId.