Don't attach file

I’m testing component to attach files. I notice that when a record is new file is not attached, but if the record is created and attached if it is done correctly. The tables involved are Projects - Tasks - Activities where the latter is the one that contains the attachment.

There is no record
image

Attached file
image

Record created
image

There isn’t the attachment
image

In the attachment browser this but there is no relationship
image

Regards,

Nelson F.

Hi,

this is true. Attaching files to not-persisted entities will not work as for now. The main use case, that I thought of is adding @WithAttachments on browse screens.

You can create a issue in the issue tracker: https://github.com/mariodavid/cuba-component-attachable/issues with a proper description.

Thanks & Bye
Mario

Hi @mario, I don’t understand. Can it be attached from editor? if it is correct then because it does not let me do it.

Regards,

Nelson F.

@mario, Do you have to do something special so that it can be attached from the editor?