I have a search page with a suggestion bar, and it opens a product details page with the name of the product selected in the title. I already have a list of products with properties in my app variables. In the product details page, a page variable “selected_product” set from the page parameter “product_id” allows the app to show the name of the product as the title of my product details page.
In this product details page, I also want to show a list of specific details for each of my 400 different products. If I want to always show the same details for the different products, I just have to repeat a paragraph from a source for a list of objects with properties in the app or page variables. I know how to do that from a fixed list of objects with properties. I click on “repeat with” and bind it to the page variable list, and then I set the content of the paragraph to the property of data item in repeat.
But I want to repeat this paragraph from a source which depends on the product selected in the search page. For the title, as I mentioned above, it’s ok, it will show the product selected on the search page, but for my list of details, I want to show the properties of the selected product. But when I click on “repeat with”, I have to bind it to a given product page variable list, I’m not able to use the formula in order to inject the name of the selected product in the binding.
How could I inject the name of the product selected in the search page, in the binding of the “repeat with” paragraph’s property to the different page variables of my 400 products’ details? I prefer to have a general and dynamic product details page, as long as I have 400 products and I don’t want to create 400 different product details pages. My title is already dynamic and I would like to get the product details dynamic too.