Question
RBS
IN
Last activity: 19 Jan 2017 9:26 EST
Configure a Delete button to delete a row which has Attachment in a Repeat Grid
Hi,
We have a requirement to configure a delete button to delete a row with attachment in a repeating grid. Can anyone provide your inputs on the same?
Thanks,
Henry
***Updated by Moderator: Marissa to update categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hello Henry,
Probabaly your looking some thing like this
Thanks,
Arun
Incessant Technologies
GB
Do you need a delete button for each row in the grid which can be achieved as mentioned above or do u need it outside the grid which deletes the rows which has attachments.
Pegasystems Inc.
IN
Could you help us in exact requirement here.
Is requirement here to delete just the line item from the grid?
If Yes, then any icon can be added in grid and Delete Item UI action can be configured against it.
OR
Requirement is to actually delete the attachment from the WO itself (in case it is a ready only attachments gadget)?
RBS
IN
Pegasystems Inc.
IN
Areteans Technology Solutions
AU
Hi Henry,
In your case, the instances of 2 classes (Data-WorkAttach- and Link-Attachment) have to removed.
The Data-WorkAttach instance will have a link between the WO and the file, Meaning this instance will inturns contain the instances of the file and the WO.
Link-Attachment instance will have the WO insKey in pxLinkedRefFrom property and
will have the file instance in the pxLinkedRefTo property. With these 2 you can remove the attachment permanantly from the WO that is currently worked on by the user.
Let us know if this helps.
Regards,
Ratan Balaji.