Events and Scripts

Scripts and Events allow you to create more complex apps by providing the ability to write your own code segments (Scripts) which can be actioned when certain things happen at runtime, such as the user clicking on a button or changing the value within a Control.

Digitise Apps includes its own Scripting language, providing a set of built-in functions (called Methods) which will provide the basis of your Scripts. The Methods cover such things as:

  • Form navigation,

  • Data access,

  • Property management,

  • Data manipulation

Scripts are linked to 'Events' – predefined conditions which occur within the app at runtime, for example, as mentioned earlier, when a button is clicked or the user changes the value of a control but also by such things as when the app or a form loads or unloads. The Digitise Apps Client continually monitors for any of the Events to happen and when one does, it checks to see whether you have assigned a Script to that Event, and, if so, it runs the Script to perform the actions contained within it. Digitise Apps provides a fixed set of Events to which you can assign Scripts, but you don't have to assign a Script to all Events. Only those which are required to provide the functionality you want.

 

Scripts are written and assigned to Events in App Studio as part of developing your apps. For more information about using Scripts and Events to add functionality to your apps, see Events and Scripts in the User Guide section of this online help.