Enhance dynamic form service error handling and add pagination to DataGrid component
- Added error handling in DynamicFormService to throw an error if the record to be updated is not found, improving robustness. - Enhanced DataGrid component with pagination features, including page size input and navigation buttons, to improve data management and user experience. - Introduced state management for current page and page size, ensuring that data is displayed in a paginated format, making it easier for users to navigate through large datasets.
This commit is contained in:
@@ -1195,6 +1195,10 @@ export class DynamicFormService {
|
||||
|
||||
const updatedRecord = Array.isArray(result) ? result[0] : result;
|
||||
|
||||
if (!updatedRecord) {
|
||||
throw new Error(`업데이트 대상 레코드를 찾을 수 없습니다. (id: ${id}, 테이블: ${tableName})`);
|
||||
}
|
||||
|
||||
// 🔥 조건부 연결 실행 (UPDATE 트리거)
|
||||
try {
|
||||
if (company_code) {
|
||||
|
||||
Reference in New Issue
Block a user