sugarcrm

Suite CRM - The zip file is missing a manifest.php file. Cannot proceed

巧了我就是萌 提交于 2019-12-24 07:28:40
问题 I have created a custom module in Suite CRM but when try to upload it via Module Loader it gives this error The zip file is missing a manifest.php file. Cannot proceed even though the manifest.php file is there in the root directory of the module. 回答1: You might want to check those things: cases of letters in a filename of your manifest.php (on case-sensitive filesystems 'Manifest.php' or 'manifest.PHP' is not the same filename as 'manifest.php') manifest.php is in the root of the zip file

How to autopopulate a field in SugarCRM form

一个人想着一个人 提交于 2019-12-24 00:58:36
问题 We have not yet customized SugarCRM 6 but here's our first issue. When we are browsing a Contact's record, under the "Activities" subpanel, we can create a new meeting by clicking on "Create Meeting". Then, a quick form appears and the Account field (parent_name) is autopopulated with the Contact's associated Account name. My question: how to modify that and autopopulate the parent_name with the Contact's name instead, so that the Meeting will be link to the Contact's record and not the

Suitecrm - php code in pdf template

为君一笑 提交于 2019-12-23 19:26:38
问题 I want to add a php code in my pdf template. Here is my use case First is I have a dropdown on my own module: Then what I want to have is on my pdf template, I want to have php condition base on the value of my dropdown e.g if($client_type == "renewal") echo "x"; else echo "y"; Will this be possible? 回答1: You could add a placeholder in the pdf template, for example: %%renewal_value%% Then you can work out your required value like you described, but rather than echoing the value use str

How to remove or hide InsideView panel from Lead detail view in SugarCRM 6.5?

孤者浪人 提交于 2019-12-23 16:00:34
问题 In Lead detail view i can see community ads in "InsideView" panel Community Forum. I am currently on 6.5 community edition. Is this possible to hide or remove? Thanks. 回答1: I found this solution Just open below page: Admin » Connector Settings » Enable Connectors And move all modules to Disabled panel and Save. 回答2: Place this in a post_install routine: require_once('include/connectors/utils/ConnectorUtils.php'); require_once('include/connectors/sources/SourceFactory.php'); ConnectorUtils:

Field validations in sugarcrm

旧巷老猫 提交于 2019-12-23 13:41:32
问题 I just started using SugarCRM CE for the first time (Version 6.5.15 (Build 1083)). I'm quite impressed with the ease of use when adding new fields or modules, but there's one quite indispensable thing that seems to be missing: Validation of user input. I would for example like to check a lot of things: Check if a emailadres has a valid format, using some regular expression Check if a postalcode exists (maybe do a webswervice call to validate it) Do a calculation to see if a citizen service

How can i add key value pair in multidimentional array without add index in php

人盡茶涼 提交于 2019-12-23 04:51:23
问题 How can i add key value pair in multi-dimentional array without index in php ex: <?php $GLOBALS['app_list_strings']['ip_list']=array ( '192.168.1.51' => 'server1', // i have to add key and value pair here just like above ); ?> 回答1: $GLOBALS['app_list_strings']['ip_list']['10.0.0.1'] = 'server2'; 回答2: You can add one by one as below : $GLOBALS['app_list_strings']['ip_list']['192.168.1.51'] = 'server1'; $GLOBALS['app_list_strings']['ip_list']['192.168.1.52'] = 'server2';..... and so on.. Or You

SugarCRM: how to get all contacts for an account via REST API

♀尐吖头ヾ 提交于 2019-12-22 11:06:47
问题 I am trying to get all contacts for a particular account (i know the account id) from SugarCRM using the v2 REST API. I am sending a GET request with the following parameters: input_type => 'JSON' response_type => 'JSON' method => 'get_entry_list' rest_data => '{session:"some-valid-session-id", module_name:"Contacts", query:"contacts.account_id=some-valid-id"}' I expect to get all contacts that are related to this accoutn, but instead I get an error "... MySQL error 1054: Unknown column

making a file type field in sugarcrm custom module

会有一股神秘感。 提交于 2019-12-22 06:46:52
问题 i have a custom module Sample Management. I want to create a file type field in editviewdef.php so that i can upload the file and download it from the detailed view whenever needed. Would anyone tell me the steps how to proceed for this task? 回答1: What you need to do is create a custom SugarField type by: Creating a new folder with the name of the field type in include/SugarFields/Fields Within that folder, you need to create a .tpl file to describe how the field is setup for each view type

Hide Parent Div if Child Table is hidden (display: none)

牧云@^-^@ 提交于 2019-12-21 05:15:19
问题 I've tried searching all over StackOverflow and Google and I've found ideas that I thought would work but nothing seems to help! I'm working in SugarCRM Professional 6.5.5 and I'm trying to hide the parent div of a child table if the table is hidden (display: none) using jQuery but I'm not having much luck. For example, in the code below I'm trying to hide <div id="detailpanel_5" class="detail view detail508 expanded"> because the child table <table id="LBL_EDITVIEW_PANEL6" class=

Adding panels to editviewdefs.php via manifest file

人走茶凉 提交于 2019-12-18 07:18:44
问题 In SugarCRM installable changes in detailview the question was asked about how to add a panel, using the Module Installer's manifest file to add to the the editview/detailview of an existing module without wiping out customizations previously made in the custom directory. The answer was provided how to add fields, but not panels. I know you could use a post_execute function called from the manifest file to edit the editviewdefs.php and detailviewdefs.php files in the /custom/modules//metadata