Question
How to sort pyEform object.
Hi Team,
We have a business requirement to generate pdf for different attachments and merge all the attachments in the generated PDF. Is there a way to sort the attachments in the generated PDF.
The user can attach as many documents from his local machine. The requirement is, if user has attached multiple documents, each attachment will have an attachment type, say typeA, typeB etc. Now when the pdf is generated all the typeA attachments should be attached(in the pdf) at the end, meaning after typeB. There can be multiple typeA and typeB attachments. We are generating a pyeform object for this. But I am not aware how can we check if document is typeA or typeB.
Please help me in this regard.
Thanks in Advance.
Chaitanya
You can use the file categories in the attachments. While uploading the file select the category as typeA or typeB. Based on pyCategory sort your attachments.
To create attachment categories, create instance of Rule-Obj-AttachmentCategory.