I want to write a custom script that checks if the number of attached files is greater than xero. If there are no files attached, I want to raise a validation error.
I do recall seeing an example script that does exactly this job, but I can't find it any more. Can some one please offer some guidance on how to get a list of attachments for a given DocType record.
Thank you,
-Jev
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On Saturday, March 8, 2014 3:35:38 AM UTC+5:30, Jev Björsell wrote:
Hi,
I want to write a custom script that checks if the number of attached files is greater than xero. If there are no files attached, I want to raise a validation error.
I do recall seeing an example script that does exactly this job, but I can't find it any more. Can some one please offer some guidance on how to get a list of attachments for a given DocType record.
Thank you,
-Jev
–
Note:
If you are posting an issue,
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.