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)
Toggle between chart and table by buttons in the same report + 3 buttons for period time
dragosss24
Hello all,
I have 2 problems.
1. I need to put in the same report a chart and a table. I want to be able to toggle between these two by 2 buttons. Scenario: when "Graph" button is pressed to show only the chart and the button to remain selected. When "Table" button is pressed to show only the table and remain selected.
If you please can help me with some example report it will be a major plus for me.
2. I have the following scenario. One report that has 3 buttons. Each button loads in the same layout values for: button 1 - last month, button 2 - last quarter and button 3 - whole year. It needs to remain selectes when pressed.
Thank you in advance for your answers.
Find more posts tagged with
Comments
mwilliams
You should be able to bookmark the chart and the table and use client side script in a text box to show/hide the desired element. You could also do the same with creating multiple charts and bookmarking them and hiding/showing them based on a button click, using client side script.
dragosss24
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="115568" data-time="1364670168" data-date="30 March 2013 - 12:02 PM"><p>
You should be able to bookmark the chart and the table and use client side script in a text box to show/hide the desired element. You could also do the same with creating multiple charts and bookmarking them and hiding/showing them based on a button click, using client side script.<br /></p></blockquote>
<br />
<br />
Hi Michael,<br />
<br />
Thank you for your fast answere. Can I ask you to please send me an example of script or maybe a report example? Thank you very, very much!
mwilliams
Yeah. Sure. Just let me know your BIRT version.
dragosss24
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="115640" data-time="1364931921" data-date="02 April 2013 - 12:45 PM"><p>
Yeah. Sure. Just let me know your BIRT version.
<br /></p></blockquote>
<br />
BIRT version is 2.6.1<br />
<br />
Thank you very much, Michael!
mwilliams
Take a look at this example. There is a table and three charts. All are bookmarked for use in the text element script. In the script, a form with radio buttons is created. When the chart option is selected, a div is shown with another set of radio buttons for the time period for the chart. When the table is selected, the div disappears and only the chart/table option is present. Hope this helps. Let me know if you have questions.