Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to access a label in a grid cell ?
nikodem38
During onPrepare I'm adding a label inside a grid cell
Now I want to modify the label text during the onRender phase ?
How can I do that?
Find more posts tagged with
Comments
kclark
This is the code for changing the label by it's name<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
reportContext.getDesignHandle().findElement("myElementId").text = "test"
</pre>
<br />
This code is if you know the ID number<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
reportContext.getDesignHandle().getElementByID(74).text = "Test"
</pre>
<br />
You can get the ID number or assign the number under the general tab in the propriety editor