BIRT Exchange Forum: Setting HTML id to "text" element - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Setting HTML id to "text" element Rate Topic: -----

#1 User is offline   evgenyak Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 46
  • Joined: 13-September 11


Posted 11 March 2012 - 01:03 AM

Hello,

I have a report which has a chart, a text box and a table.
I'm able to conditionally hide the chart using
style.display = "none";
based on the element id.
I would like to be able to do the same with the text box.
However, I don't know how to set an element id on the text object.

And the resulting HTML looks like:
<div class="style_1" style=" overflow:hidden;">(*) Note: </div>



Thanks,
0

#2 User is offline   evgenyak Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 46
  • Joined: 13-September 11


Posted 12 March 2012 - 06:12 AM

I solved it simply by adding <div id="comment">(*) Note:</div> inside the CDATA
0

#3 User is offline   johnw Icon

  • Senior Member
  • View blog
  • Group: Members
  • Posts: 712
  • Joined: 08-May 08


Posted 12 March 2012 - 06:51 AM

You can use the Bookmark property on any report item, and it will set the outer most DIV containers ID to the value of the bookmark.
0

#4 User is offline   evgenyak Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 46
  • Joined: 13-September 11


Posted 12 March 2012 - 07:38 AM

View Postjohnw, on 12 March 2012 - 06:51 AM, said:

You can use the Bookmark property on any report item, and it will set the outer most DIV containers ID to the value of the bookmark.


This was my initial choice - but I wasn't able to make it work :(
0

#5 User is offline   johnw Icon

  • Senior Member
  • View blog
  • Group: Members
  • Posts: 712
  • Joined: 08-May 08


Posted 12 March 2012 - 09:15 AM

Bookmarks are expressions. So if you were using comment as your ID, you would need it to be qualified as a string literal with "comment", with quotes. Hope that helps.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users