The requirement is to delete the attachment from the WO itself(i.e DB). Following is the exact requirement.
Attachment File| Date Attached | Attachedby| Delete
xx.pdf | 1222222| xxxx | (button/link should be added here to delete the row along with the attachment)
I tried by configuring an activity to delete the row with attachment by passing the pxInsHandle as a parameter. The row is getting deleted if I hard code the value for pxInsHandle as pxResults(1).pxInsHandle. But the current value should be passed on clicking the delete button. Please provide your inputs on passing the pxInsHandle parameter for the current row.
Posted: 6 years ago
Posted: 19 Jan 2017 9:26 EST
Pankaj Rawal (rawap)
Fellow Software Architect, App Authoring
Ideally just doing .pxInsHandle should work since you should be already in grid context. That depends on where you place your icon and configuration. Could you paste screenshots of your configuration here. Your rest approach seems to be fine here since you are attachment is getting deleted once you hardcode to pxResults(1).pxInsHandle.