A collection of Progress 4GL programs for managing items in a QAD database, featuring interactive item addition, CSV import/export capabilities, and data validation.
Program for adding new items to the database through user input with real-time validation.
- Interactive form-based input
- Real-time data validation
- Domain-specific item creation (POLYMED domain)
- Comprehensive field validation:
- Item Number uniqueness
- Product Line existence
- Item Type validation
- Status verification
- Purchase/Manufacture code validation
- Item Number
- Description (default: "new item added from putty")
- Prod Line (default: "Def")
- Added Date (default: today)
- Item Type (default: "BB")
- Status (default: "ACTIF")
- Purchase/Manufacture (default: "P")
- Price (default: 0)
Program for bulk importing items from a CSV file with validation.
- CSV file import functionality
- Automatic data validation
- Bulk item creation
- Error handling and validation:
- Directory and file accessibility checks
- Data completeness verification
- Business rule validation
Input file should be named inputItem.csv by default with fields separated by |:
domainItem|numItem|descItem|prodLine|addedDate|typeItem|statusItem|pur_manItem|priceItem
Program for exporting item details to CSV based on a specified item range.
- Item range selection
- Cost calculation integration
- CSV export with timestamp
- Directory validation
- Tabular data display
Generated CSV includes:
- Item Number
- Description
- Item Price
- Cost Standard
- Cost Current
Output filename format: itemDetailsTable_DDMMYYYY_HHMMSS.csv
- QAD EE environment
- Progress 4GL runtime
- Appropriate database permissions
- Access to the following database tables:
- pt_mstr
- pl_mstr
- code_mstr
- qad_wkfl
- sct_det
- sct_cst_tot
RUN zzadditem.pFollow the interactive form to input item details.
RUN xxadditem.pEnsure your CSV file is properly formatted and accessible.
RUN zzitemrange.p- Enter starting and ending item numbers
- Specify export directory
- Review displayed data
- Confirm export
- Item Number must be unique
- Product Line must exist in pl_mstr
- Item Type must exist in code_mstr
- Status must exist in qad_wkfl
- Purchase/Manufacture code must be valid
- All required fields must be present
- Item must not already exist
- Referenced values must exist in respective master tables
- Directory and file permissions are verified
All programs include comprehensive error handling for:
- File access issues
- Data validation failures
- Database constraints
- Missing required fields
- Invalid reference data
.
├── README.md
├── zzadditem.p # Interactive item addition
├── xxadditem.p # CSV import functionality
└── zzitemrange.p # Item range export
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request