Wikis - Page

How-To reference an imported image via javascript in Composer

0 Likes

You can import an image into Composer and then use JavaScript on the form to interact it with it.  To do this, you will need to know where SBM stores the images or other object.

When your process app gets deployed, SBM will copy images into [SBM Server Install Directory]\Application Engine\bin\images directory.  These files are placed in sub-directory to images using a name of the process app UUID.  The name of the image is the UUID with file extension of the imported image.

Find the process app UUID in Composer by select the process app and get the design number: 

Next, go to Visual Design and select images.  Right click on your column headers, choose Columns and make sure that GUID is displayed.  This is the name of the image file.

Now you can reference your image file by creating the link in this form:  /images/<process app GUID>/<image GUID>.<image extension>.  In this case, the URI would be '/images/d09c216e-78b8-4f81-82a0-304b9348efd5/ 1c03530c-287f-4471-85fb-86808efc162a.png'.

Labels:

Support Tips/Knowledge Docs
Comment List
Related
Recommended