AnsweredAssumed Answered

My custom dashlet always show refresh icon after select refresh at the first time

Question asked by Autchara Chaiprom on Oct 26, 2016
Latest reply on Oct 27, 2016 by Autchara Chaiprom

My custom dashlet always show refresh icon after I click Refresh at first time.

It should disappear after finished and show gear icon.

 

Do you have any solutiion?

 

 

My custon dashlet show report using iframe no refresh in report just query and show some text.

 

custom-dashlet.hbs

<style>

    div.my-view
    {
        padding-top:0;
        background-color:#fff;
    }
    .myiFrame{
        height:450px;
        width:100%;
    }
</style>
<iframe src="{{custom_url}}?userid={{#with myData}}{{userID}}{{/with}}" class="myiFrame" frameborder="0">

 

custom-dashlet.php

<?php
$viewdefs['base']['view']['custom-dashlet'] = array(
    'dashlets' => array(
        array(
            'label' => 'Report',
            'description' => 'Report Test',
        )
    )
);

 

custom-dashlet.js

({
        plugins: ['Dashlet'],
        loadData: function (options) {
                myData = new Object();
                myData.userID = app.user.id;
                this.myData = myData;
                this.render();
                this.custom_url = App.config.custom_url;
        }
})

 

 

Sugar 7.7 Ent

Thanks,

May

Outcomes