Launching an External Application from Data Entry

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:

  1. Add a line to Cms.ini:

  1. 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
%trace2...
%trace48

traceability field n,
where
n is an integer from 1-48

"Dana"

% part_process

the standard for which data was saved

 

%date

the date portion of date/time field
(in the format displayed in Data Entry)

"4/30/2005"

%time

the time portion of date/time field
(in the format displayed in Data Entry)

"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:

on_save=App.exe %trace1, %date, %trace2, %defect_count, %L3

"Dana", "4/30/2005", "130", "Broken (3)", 3

"Dana", "4/30/2005", "130", "Scratched (1)", 3

"Dana", "4/30/2005", "130", "Dented (8)", 3

Troubleshooting Error Messages

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.