This article shows and explains how to add a data check to MET/TEAM that has been provided as a text file from Fluke Calibration Software Support or CIT.
Video Instructions:
Text Instructions:
In this example, we are using the data check titled "Work Orders - Type Check". It can be used to keep work orders in sync if an asset changes its type after it has been received. Be warned, however, that this data check may break Job Number fund allocation behavior. A copy can be downloaded here:
Work Orders - Type Check.txt
Steps to add the data check to MET/TEAM:
- Copy the contents of the text file to the clipboard.
- Log onto MET/TEAM as an administrator and go to Configure -> Data Checks.
- Click the Add button.
- Name the data check "Work Orders - Type Check", set it as active, and set the Affected Page to "Work Orders".
- Paste the contents of the text file into the body of this data check record.
- Save the record.
- Copy the commented out SQL statement near the top of the data check code (see below screenshot). SQL queries in data checks typically begin with SELECT.
- Click the "Create Data Check SQL" green plus button in the lower-left corner of the SQL Functions grid.
- Paste in the copied SQL code into the body of this pop-up window, and title it "GetTypeInfo" (sans quotes). Note: the title is case-sensitive and must exactly match the name called in the data check code.
- Save the pop-up window.
- Now open the affected page, in this case the Edit Work Order page and modify something on the page and click the "Save" button.
- Ensure the page correctly saves and the refreshes with the "Save" button disabled.
- If any errors occur or the page does NOT save, verify things were copy and pasted correctly. Also verify SQL functions were correctly named. These are the most common issues with adding data checks. If you are unable to get the page to save, un-check the "Active" check box and save the data check. This will immediately disable the data check so you can verify the page will again save correctly.
If you have any questions or concerns, contact softwaresupport@flukecal.com