So I have an app that has a page with a dataview that contain’s an “Attach Image” button, when user clicks on the button it displays a popup window with the image uploader, and after user uploaded the image it should display a dynamic image with the uploaded image. However I’m having issues displaying the uploaded image, as the entity of the dynamic image showed “No items to select”. Please see below screenshot of my pages and settings. This is my domain model showing the connection: This is the page where the “attach image” button is nested within the dataview, it is where the user can enter a new product with the details including image. And this is the popup window after the user clicks “Attach image” button from previous screenshot: This is the issue, as you can see I can’t connect to the Product_Image entity for the dynamic image, if I click create association, it just creates a new association from Product to Product_Image, and the uploaded image still can’t be displayed Anyone have any idea what the issue is?
asked
Kerry Fang
2 answers
0
Hi, when you upload the image have you setted the association between Project & Project_Image objects ?
In order to view the uploaded images for Project object, add list view as one Project object has multiple Project images, add list view, and choose data source as association & choose Project_Image object
answered
Srilatha M
0
Since it’s a one-to-many relationship I advise you to put a listview in your dataview of Project and set the association to your Project_Image-entities there. Then inside the listview, put the Image Viewer-widget and set the source to your image entity.