By a simple drag and drop we drop the icon ''.Runto the desired location in the column ''.Properties''. Or ''Double click'' on the icon ''.Run''.

This type of property allows to launch an application or a macro according to an event (button, opening or validation of SmartProperties).

The type ''RunSmartProperties'' is intended for advanced users who have some development skills to create applications. These applications can be run with SmartProperties.


 


The type of application is set by selecting it from the drop-down menu.


 


Three types are available:

''Application'' - a program (.exe) will be executed

''Macro'' - a macro function (.swp) will be executed

''Website'' - a link will open a web page to access a website.


In the area ''Properties'' we will find the parameters related to this action.

  • Triggering :


 


-> ''Button'' - indicates that the action will be triggered by pressing a named button.

-> ''At the launch of SmartProperties'' - indicates that the action will be triggered when the SmartProperties utility is launched.

-> ''To the validation of SmartPropertiesindicates that the action will be triggered as soon as you press confirm  .

-> ''After closing SmartProperties'' - indicates that the action will be triggered as soon as you exit the SmartProperties utility. In fact you can validate the information by pressing  but if the window has been pinned    then this action will not be taken into account.

-> ''During the specification test'' - indicates that the action will be triggered while the utility takes into account the parameters defined in the '' fieldSpecifications''. Before the creation of properties. This can be used to add custom specifications by using the ''Specification of the application's output code''.

-> ''Before creating an input mask'' - indicates that the action will be triggered before analyzing the already existing properties in the file and displaying the SmartProperties input mask in the PropertyManager.


  • Location:

The location and application (macro or executable) are determined here by pressing    that will trigger the action.

  • Argument:

-> For a macro this parameter is automatically filled in, it is usually the entry point of the macro.

-> For an executable application you specify here the parameters to be passed at the beginning of the program. To declare variables used in the program, the name must be preceded by the character ''.$''.


Once this information has been entered, it is still possible to intervene on certain options.


 


''Wait for the end of the application before handing over to SmartProperties'' - indicates that as long as the application execution is not finished, the SmartProperties utility is suspended and will only take over at the end of the program. This option is not available for the execution of a macro, so it will be grayed out.

''Update properties after triggering'' - allows to update the value of properties (specified in the list) in the input mask of SmartProperties after the program execution. In case of several properties the separator used will be the ''.,''.

''Specification of the application's output code'' - used only with the '' triggerDuring the specification test'', allows to add a specification. If the output code of the application is different from the code entered in SmartProperties then the properties are not created. In your application use the api ''.Environment.Exit'' to return the output code of the application.