I’m trying to add a new row (form) to a datagrid using a repeating panel template. I can append the items list of the repeating panel and confirm the addition via a print statement, but what I can’t get to happen is a refresh of the datagrid to show the new row (form). You can see I’ve tried a few things (commented out in the below):
alert("You said you want to insert a New LAST Row")
#self.techncial_notes_tasks_data_grid.add_component({'item_number_column': '26', 'comment_column': '', 'action_column': '', 'owner_column': '', 'target_date_column': '', 'date_completed_column': '',})
self.technical_notes_repeating_panel.items.append({'item_number_column': '26', 'comment_column': '', 'action_column': '', 'owner_column': '', 'target_date_column': '', 'date_completed_column': '',})
print(self.technical_notes_repeating_panel.items[24])
print(self.technical_notes_repeating_panel.items[25])
#self.technical_notes_repeating_panel.parent.raise_event('x-refresh')
#self.techncial_notes_tasks_data_grid.parent.raise_event('x-refresh')
#self.technical_notes_repeating_panel.items.raise_event('x-refresh')
get_open_form().raise_event('x-refresh')
##self.technical_notes_repeating_panel.raise_event('x-refresh')
##self.techncial_notes_tasks_data_grid.raise_event('x-refresh')
##self.technical_notes_repeating_panel.get_open_form().raise_event('x-refresh')
#TN().raise_event('x-refresh')
#self.parent.raise_event('x-refresh')
Any suggestions?