HOME DOCUMENTATION DOWNLOADS BLOG

How to easily show an attachment in another form

I have a file attached on Product. Is there some easy way, how to show/link this attachment in another form, that contains id of Product (refProductId)?

What you can do is to include the Product entity in the data structure of your screen.

Let’s assume you need to do it on an InvoiceItem entity.

  1. Create a relationship to Product entity on InvoiceItem entity (InvoiceItem.refProductId = Product.Id). Set IsParentChild = False because Product is not a child of an invoice item.
  2. Add the Product as a sub-entity in the data structure of your screen
  3. Now even though you did not add any screen section to your screen the product gets loaded and its attachments get displayed on the parent entity (InvoiceItem).
1 Like