You can configure the DMS Data Entry module so that when you save a new or edited data record, DMS launches an external application and sends selected data fields from the saved record to that application. This can be configured only for records with defects or for all DMS records.
To set this option for the DMS Data Entry module on a workstation:
Add a line to Cms.ini:
To launch an external application only when the record contains defects, use on_save=drive_letter:\file_path\AppName.exe
To launch an external application for all new or edited data records, use on_save_action=drive_letter:\file_path\ AppName.exe
Choose which data fields to send to the external application, and append them to the on_save= or on_save_action= line in Cms.ini.
Parameter |
Description / Remarks |
Sample output |
%trace1 |
traceability field n, |
"Dana" |
% part_process |
the standard for which data was saved |
|
%date |
the date portion of date/time field |
"4/30/2005" |
%time |
the time portion of date/time field |
"13:48:35" |
%note |
note field |
"Replaced and adjusted tooling at 7am" |
%defect |
defect |
"Broken" |
%defect_count |
defect with count |
"Broken (3)" |
% defect_location |
defect with location |
"Broken: R2, C4, R6" |
%Ln |
number n of line feeds to append |
|
The fields you select will be formatted as a string of quote-separated, comma-delimited fields. The exception is %L#, which will not be formatted with quote separators. For each type of defect recorded in the data record, the program will send one of these formatted strings, followed by a CR/LF.
Example:
Sample Cms.ini setting:
on_save=App.exe %trace1, %date, %trace2, %defect_count, %L3
Sample output to App.exe when data is saved:
"Dana", "4/30/2005", "130", "Broken (3)", 3
"Dana", "4/30/2005", "130", "Scratched (1)", 3
"Dana", "4/30/2005", "130", "Dented (8)", 3
Error Message:
The application specified in the on_save=ini command can not be found. Please contact your system administrator for assistance.
Solution: You may need to correct the drive letter, file path or file name of the application you specified for the on_save= Cms.ini setting.
Error Message:
The on_save=ini command cannot be activated due to invalid settings. Please contact your system administrator for assistance.
Solution: You may need to correct one or more %field parameters in the on_save= Cms.ini setting.