Try this: add JS to your list mapping as it's stated here:
http://docs.appery.io/documentation/b...
and write taskId as value of collapsible element attribute: element.attr("data-item-id", value.taskID);
When you click "delete" button you should run this JS:
codelocalStorage.setItem("collName",$(this).parents().eq(1).attr("data-item-id")); /code
When you click "Yes, delete" you should run this JS:
code$("[data-item-id="+localStorage.getItem("collName") +"]").find("[name=mobilebutton_21]").trigger("click"); /code
mobilebutton_21 is the name of your button component