When I set up deletes for records I always set up a modal with a detail region containing some dynamic data from the recordset being deleted and confirmation message before confirming the delete and running the delete action.
It all works great until I bind the delete action to the form and then the dynamic data is lost. I can reproduce this on every occasion.
As soon as I remove the action file the data shows up again.
Edit: Exact same thing happens with Edit Actions in a modal.
Brad, I use modals all the time, my clients love them. I set the list up with data-view and have the data-detail inside the form. This gives me the record ID as per the following
That’s exactly as I do except I put the form inside the data detail instead of the data detail inside the form. I’ll try your way and see what happens. Thanks, @ben
This is what George explained in a previous discussion Ben - this is because of the variable paths. All the App Connect data components - that have an ID - get a data path that follows their nesting in HTML.
Brad how did you build the form in the modal? Did you start with blank modal and inserted all the form and components one by one from scratch there or did you copy the form from somewhere?
I have a modal that has a detail region containing a form. It all works fine and shows the data as it should. But as soon as I add the edit or delete action to the form, the data no longer shows up.
I’m at my wits end. It’s the same as I have been doing in DW all along. In Wappler I can replicate this behaviour 100% of the time on two different projects.
I checked your HTML and the expressions that are used and found the problem. The form and detail component both have a data property, the expressions look up the data and find the data property from the form first. To get the data property from the detail component just prefix it with the component id. The data picker is currently not smart enough to detect these edge cases, we do our best to improve this.