C.R. Matín

Recently, someone on the forums asked about how to alter the list of modules shown in the dropdown portion of the Parent (“Relate to”) field.  Specifically, the post was about removing the Contacts module from the list of modules for the Meetings module.  What was happening was that some users were not sure how to add a user to a meeting and wound up using the “Related to” field to create this association when the business case assumed they would invite users instead.

There are probably a few ways to achieve this type of field customization functionality and here are two ways I thought of depending on your business requirements.  The first approach is if you really want to limit the options in this Parent field for all modules and all views, you could make a global change that would affect the SugarField everytime it is shown.  Here are the steps to achieve this:

1) Copy the EditView.tpl file from include/SugarFields/Fields/Parent to custom/include/SugarFields/Fields/Parent

2) Modify the custom EditView.tpl file at the top as follows (highlighted in bold)

{php}
global $app_list_strings;
$custom_options = $app_list_strings['record_type_display'];
if(isset($custom_options['Contacts']))
{
unset($custom_options['Contacts']);
}
$this->assign('custom_options', $custom_options);
{/php}

<select name='parent_type' tabindex="{{$tabindex}}" id='parent_type' title='{{$vardef.help}}'
onchange='document.{$form_name}.{{sugarvar key='name'}}.value="";document.{$form_name}.parent_id.value=""; {{sugarvar key='name'}}changeQS(); checkParentType(document.{$form_name}.parent_type.value, document.{$form_name}.btn_{{sugarvar key='name'}});'>
{html_options options=$custom_options selected=$fields.parent_type.value sortoptions=true}
...


3) Use Admin->Repair to clear out the cached .tpl files.  The next time the edit views are rendered, the dropdown for the Parent field will only display Accounts and Leads.

The second approach aims to limit this change to just the Meetings module.  In this case, I would consider using an edit view override to alter the contents of the parent options before it is displayed.  Here are the steps.

1) If you don’t already have a custom/modules/Meetings/views/view.edit.php file, copy the modules/Meetings/views/view.edit.php to the custom directory location.

2) Modify the view.edit.php file’s display method at the very end, change

parent::display();

to

$this->ev->process();
unset($this->ev->fieldDefs['parent_name']['options']['Contacts']); //Remove Contacts
echo $this->ev->display($this->showTitle);

 

What we’ve done here is to modify the parent_name variable’s Array.  By changing the options delta in the parent_name Array value to unset the Contacts delta, we effective remove the Contacts module from appearing in the list of the dropdown modules.  This change also limits the scope to the Meetings module.  I actually thought of looking for a solution with the EditView.tpl file itself to accomplish this, but I did not like the idea of altering a file that affects all modules when the customization is confined to just one module.

To recap, there are likely various ways to accomplish field display customizations in SugarCRM.  You should first determine if the field changes will apply to all modules for all views.  In that case, you could take the first approach outlined here.  If the scope of changes are limited to certain modules, you could take the steps outlined in the second example.

{ 0 comments }

Due to some irregular voting patterns over the past few hours, I’ve removed the voting on the previous post and instead changed it to use a poll hosted by micropoll. So to vote, please go to http://micropoll.com/t/KEvJaZB3sn instead. If you have voted previously, please go to that site to recast your vote. Voting will now close on Friday, July 8th at 12:00 midnight ET.

Sorry for the inconvenience. Good luck to all the projects!

{ 0 comments }

Video: Add users to Microsoft Dynamics CRM Online

July 6, 2011

After you subscribe to Microsoft Dynamics CRM Online, one of your first tasks as an administrator is to add users, and invite them to join and begin using your new organization. View this video to learn how to add users to your Microsoft Dynamics CRM O…

Read the full article →

Announcing: Oracle CRM and Commerce Online Forum

July 6, 2011

Learn How to Connect Your Customer Interactions to Maximize Your Success.Live Date/Time: Tuesday,
July 12, 2011 | starting at 8:00 a.m. PDT / 11:00 a.m. EDTJoin
us for the Oracle CRM & Commerce Online Forum next
Tuesday, where analysts…

Read the full article →

Microsoft Dynamics CRM for Microsoft Office Outlook Compatibility with Citrix XenApp 6

July 5, 2011

imageWe are pleased to announce the release of the white paper, Microsoft Dynamics CRM for Microsoft Office Outlook Compatibility with Citrix XenApp 6, which is available for download from the Microsoft Download Center at : http://www.microsoft.com/download/en/details.aspx?id=26667.

