Detect deletion of attached files

test62
Tera Expert

Hi, community members.

 

My requriement is detecting deletion attached files from client script, business rule, script include and so on.

 

The function I created is counting the number of attached files on a records.

On submit and on load client script call script include with Ajax. On the server side, script include counts the number of attachment file records and sets the value to 'u_number_of_attachments' fields.

 

---

1. Click on the attachment field

test62_0-1692361390920.png

 

---

2. Select and upload a file

test62_1-1692361496612.png

---

3. [u_number_of_attachment]field is updated.

test62_2-1692361576090.png

 

However, deleting attachment file doesn't trigger onChange client script, and after delete a file go back to list page without [update], [u_number_of_attachment]field isn't chaged.

 

---

 

test62_4-1692361794597.png

 

---

test62_6-1692361972479.png

test62_7-1692362076232.png

 

Resolving this issue, could you please tell me other ways to reflect the number of attachment on the list view.

 

1 ACCEPTED SOLUTION

test62
Tera Expert

Hi, I could make it resoled above issue. Thanks.

View solution in original post

2 REPLIES 2

test62
Tera Expert

Hi, I could make it resoled above issue. Thanks.

Would you share how you resolved your issue?