Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Some properties missed copying from library
jrreid
I've got a Tomcat webapp that takes a report design, and a library of various tables and grids and dynamically adds parts from the library into the report before rendering it. One issue that I've been seeing is that some, but not all, of the properties are copied when going from the library. For instance, this grid is in the library:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><grid name="courseoutline_horizontalrule" id="520">
<property name="marginTop">0pt</property>
<property name="width">100%</property>
<column id="521"/>
<row id="522">
<cell id="523">
<label name="NewLabel14" id="524">
<property name="fontFamily">sans-serif</property>
<property name="fontWeight">bold</property>
<property name="borderTopColor">#000000</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">medium</property>
<property name="textAlign">center</property>
<text-property name="text">_________________________________________________________________________________</text-property>
</label>
</cell>
</row>
</grid></pre>
<br />
And if I view the source on the resulting final report design it only has:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><grid name="courseoutline_horizontalrule-004" id="549">
<property name="width">100%</property>
<column id="521"/>
<row id="522">
<cell id="523">
<label name="NewLabel141" id="524">
<property name="fontFamily">sans-serif</property>
<property name="fontWeight">bold</property>
<property name="textAlign">center</property>
<text-property name="text">________</text-property>
</label>
</cell>
</row>
</grid>
</pre>
<br />
All the margin and border styling fails to move over. The webapp does the copying by:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
DesignElementHandle ds = this.library.findDataSet(comp.get("_name"));
DesignElementHandle db = this.library.findElement(comp.get("_name"));
// Generate the new element
DesignElementHandle ds1 = this.library.getElementFactory().newElementFrom(ds, componentName);
DesignElementHandle db1 = this.library.getElementFactory().newElementFrom(db, componentName);
</pre>
<br />
Is this a nasty bug in 2.3.2 (and maybe fixed in 2.5?) or any suggestions how to deal with it?
Find more posts tagged with
Comments
mwilliams
Hi jrreid,
If you can build a simple example using the sample database, I'll run it in 2.5.0 and see if the borders are passed.