Microsoft, working with Citrix® Corporation, completed functional verification of Microsoft Dynamics CRM for Microsoft Office Outlook and Citrix XenApp 6 and its components. This white paper details the compatibility verification of Microsoft Dynamics CRM for Microsoft Office Outlook when deployed with Microsoft Office 2007 on Citrix XenApp 6, as well as the results of scalability testing of Microsoft Dynamics CRM for Outlook on Citrix XenApp 6 running on an Intel Xeon processor-based server.

Specifically, the paper includes:

  • Instructions for setting up and deploying the test environment.
  • A description of the Microsoft Dynamics CRM implementation and the methods used to obtain the results.
  • Details of the hardware configuration and software settings.
  • A summary of the key test parameters and results.

I’d especially like to recognize the efforts of Krishnan Rangarajan, Alex Kalinin, Corey Hanson, and the broader CRM Product Group for contributing to and reviewing this paper to help ensure its completeness and accuracy.

Note: The paper will subsequently be available via MSDN and the TechNet library in the CRM section under Technical Articles for Managed IT.

Thanks,

Jim Toland

Read the full article →

Check out “Extend SugarCRM REST web services to use XML” on IBM Developerworks

July 5, 2011

If you’ve wanted to learn about customizing and extending our Web Services API, check out the recent article I wrote for IBM DeveloperWorks “Extend SugarCRM REST web services to use XML“. This article talks about extending the Web Services API to use XML and an input and output data types, which can make it much [...]

Read the full article →

Vote for the July SugarForge Project of the Month

July 1, 2011

Thanks for the feedback from everyone this week on what projects you thought would be fit for the title of July 2011 SugarForge Project of the Month. We had one overwhelming favorite amongst the nominations, as well as a few other projects that have also made a good impact on the community as a whole. [...]

Read the full article →

Update Rollup 18 for Microsoft Dynamics CRM 4.0

June 30, 2011

The Microsoft Dynamics CRM Sustained Engineering (SE) team released Microsoft Dynamics CRM 4.0 Update Rollup 18 on Thursday, June 30, 2011. The links below will take you to the necessary information about Update Rollup 18. Microsoft Download Cent…

Read the full article →

CRM Goes to School, Supports Enrollment Growth

June 30, 2011

At Post University in Waterbury, CT, the focus is on the student. Generally, the first interaction from a potential student is a lead, which can come from a variety of sources. Any delay in following up with the interested student (the lead) affects th…

Read the full article →

Free Wheeling with some Summer Fun Coding Ideas

June 30, 2011

imageI was thinking of some Summer learning opportunities that might interest some of my developer friends. You can try Windows Azure at no cost using the CODE webcastpass and deploy your first app in as little as 30 minutes. So here are some ideas, in no particular order:

1. My Customers Are Using iPhone/Android, But I’m a Microsoft Guy. Now What?: In this session you’ll learn how to scale iPhone, iPad, and Android platforms using the Windows Azure platform.

2. Tap the Cloud For Your ASP.NET apps: Say you need more horsepower today, less tomorrow. Hear how Brian Prince focuses on the app, not the infrastructure.

3. Migrate invaluable data to the cloud: Few things have as much value in the digital age as good old data. Unfortunately, it is often scattered and not necessarily running on infrastructure that’s up to date. Learn how to solve 2 issues by putting your data up in the cloud.

4. Your SharePoint Practice via the Cloud: SharePoint becomes a much bigger business and technical opportunity when married with the cloud. Learn more from resident expert Mike Benkovitch.

5. Your SharePoint Practice via the Cloud: SharePoint becomes a much bigger business and technical opportunity when married with the cloud. Learn more from resident expert Mike Benkovitch.

image6. Create the Next Big App: Webcast Series: Start from a scenario relevant to you – mobile and Sharepoint apps, Facebook promos, Access databases, and see how cloud addresses relevant gaps.

7. Combining Public and Private Clouds into Useful Hybrids: – Watch David Chou’s TechEd session about the widely discussed “hybrid” approach – solutions spanning from on-premise into the cloud.

8. Don’t Miss the Azure Security Essentials Series: Anyone serious about the cloud will “talk security” pretty quickly. Here’s terrific resources for Developers and Decision Makers.

Enjoy,

JaAG

Read the full article →