This is what I’m trying to do:
1.) When a contact is clicked in a repeater on the parent page, the data is pushed into a drawer for displaying the selected data inside the drawer. (This is working)
2.) Modify the data inside the drawer that has all of the needed fields inside it for modifying the selected record. (Also working)
3.) Push the modified record back into the selected row of the repeater and mark the record as needing to be saved back to the database. (SOME of this is working – I’m able to add a new property to the repeater row’s data, but not modify any existing data inside the row.) I’ve also tried doing this by storing the properties inside pageData. This didn’t work either.
Then, I am attempting to update the selected row on the drawer’s close event. I have a JS confirmation asking the user if they’d like to save the modified data or not, and after the user confirms, I’m trying to save the modified data back to the selected row on the repeater. (I’m having problems here!).
Then the user clicks on the added button to save the modified record back to the database. (Working)
What is the “Drawer Content Data Model” for, exactly?
It seems to be available when you’re working inside the POD in the drawer itself, but there doesn’t appear to be a way to set it from the parent page that has the drawer on it to push the selected data into the drawer.
Right now, I’m using various pageData objects for storing the selected data and its various properties of the selected data that the drawer uses to populate all of the fields.
The problem seems to be occuring when I try to push the data back into the selected repeater row to update it.
Any ideas?
I’m probably just missing something stupid
Mike