Adding generic run records process

This commit is contained in:
2023-03-07 15:51:11 -06:00
parent 516f874a56
commit 8c767635de
3 changed files with 100 additions and 42 deletions

View File

@ -332,6 +332,25 @@ export default function App()
});
});
const runRecordScriptProcess = metaData.processes.get("runRecordScript")
if(runRecordScriptProcess)
{
const process = runRecordScriptProcess;
routeList.push({
name: process.label,
key: process.name,
route: `${path}/${process.name}`,
component: <RecordQuery table={table} launchProcess={process} />,
});
routeList.push({
name: process.label,
key: `${app.name}/${process.name}`,
route: `${path}/:id/${process.name}`,
component: <RecordView table={table} launchProcess={process} />,
});
}
const reportsForTable = ProcessUtils.getReportsForTable(metaData, table.name, true);
reportsForTable.forEach((report) =>
{