Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

There is any event to detect when data is exported/imported into a form?

Avatar

Level 1

When you export or import data from a reader extended PDF that supports attachments only the XML gets exported/imported. I did not see any way to do this for attachments as well.

Basically what I want is to detect when user is exporting or importing data so that he can be warned that there are attachments in the PDF form.

Anyone succeeded to do something similar?

3 Replies

Avatar

Former Community Member

I searched for an event when attachments added and never found it. I don't think there is one for the data import/export either, but maybe someone else will respond if there is. Is the form by any chance in workspace? If so, you can modify the saveXML method in the Forms Bridge. That is how I solved my requirements.

Avatar

Level 1

Thank you for your reply. Unfortunately it is not in a workspace. And indeed I could not find any event for adding attachments either….

Avatar

Former Community Member

I think some of the initialize events fire on import. You might expirement with that.