com.ibm.tivoli.maximo.report.control

Class SaveChartDecoratorControl

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class SaveChartDecoratorControl
    extends DatasrcInstance
    The SaveChartDecoratorControl adds itself as a right click "Save" action to a KPI rendered chart in a page. The control enables the end user to right click and save the Dojo created chart as an image.
    • Constructor Detail

      • SaveChartDecoratorControl

        public SaveChartDecoratorControl()
    • Method Detail

      • async_set_download_image

        public int async_set_download_image()
                                     throws MXException
        The image downloading happens in 2 phases... the first phase is to simply pass the image data that needs to be downloaded via a "POST" event. The data for the dataUri and the svg are too large to pass in a normal "GET". This method handles the POSTed data and simply stores it, waiting for the actual donnload even to happen.
        Returns:
        Throws:
        MXException
      • async_create_and_download_image

        public int async_create_and_download_image()
                                            throws MXException
        This "event" is called after the first async_set_download_image is called. This event is NOT accessed via XHR, but rather as a normal "GET" request. When this event is called, it will trigger the Image Download by setting the content-disposition header and forcing a browser to download the image.
        Returns:
        Throws:
        MXException