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)
how can I set dynamic text in java event handler ?
johnnyQ
hi,
I am new on BIRT and JAVA, I created a table that contains some fields
ID . . name
1 . . studentA
1 . . studentB
1 . . studentC
2 . . studentC
2 . . studentC
2 . . studentC
3 . . studentC
3 . . studentC
3 . . studentC
I just want ID show once. if next is same value, just shows blank or invisible until value changed. I use Dynamic text for the data recording & I created class for DynamicTextEventAdapter and its onPrepare method. I dont know what to do next... please help (using java to write event handler or javascript...)
thats the result I want
ID . . name
1 . . studentA
. . studentB
. . studentC
2 . . studentC
. . studentC
. . studentC
3 . . studentC
. . studentC
. . studentC
or just tell how to identify other components in javascript. for example, if I am in labelA javascript, I can use this.text to set its value, can I set other components value in labelA's javascript screen (labelB, labelC) ?
I found reportContext.getDesignHandle().getElementByID() can be used in script, but no 'text' or 'value' property following... I just want to set or get other components value.. something like reportContext.getDesignHandle().getElementByID().text or reportContext.getDesignHandle().getElementByID().value why its so hard ....
thanks
Johnny
Find more posts tagged with
Comments
johnnyQ
could anyone help ?
Virgil Dodson
Hi Johnny, you can accomplish what you want by by selecting the table, then selecting the ID column, then place a check box by "suppress duplicates" in the General properties for the column.