How will the form fields be populated? If you click on {{currentRow}}, does it show the right object:
I might be missing something! But this set up appears to be working on my side. Once you expand a row, the form data for that row will show under form1
The strange behavior is the state of the form has new arrays added to it when rows are expanded. Is each data set added in the state the data in the form for the expanded row? If that is the case, why wouldn't the form already have a set of data for each row in the table before they are expanded?
I found a different approach to accomplish what I was initially trying to do that brought me here, but would still like to better understand how the state evolves for components in expandable rows. The initial use case was simply to nest extended details for each record under the more critical aspects of the record, allowing users to access that information without having to "scroll right" forever. I had thought I would be able to create a JSON object in the query that could then be expanded, but found the nesting logic and states got complex.
Got it! I believe that part is expected (once expanded, it gets added to the component's state & will stay there even if collapsed) I'm glad you were able to move forward!
I added this thread to an internal ticket for our engineering team to review where we're tracking feedback on the expandable rows data structure.