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
  • Hi Anand Chitikela,

         It should work that you tried.I tried your code,it is working for me(It was in last dashlet the in list of dashlet).Given permission for sugar instance after repair and rebuild?.If not, give permission and check.

    Thanks!.

  • Hi Ajay

        I have full permisions for my sugarcrm instance.

  • 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.

  • Hi Ajay

         I have found out that my code has not been loaded in to the two files after the quick repair and rebuild

  • We can empty that cache folder.Refer angel's reply in this below thread.you should not delete cache folder itself.delete it contents.

    https://community.sugarcrm.com/message/72825#66858 ).

    Then reload instance , and navigate to that directory and check again.your cache folder contents will get rebuild.

    Thanks!.

  • Hi Anand,

    Did you check both the component.js files for your custom dashlet code. If you couldn't find any both the files try giving Repair and Rebuild once and see whether repair is happening successfully or not.

Reply
  • Hi Anand,

    Did you check both the component.js files for your custom dashlet code. If you couldn't find any both the files try giving Repair and Rebuild once and see whether repair is happening successfully or not.

Children