{"id":31691,"date":"2017-01-31T04:41:34","date_gmt":"2017-01-31T12:41:34","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/2019-1-2\/developers\/scripting-guide\/trigger-field-value-change-script\/"},"modified":"2020-06-18T16:26:41","modified_gmt":"2020-06-18T23:26:41","slug":"trigger-field-value-change-script","status":"publish","type":"docs","link":"https:\/\/ephesoft.com\/docs\/products\/transact\/developers\/scripting-guide\/trigger-field-value-change-script\/","title":{"rendered":"Trigger Field Value Change Script for Table Data Fields"},"content":{"rendered":"

Summary<\/strong>
\nThis feature helps the user to run custom script while changing the table data on the validation screen. System triggers a validation script if you change any table field. The system control defaults to the 1st invalid entry on the table view if the script is ON. This feature works the same way as the field value change script works for document level fields.
\n
\nSteps to Run the Function:<\/strong>
\nPre-Requisite:<\/strong>
\n1.\u00a0Go to the\u00a0Batch Class Management\u00a0<\/strong>screen.<\/p>\n

2. Create a Batch Class or enhance an existing batch class.<\/p>\n

3. Add Table Name under the batch class and set \u201cTable Cell Value Change Script\u201d to true. The default value for the field is False.<\/p>\n

Screen Print:
\n\"Image1\"<\/a><\/p>\n

4. Set Table cell value change Script Switch \u201cON\u201d under validate Document Plugin.
\nScreen Print:
\n
\"Image2\"<\/a><\/p>\n

5. Configure the table columns and table extraction rules.<\/p>\n

6. Apply and deploy the newly added configuration.<\/p>\n

7. Go to Ephesoft\/SharedFolders\/Batch_Identifier\/ScriptTableCellValueChange.java<\/p>\n

\"Image3\"<\/a>
\n8. Open the script.
\"Image4\"<\/a>
\nNote: This script is bind to the table, if needed configure the script as required.
\nNote: Ctrl + open bracket \u2018[\u2019 {[} will be used as script enable disable shortcut key.
\nThe following information is displayed in the script:<\/p>\n