Pentaho

 View Only

CE 9.0 to CE 9.4 CDE template component with addin problem

This thread has been viewed 9 times
  • 1.  CE 9.0 to CE 9.4 CDE template component with addin problem

    Posted 07-13-2023 12:54

    Weird issue when migration my CDE dashboards from 9.0 to 9.4. The issue comes up when using the template component with the underscore library and an addin directive. Here's a snippet from my template function of the template component.

    <%=addin(v.trans_hourly,"sparkline","trans_hourly","A")%>

    this results in html with a missing ending </div>

    <div class="addin">
        <div id="render_lostSalesTpl_sparkline1fe3027f" class="sparklineContainer">
            <canvas width="100" height="20" style="display: inline-block; width: 100px; height: 20px; vertical-align: top;"></canvas>
        </div>

    This also occurred for the trendarrow type addin. So I assume the problem is with addin in general and  not the specific addin type.

    My only workaround is to modify the code in the components template function to add an extra </div>.  Which means I need to edit each component on each dashboard when I migrate. :(

    <%=addin(v.trans_hourly,"sparkline","trans_hourly","A")%></div>

    Anyone know of a better "fix" for this?



    ------------------------------
    Marvin Horst
    Business Development Manager
    Customer Community General Account
    ------------------------------