diff --git a/packages/materialdesign-components/src/Templates/indexDatatable.js b/packages/materialdesign-components/src/Templates/indexDatatable.js index 0a201db75a..798a9061ba 100644 --- a/packages/materialdesign-components/src/Templates/indexDatatable.js +++ b/packages/materialdesign-components/src/Templates/indexDatatable.js @@ -33,6 +33,15 @@ const tableProps = (index, indexSchema) => ({ ], }, ], + onLoad: [ + { + "##eventHandlerType": "List Records", + parameters: { + indexKey: "/all_contacts", + statePath: "all_contacts" + } + } + ] }) const columnHeaders = indexSchema => diff --git a/packages/materialdesign-components/src/Templates/recordForm.js b/packages/materialdesign-components/src/Templates/recordForm.js index 25a040470c..c41c52b147 100644 --- a/packages/materialdesign-components/src/Templates/recordForm.js +++ b/packages/materialdesign-components/src/Templates/recordForm.js @@ -12,7 +12,7 @@ const outerContainer = record => ({ { "##eventHandlerType": "Get New Record", parameters: { - collectionKey: record.collectionKey, + collectionKey: record.collectionNodeKey(), childRecordType: record.name, statePath: record.name, },