OFC for Smartgwt

can you perhaps add a “Save Image” button in the modal window?

adding a button by myself isn’t working for some reason i can’t figure out..

You should use ChartWidget.getSaveImageWindow().addItem(yourbutton) method. What will “Save image” button do in your case?

i want to create a save image dialog so the user won’t need to use rightclick->save picture

trying to do it like you told me tomorrow..

If you will got successful result in creating save image dialog - please post your solution, because I have no success in one.

After i clicked “save image locally”, the popup doesnt seems to show the image correctly on IE. However if I output the image to HTML and load it in Firefox, then it seems fine. Anybody have similar problem on this?? Is this a browser related issue?

I got IE 8, it works fine on it(except needless scrollbars)

Great work metallic…
Thanks for this. is there any possibility of integration with smartgwt datasource?

Sorry, but I have no time to implement this part. May be some time later…

I tried to put the static chart returning a flashlet as item of a sectionStack and it returns a Json invalid string error. By the other hand, if I did the same but put the Widget as member of a Vlayout and it worked fine.
Is there anything special to do to put the chart as an item of sectionStack?

What about FacetChart that is existing in SmartGWT?

That’s a great news, cause I cannot support OFC anymore, and HTML native chart would be better

I am using GWT 2.0.4 I create my flashlet with the following:
Flashlet flashlet = new Flashlet();
String swfId = “SWFID_”+ count;
flashlet.setID(swfId+“_”);
++count;
flashlet.setSrc(GWT.getModuleBaseURL()+ “flash/TCAMMap.swf”);
String width = “100%”;
String height = “100%”;
flashlet.setSize(width, height);
java.util.HashMap<String, String> hashMap = new java.util.HashMap<String, String>();
hashMap.put(“id”, swfId);
hashMap.put(“FlashVars”, “id=” + swfId);
flashlet.setParams(hashMap);
HLayout horizonalStack = new HLayout();
horizonalStack.addMember(flashlet);

On executing the last line I get the following error.
Uncaught exception escaped : com.google.gwt.core.client.JavaScriptException
(TypeError): ‘$wnd.isc[…]’ is null or not an object
number: -2146823281
description: ‘$wnd.isc[…]’ is null or not an object
See the Development console log for details.
Register a GWT .setUncaughtExceotionHandler(..) for custom uncaught exception handling

Any suggestions? Can you post a working example? It seem like quite a few people are having trouble with the Flashlet.