Hello world Dashlet not working

Hi

   I tried creating a hello world dashlet using

Creating a “Hello World” Dashlet for Sugar 7 « Sugar Developer Blog – SugarCRM

I have used

custom/clients/base/views/helloworld/helloworld.hbs

<p>

Hello World!!!!!!!

</p>

custom/clients/base/views/helloworld/helloworld.js

({      

    plugins: ['Dashlet']

})

custom/clients/base/views/helloworld/helloworld.php

<?php

$viewdefs['base']['view']['helloworld'] =array(

    'dashlets' => array(

  array(

            'label' => 'helloworld',

            'description' => 'hellowworldhelloworld',

            'config' => array(

              

            ),

            'preview' => array(

              

            ),

            'filter' => array(

          

            )

   ),

  ),

  );

I have done a quick repair and rebuild and navigated to list of dashlets which we can add using create.But the dashlet was not showing.

Parents Reply
  • Can you navigate to /cache/javascript/base/ directory.

    Here you can find two components js file.Search with any word (which presents in our helloworld.js) in these two files (to make sure your cache files has been rebuilt).

    Then Clear browser cache and reload the instance.Now you can find helloworld dashlet.

    Let us know if you have still problem.

Children