Sample files will be used to demonstrate how a new custom application is created in EKM. The script file is named mixing-tank-simulation.py and the resource archive is named mixing-tank-simulation.zip. You will need to download these files to your local computer. They are located in the following folder: EKM_HOME/Sample Files/custom-apps.
Note that the Custom Application action
is only available to admin users.
To create a custom application:
Go to Home/My Applications or Administration/Shared Applications and select
(New) > .
This will open the Create Custom Application dialog box.
In the Application name edit box,
type Mixing Tank Simulation.
Click
under Application folder to select the repository folder where you would like to save the
application. For easy access you may want to save it in the /Home/My Applications folder or the /Administration/Shared
Applications folder.
Click
under Script file to select a script file for the application. Select the sample mixing-tank-simulation.py file on your local system. This
is the script file that provides the back-end of the application.
In the Macro name for dialog creation edit box, enter init for the macro name
that creates the custom dialog box. This is the name of the macro
that is defined in the script file.
Click
under Resource archive to select the archive file (.zip, .tar or .tar.gz) that contains the
user interface resources needed to define the front-end user interface.
Select the mixing-tank-simulation.zip archive
file on your local system.
Since the application in this example will be a standalone application that can run independently, leave the Embedded check box deselected. Embedded applications are associated with processes, and can only be launched from a process. Standalone applications will appear on the Application launcher, while embedded applications will not (see Executing a Custom Application).
Click . The application named Mixing Tank Simulation of type EKM Application will be created and added to the repository
folder that you specified.