Set up an Object Event Script

Use this activity to set up object events scripts. All MineMarket objects can be customised to have their ObjectPropertyChange, ObjectBeforeSave and/or ObjectBeforeDelete object type events perform extra functionality.

Security Note: You need the Allow script maintenance and Allow the user to maintain object events user group security rights in the Scripting user group security rights group for this activity.

Activity Steps

  1. Open the Object Events screen.
  2. If the script to be edited is already in use, click Show Only Used Scripts.
  3. Locate and select the item to be changed.
  4. Check Use Script.
  5. Click Edit Script next to the selected object.

    The Object Events (script editor) displays the script stub for the selected object and the Scripting Ribbon Tab displays.

  6. Edit the C# script. See Object Event Scripts.
  7. Append the public class code after any other public classes in the object event code.
  8. Add versioning information. See Version Control for Object Event Scripts.
  9. Ensure that script references are selected:
    1. Note the DLLs that are referenced in the script. The DLLs are listed at the top of the script, after the word "using".
    2. Select the References tab.
    3. Select the required DLLs.
  10. Click the Build icon on the Scripting ribbon tab to compile the script.
  11. Click the Save icon on the Scripting ribbon tab.