Friday, 21 June 2013

tagMe 1.1 version is out now!

Greetings from Urdhva Tech!

tagMe grows up!

You can now import tags along with your normal imports of data into SugarCRM.

For example, you are importing few accounts into system, you just need to add a column in your excel sheet/CSV, add comma(,) seperated values of desired tags and map the column with your custom tag field!

Happy tagging!!

Follow us on Twitter @urdhvatech

Glimpse of our plug-ins & products.

Monday, 10 June 2013

Calls subpanel under Task module

Greetings from Urdhva Tech!

Yet another interesting forum post led me dive into code base!

Aim: Calls subpanel under Task module.

2 files makes difference!

Step 1:  Create extended vardef for Tasks module > custom/Extension/modules/Tasks/Ext/Vardefs/calls_subpanel.php add following code in it.

<?php
$dictionary['Task']['fields']['calls'] = array(
    
'name' => 'calls',
    
'type' => 'link',
    
'relationship' => 'tasks_calls',
    
'module' => 'Calls',
    
'bean_name' => 'Call',
    
'source' => 'non-db',
    
'vname' => 'LBL_CALLS',
);


$dictionary['Task']['relationships']['tasks_calls'] = array('lhs_module' => 'Tasks''lhs_table' => 'tasks''lhs_key' => 'id',
    
'rhs_module' => 'Calls''rhs_table' => 'calls''rhs_key' => 'parent_id',
    
'relationship_type' => 'one-to-many''relationship_role_column' => 'parent_type',
    
'relationship_role_column_value' => 'Tasks'); 

Step 2: Create a file under > custom/Extension/modules/Tasks/Ext/Layoutdefs/calls_subpanel.php
and add following code.

<?php
$layout_defs['Tasks']['subpanel_setup']['calls'] = array(
                
'order' => 10,
                
'module' => 'Calls',
                
'title_key' => 'LBL_CALLS',
                
'subpanel_name' => 'default',
                
'get_subpanel_data' => 'calls',
            
'top_buttons' => array(
                array(
'widget_class' => 'SubPanelTopCreateButton'),
            ),
            );  

Quick Repair and Rebuild!

Awesome!!

Comments are welcome!

Follow us on Twitter @urdhvatech

Glimpse of our plug-ins & products.

Sunday, 2 June 2013

Adding custom fields in edit and detail view through manifest

Greetings from Urdhva Tech!!

Creating your own plug-in for SugarCRM? Have custom fields in SugarCRM's existing/OOB modules?

Yes manifest has a directive which does this job!

'layoutfields' => array(
        array(
            'additional_fields' =>
            array(
                'Contacts' => '<field_name>'
            ),
        ),
        array(
            'additional_fields' =>
            array(
                'Accounts' => '
<field_name>'
            ),
        ),
        array(
            'additional_fields' =>
            array(
                '<module_name>' => '<field_name>'
            ),
        ),
    ),

Done!

Some issues exist, like, SugarCRM forces the field to be on both views, edit and detail. And no way you can add field in list view, except you create your own script which does it for you in post_install.

Comments are welcome!

Follow us on Twitter @urdhvatech

Glimpse of our plug-ins & products.
Urdhva Tech Pvt. Ltd. Powered by Blogger.

Urdhva Tech

My photo
SugarCRM Consultants Contact us at contact@urdhva-tech.com Skype : urdhvatech

Search This Blog

Stay connected Socially

     

Total Pageviews

Popular Posts