Description
When using embedded_block in a report to open and edit a record in a modal dialog, the report table row should be refreshed to show the updated data after the modal closes.
Related Issue
This is a follow-up to #325 (Allow embedded_block in report to use a URL with /edit).
Current Behavior
Expected Behavior
- After successful save and modal close, the corresponding row in the report table should be refreshed to display the updated values
Technical Considerations
- The report row can be identified by its
id attribute: report-item-{id}
- May need to re-run the report SQL for just that row, or use the JSON response data
- Consider using AJAX to fetch the updated row HTML
- May need to handle different
show_as column types during refresh
Acceptance Criteria
Description
When using
embedded_blockin a report to open and edit a record in a modal dialog, the report table row should be refreshed to show the updated data after the modal closes.Related Issue
This is a follow-up to #325 (Allow embedded_block in report to use a URL with /edit).
Current Behavior
embedded_blocklink in a report table to open a record in a modalExpected Behavior
Technical Considerations
idattribute:report-item-{id}show_ascolumn types during refreshAcceptance Criteria
embedded_blockmodal, the corresponding report row updates with new valuesshow_astypes (url, embedded_block, choice_label, etc.)