Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Adding image dynamically
Migrateduser
<p>Hi, </p>
<p> </p>
<p>I need to change the URI of image at a runtime, The target xml code should look sometihng like this:</p>
<p> </p>
<div>
<pre class="_prettyXprint">
<image name="myImage" id="177">
<property name="height">2in</property>
<property name="width">2in</property>
<property name="source">file</property>
<expression name="uri" type="constant">c:\temp\image.jpg</expression>
</image></pre>
<p> I am able to set pretty much everything through Java except the '<strong>type="constant"</strong>' tag. the following java code would produce xml almost identical to above, except <strong>type="constant" </strong>is missing</p>
<pre class="_prettyXprint">
ImageHandle image= (ImageHandle) reportDesignHandle.findElement("myImage");
image.setWidth("2in");
image.setHeight("2in");
image.setFile("c:\\temp\\image.jpg");</pre>
<div>
<pre class="_prettyXprint">
<image name="myImage" id="177">
<property name="height">2in</property>
<property name="width">2in</property>
<property name="source">file</property>
<expression name="uri">c:\temp\image.jpg</expression>
</image></pre>
<p>Anyone knows how to set the "type=constant" through Java?</p>
<p>Thanks! </p>
</div>
</div>
Find more posts tagged with
Comments
There are no comments yet