Hi there! I was hoping that I could get some help with setting up a details page for a repeating data list that I’ve got setup and working.
What I’ve tried so far:
Created a workflow on the item layer which saves the artwork_id into local storage. The saving of the artwork_id works nicely. I then run a request for the artwork details where I pass the artwork_id and the API returns the specific artwork details correctly. (See screenshot #1)
On the item I have also set the link to the Artwork Details page (See screenshot #2)
On the Artwork Details page I have a couple of elements linked up to my artwork_details API (See screenshot #3)
The issue I am experiencing is that when I click through to a new artwork, I am shown the previous artwork’s details that I clicked on. When I hit the reload button in the Webflow editor I get the correct details of the artwork in the list I just clicked on. What am I doing
@Thulo is it just me or is there only 1 screenshot in your original post?
Nonetheless, I have a few thoughts:
do you need to refetch on the details page? for example, if all that data exist in the item layer in which case you can pass an object for selected_artwork which will populate the details.
if you do indeed need to refetch, walk through the logs to make sure you are calling the workflow everywhere you expect;
another, albeit more burdensome process is to step through the workflow. Here’s how I do that. First, clear your log so you can eliminate the noise. Then press “test” on each action one by one. After each one, you’ll see the log populate—check here to make sure the data is behaving as you’d expect. If one of these actions control something in the UI, for example changing a variable to display a modal, close the workflow editor and return to the UI to validate. Once done, return to the workflow editor to continue stepping through. I can’t even count the number of times I’ve uncovered a small bug this way.
also consider flushing that artwork_id when you close the artwork detail page.
@Thulo - we spoke about this earlier and I think you resolved this correct? Let me know if you need any assistance and we can schedule a quick call or I can produce another loom. Feel free to check out my upcoming live WeWeb/Xano cohort.