Display of images
-
Mani Kumar YadlapalliHas successfully completed the online course Basics (100)2 years ago #34444
Hi simplifier community,
I am facing some problems with the display of images. here i am explaining what i did, here i created 2 pages in one page i called the machines API to display all the images, for each image i created a button called details. when i click on details button i will go to the next page and show the details of the respective machine details but my problem is when i click on details button for the respective image i am unable to get the respective image. i am getting same image for all the machines. can you help me how to proceed with this problem. for your understanding here i am attaching screenshots . I am waiting for you valuable suggestions for this problem.
Attachments:
You must be logged in to view attached files.Jennifer HäfnerHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)Has successfully completed the online course Advanced (310)Has successfully completed the online course Advanced (320)Has successfully completed the Intermediate CertificationHas successfully completed the Advanced Certification2 years ago #34512::Hi Mani,
In general: when transitioning to the detail page, you have to map the clicked image data to the property ‘src’ of the image on the detail page.
An example of displaying the details of a selected list item is shown in the Intermediate Course, Module 4, Lesson 2: https://community.simplifier.io/203-2/
The data of the selected item is fetched via Client-Side Business Object, and then mapped to the image in the detail dialog.
However, it also depends on how you have bound the machine data on your overview page to the list (via Data Source or Global Variable). These different binding contexts are explained in the Advanced Course on Client-Side Business Objects, Module 7, Lesson 1: https://community.simplifier.io/binding-contexts/
Jennifer HäfnerHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)Has successfully completed the online course Advanced (310)Has successfully completed the online course Advanced (320)Has successfully completed the Intermediate CertificationHas successfully completed the Advanced Certification2 years ago #34449::Hi Mani,
I assume you load the machine data via Connector/Business Object, and then bind it to the machine overview tiles. When clicking on the detail button for a machine, do you execute another Connector/Business Object to fetch the detail data? Please check if the correct image is loaded from the backend when clicking the details button.
If yes, then the problem must be in the frontend. Check your mappings that you use to bind the detail data to the detail page widgets.
Mani Kumar YadlapalliHas successfully completed the online course Basics (100)2 years ago #34497::Hi jennifer,
yeah, to load the machine data i am using connector in the connector i used rest api to call all the machines. for details button when i click on details button it will go to another page named as dashboard page 2 for this one i use business object to display the dashboard page 2. but my question is how i can display the same image in the dashboard page 2 when i click on details button of the respective image.
Regards
Mani Kumar
You must be logged in to reply to this topic.