Start typing and select a procedure type from the completion suggestions:
- -Press
${col.headerName} | `; - }); - printContent += "Validation Errors | "; // Add error header - printContent += "|
---|---|---|
${moment(new Date(row[col.field])).utc().toDate().toDateString() ?? ''} | `; - } else { - printContent += `${row[col.field] ?? ''} | `; - } + // custom useEffect loops for msvdatagrid --> setting date range filters + useEffect(() => { + if (currentCensus) { + const allDateRangeIDs = currentCensus.dateRanges.map(range => range.censusID); + setSelectedDateRanges(allDateRangeIDs); + } + }, [currentCensus]); + + useEffect(() => { + fetchValidationErrors() + .catch(console.error) + .then(() => setRefresh(false)); + }, [refresh]); + + useEffect(() => { + if (errorRowCount > 0) { + setSnackbar({ + children: `${errorRowCount} row(s) with validation errors detected.`, + severity: 'warning' }); - const errorDescriptions = getRowErrorDescriptions(row.id).join("; "); - printContent += `${errorDescriptions} | `; // Print error descriptions - printContent += "