You can position and configure an SVG on an image.
You can configure an SVG image in one of the following ways:
By scheduling a transaction that will update the SVG file in the web content of the project at regular intervals. The transaction can be scheduled using the Scheduler screen on the SAP MII administration screen. For details, see Animated Objects.
Configuring an Xacute query on the Self Service Composition Environment screen
Manually by adding custom code in the Source Code tab page in Self Service Composition Environment screen
For details, see the section Configuring SVG Image in the Activities section.
Note
You must include Viewbox attribute while creating a SVG object else the object will not be displayed properly on the image.
On the SAP MII administration menu, choose Working with Scheduled Jobs.
. For more information on configuring, seeRender an SVG object in SAP MII Self Service Compostion Environment.
Choose Choose SVG Display.
Enable Refresh Automatically and enter a value in Refresh Rate.
In Self Service Composition Environment, choose Choose SVG Display.
Enable Refresh Automatically and enter a value in Refresh Rate.
From the Choose Query Template, choose an Xactue query.
Note
Only Xacute queries are displayed. The output of the Xacute query must be of type XML, which returns an SVG object.
Choose Apply.
In the Self Service Composition Environment, choose Source Code.
The Source Code page displays the HTML source code for the selected SVG image.
You can add the existing methods, updatesvg(url, callbackfunction) and refreshsvg(refreshrate, callbackfunction) in the section marked for user-entered script.
Additionally, you can also add Javascript code other than the existing methods.
Choose Apply.