Home
Analytics
GetElementByname propert set
pm.nayak84
I have a table in my bIRT report . I am hiding the header row using the Bookmark value as "row2" through the HTML button script . It works fine and hides only the first page header not 2nd page onwards .
Can you please let me know is there any property in BIRT which can be set as "name" attribute ( as in javascript) and GetElementsByName can be used to hide all the occourance of header throughout the report .
Can we use either GetElementsByName or GetElementsByTag .
Find more posts tagged with
Comments
mwilliams
If you're wanting to grab the report element, client side, with getElementById, setting the bookmark for the element in your report is the way to go.
pm.nayak84
Hi ,
Bookmark has to be set and getElementById is used usiung Bookmark value .
If i want to make use of GetElementsByName , GetElementsByTag or anyother function to work upon the table ...which property of report can be used to pass asa parameter for these functions .
If i pass getElementsByName("bookmark value of report") ....it does not work .
Could please let me know how to make use of functions other than getElementByTag.
pm.nayak84
Hi ,
Here is the attached Report . When i go for HTMN view and clicks on show/hide ..it hides only the first page header ..not 2nd page onwards .
For that reason i am thinking of make use of GetelementsByname so that it can go and hide all the occurance of element.
mwilliams
As far as I know, the only one that sets and can be accessed in the BIRT output is the bookmark with the Id property. What is the reason that this will not work for you?
pm.nayak84
I have attached a report here . While viewing the HTML output "show/hide" is only hiding the table header of first page . Its not hiding the 2 nd page tabl eheader .
i want to hide header in all the pages so thought of using GetElementByname if i can set the name property for the row .
Right now if i set bookmark for header , it works as a "id" propert ,simillarly i want to set "name" property
mwilliams
Looks like the report didn't get attached. Is it a report I can run? You just want to be able to show/hide the masterpage header in all pages if the user selects to? Is this correct?
pm.nayak84
Hi ,
The report is attached in one of the above reply .I am attaching it here once again.You can run the report as it uses the inbuilt tables.
mwilliams
Definitely, the issue here is that id is supposed to be unique, so grabbing an id will only return the first. If I find another way to go about this, I'll let you know. You can always log a bug for this and see what they say. Maybe they'll suggest a way around this.
pm.nayak84
Hi ,
1) Where do i report this kind of issues as a bug .
2) Does BIRT provide any facility to import a JSP or AJAX classes which we can call at a particualr position on the report and can acheive these kind of iteractivity like hiding the table which appears on everypage before the column header .
3) Do you have an example of report which shows the muse over propert ..like when we hover over employee id ..it should display the employee first name and last name .
mwilliams
1) Technically, this is just an issue with the way OS BIRT would appoint ID's in HTML, so you can report it at Eclipse's bugzilla:
http://www.eclipse.org/birt/phoenix/reportabug.php
2) Can you explain more about what you're trying to achieve in your report with the hiding of the header? I'm assuming the example you posted is just to simply recreate the issue, but may not show really what you're trying to do. Can you explain exactly what you're wanting to do? Maybe that will help.
3) The easiest way to do this is probably to simply use a HTML text box to display the ID. Then, you can easily set a tooltip for the ID. Let me know if you need an example.
pm.nayak84
For the point 2 )
I have attached a sample report in another post .
http://www.birt-exchange.org/org/forum/index.php/topic/24687-birt-interactivity-report-with-dynamic-row-creation/
The report shows all the unique currency and its corresponding exchange rates reported on that particular day as shown in the sample report , which is going to appear on all the paeges
The horizontal display can display maximum 5 currency values at a stretch , if it is more than 5 a new row will be created .
Towards the rights most corner we will have show/hide button which will shows or hides these currency rows upon user click .
We were just thinking if we can acheive the same through a JS file and import the file on report and show the currency row .