HOWTO: Make a module without tab available to use into Reports module

sugarcrmdevelopers —  July 8, 2011 — 1 Comment

This tip comes from a forums post from prolific poster Rafael Queiroz Gonçalves ( known by his handle of rafael.q.g@hotmail.com ). In the post he details how to take a module that doesn’t have a tab become available to the Reports module. Here’s the steps he outlines to do this.

1. Open the file into custom/Extension/application/Ext/include/custom_name.php (the file were there is the module defs)
2. Edit the module content to:

<?php
$beanList['module_name'] = 'module_name';
$beanFiles['module_name'] = 'modules/module_name/module_name.php';
//$modules_exempt_from_availability_check['module_name'] = 'module_name'; => Can be deleted
//$modInvisList[] = 'module_name'; => Can be deleted
// this two unset are important
unset($modules_exempt_from_availability_check['module_name']);
unset($modInvisList['module_name']);
$moduleList[] = 'module_name'; // this line has to be included.

3. Run repair and rebuild.

4. Go to the Admin > Display Module Tabs and Subpanels screen, and hide the tab from the display

Now the module is available on Reports module and the tab for it is hidden. Thanks Rafael for this great tip!

One response to HOWTO: Make a module without tab available to use into Reports module

  1. 

    Extra tip! Log out and log back in again if it’s not coming up straight away. This also adds it to the module list on the Create Workflow page.
    Thank you for this post, very helpful. 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s