i have built a card list using an aray and have them all working, but i cant seam to get any actions to work. I have set up a helper table to build the JSON array and each object has the original tables UI, how can i have it go to detail page with action?
1 Like
What specific action is not working? Is it only the details page thing?
I think what’s missing here is not a single action per se, but two actions.
- Add a column called “viewingID” to your Users table. Add a relation to relate it to the right record in your table where you store records as shown.
- Add to your AI component an action to show the details screen of the relation you established above. Let’s call this “detailsView”.
- In your AI component, tell it to add a button and on click, first set the rowID to the “viewingID” column, then execute the “detailsView” action.
Why do we have to do this?
- AI Components don’t have the direct ability to show the details screen of a record (hence the detailsView action needs to be tied to it).
- Glide actions don’t have the context of what element you’re clicking on the screen (hence we have to set the rowID first).
1 Like
Thanks! ill give that a go!
2 Likes
Let me know if it works!
1 Like