I’m building a single page app.
I have a page (group) with a RG with a list of Invoices. When I click on a specific invoice, the invoice opens in another page (group).
How do I pass data from the RG to the Invoice? Or how do I set the data source of the invoice to be the RG list?
This doesn’t answer your question directly, but the necessary concepts needed can be seen in this video (rather a walkthrough than instructional but pretty insightful nonetheless):
Set the datatype of the invoice view group as invoice, then all groups and elements within that group set to reference 'parent group’s invoice.
When you do your workflow for hiding the invoice list group and showing invoice view group then add a step for the element action ‘display data’ and choose the group element and the data would be ‘current cell’s invoice’
Alternatively you can actually have it as a hidden group in your RG…look up accordion menus
I tried to do as you said. I don’t know where I mess up. But it doesn’t update the data of the invoice.
Maybe the problem comes from the architecture. I have a RG (invoice list) with groups. And I have a Group that I can click in my RG to open the invoice. This Group is in my RG over all the other groups. (See screenshots of Elements tree.)
if you’ve set up your RG to be an accordion menu style you don’t need to use a display data WF because it’s all under the same parent RG group and the data can be sourced from there. You should always be choosing ‘current cell’s invoice’ or ‘parent group’s invoice’ as your data source and just showing or hiding groups.
Use the ‘toggle’ action rather than show/hide on an accordion menu this will automatically open and close it when you click on the clickable group.
So you will just need to check all your groups to make sure they all have the data source entered. What is the parent group for Group Invoice Details? Have you set it’s data source correctly?