Hitachi Vantara Pentaho Community Forums
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Thread: Open Flash Chart not working with HTML Template

  1. #1
    Join Date
    May 2009
    Posts
    10

    Default Open Flash Chart not working with HTML Template

    I have an open flash chart that is working great when I navigate to the xaction file and run it. As soon as I try to integrate it into a dashboard it doesn't work. For example my code in the HTML looks like this:

    PieGrid =
    {
    name: "Pie",
    type: "xaction",
    solution: "bi-developers",
    path: "cdf-samples/20-samples/Test",
    action: "pie.xaction",
    listeners:[],
    parameters: [],
    htmlObject: "Pie",
    executeAtStart: true,
    preExecution:function(){},
    postExecution:function(){}
    }
    I have two xaction files that I created for testing. One renders a chartcomponent pie chart, and when I call its xaction file the html page runs beautifully. When I point it to the flash xaction (which runs independently) I get a big blank window. The fact that the window is big means that it at least is picking up the height and width of the object, but simply isn't rendering it. When I right click on the big open space I am getting the greyed out "move not loaded" flash menu. I have been trying different things for two days and have had no success. I am at my wits end!

  2. #2
    Join Date
    May 2009
    Posts
    10

    Default Got it.

    After scrolling through my tomcat console, I came across an error saying that it couldn't find the open-flash-chart-full-embedded-font.swf. It was looking in a directory that didn't exist (yet). I found this file, created the directory it was looking for (...biserver-ce-3.0.0.RC2\biserver-ce\pentaho-solutions\system\pentaho-cdf\openflashchart) and dropped the file in there. Worked like a charm. So.. my question is, what is the deal with that?

  3. #3

    Default

    I had the same issue...
    http://forums.pentaho.org/showthread.php?t=69610

    and I tried your solution previously with less success. Maybe I will try again, but this seems to be a bug.

  4. #4
    Join Date
    Jul 2007
    Posts
    1,013

    Default

    This solved the problem for me too. I created a Jira entry for this issue: http://jira.pentaho.com/browse/BISERVER-3156

    Cheers!

  5. #5
    Join Date
    Apr 2009
    Posts
    7

    Default

    I am getting the blank open flash chart issue.

    I'm using biserver-ce-3.0.0.RC2 on Windows XP.

    I copied the appropriate file mentioned below to the new openflashchart directory.

    Here is my CDF code in my template.html:

    qualityBarLineChart =
    {
    name: "qualityBarLineChart",
    type: "xaction",
    solution: "Sandbox3",
    path: "openflashchart",
    action: "qualityBarLineChart.xaction",
    listeners:[],
    parameters: [],
    htmlObject: "QualityBarLineObject",
    executeAtStart: true
    }


    Here is my xaction code for the chart:

    <action-definition>
    <component-name>OpenFlashChartComponent</component-name>

    <action-type>Open Flash Chart</action-type>

    <action-inputs>
    <chart-datatype="result-set"/>
    <heighttype="string"mapping="chart_height"/>
    <widthtype="string"mapping="chart_width"/>
    </action-inputs>

    <action-resources>
    <chart-attributestype="resource"mapping="barline"/>
    </action-resources>

    <action-outputs>
    <content_urltype="string"/>
    </action-outputs>

    <component-definition/>

    </action-definition>

  6. #6
    Join Date
    Apr 2009
    Posts
    7

    Default

    Could anyone provide some assistance? Cheers

  7. #7
    Join Date
    Jul 2007
    Posts
    1,013

    Default

    Well, I suspect your xaction definition is not fully correct. Since I don't have the complete example I can't reproduce your environment, so I just went ahead and created a very basic example of a dashboard with a Flash Chart that you can modify it to fit your needs. Find it attached. The contained folder must be placed in the "pentaho-solutions" directory.

    ¡Cheers!
    Attached Files Attached Files

  8. #8
    Join Date
    Apr 2009
    Posts
    7

    Default

    When I load that solution I get a empty box with no data (see empty.jpg attached). Disregard the missing CDF header as I modified the mantle template.html.

    Regarding changing the xaction, I did. I now receive a JSON error. See issue.jpg attached.

  9. #9
    Join Date
    Apr 2009
    Posts
    7

    Default

    Sorry....files attached.
    Attached Files Attached Files

  10. #10
    Join Date
    Jul 2007
    Posts
    1,013

    Default

    Are you getting anything in the logs? Because the solution I attached is very simple: its failing indicates that something could be wrong with your installation. Can you try and run it in an unmodified version of the platform?

    Cheers!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.