mariodavid / cuba-component-attachable

CUBA component that lets you add attachments to any entity
Apache License 2.0
7 stars 2 forks source link

Ability to attach files from editor #16

Closed innovaringenieria closed 6 years ago

innovaringenieria commented 6 years ago

Currently it's only possible to attach files from the browse, add the ability to do it from the editor.

mariodavid commented 6 years ago

Hi,

It is already possible. See https://github.com/mariodavid/cuba-component-attachable/blob/master/modules/web/src/de/diedavids/cuba/attachable/web/annotationexecutor/WithAttachmentsEditorAnnotationExecutor.groovy

You have to extend AnnotatableAbstractEditor and define a buttonspanel where the button should be placed in.

Bye Mario

innovaringenieria commented 6 years ago

but what is reported in the forum does not work