When designing your application you are allowed to add all sort of files to your eSpaces. These files are called Resources and can be used in your eSpace, for example: to embed a video file in a Web Screen, to include a PDF document to be downloaded from your application, or simply to add to your eSpace a file containing all the icons of your application in their source format.

How to add a Resource:

In the eSpace tree, under the Data layer, right-click on the Resources folder.

Resources Life Cycle

Any Resource you add to your eSpace is saved in the eSpace's oml file.

When publishing the eSpace, the resources are deployed depending on the value set in their Deploy Action property:

Adding big resource files to your eSpace may slow down the 1-Click Publish operation.

Using Resources

You may use any of the Resources in your eSpace design by referring to it using its path and filename:

<Resource Target Directory>\<Resource filename>

Here are some examples:

Resource Filename

Target Directory

Relative Path














'' (application root directory)


Following are some examples on how to use Resources when designing your application.

Displaying a PDF Document

Imagine you want to display a 'Conditions.pdf'  document after clicking on a 'See Conditions' link in your web screen. Proceed as follows:

      1. Add the 'Conditions.pdf' document as Resource of your eSpace and set its Target Directory property to 'Documents';

      2. Create an External Site element in the web flow of the web screen and name it 'Conditions';

      3. Set the External Site URL property with the Resource path: 'Documents\Conditions.pdf';

      4. Set the 'Conditions' External Site as Destination of the 'See Conditions' link;

      5. Do the 1-Click Publish of the eSpace.

Playing a Video

Imagine you want to play a 'Tutorial1.wmv' video in your web screen. Proceed as follows:

      1. Add the 'Tutorial1.wmv' file as Resource of your eSpace and set its Target Directory property to 'Videos';

      2. Add an Expression element to the web screen where the video is to be played;

      3. Set expression's Expression property to: "<embed src='Videos\Tutorial1.wmv' bgcolor='#FFFFFF' width='600' height='450' type='video/x-ms-wmv'>"

      4. Set expression's Escape Content property to 'No';

      5. 1-Click Publish the application.

Depending on the file type, you may have to configure the application server (IIS or Apache) to serve static files with a specific MIME type. Learn here more about MIME types for situations like the one above where the resource file is embedded with its MIME type.

Using Resources in the Expression Editor

Imagine you want to add a button to allow downloading file ('Rules.pdf') that is a deployed resource of your eSpace:

      1. Add the 'Rules.pdf' file as Resource of your eSpace:

        1. Set its Deploy Action to Deploy to Target Directory;

        2. Set the Target Directory property to 'Documents'.

      2. Add a Button element to your web screen, name it 'Download', and set the Destination property of the button to (New Screen Action) ;

      3. A 'Download' Screen Action is automatically created: edit its action flow and drag a Download element onto the existing End element;

      4. Select the Download element, open the Expression Editor for the File Content property, and choose the 'Ruels.pdf' file from the Resources in the Scope Tree;

      5. Set the File Name property of the Download element to 'Rules';

      6. 1-Click Publish the application

See Also

Resources Properties