on 12-12-2007 9:19 AM
Hi,
I have generated graphs using business graphics. Now, I need to genrate multiple graphs say 11 at a time and that too dynamically...
Please help me in solving how to generate graphs dynamically and should be able to generate multiple graphs at a time....
Thanks,
Gaurav Bhardwaj
Hi Gaurav,
To create business graphics dynamically, you can do like this
[if(firstTime){
//Create as many as you want
IWDBusinessGraphics bg1 = (IWDBusinessGraphics) view.createElement(IWDBusinessGraphics.class,"bg1");
// set type and other properties
bg1.setChartType(WDBusinessGraphicsType.BARS);
}
But this is for first time when you open the view. If you want to change the number of graphs displayed at runtime. Access the graphs runtime and set visibility
//access them again
IWDBusinessGraphics bg1_mdfy =(IWDBusinessGraphics) view.getElement("bg1");
//if you want to hide
bg1_mdfy.setVisible(WDVisibility.NONE);
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.