sugarcrm

sugarCRM : creating relationship using module loader, package not installing

我的梦境 提交于 2019-12-06 16:06:43
I am trying to create relationships through module loader in SugarCRM. But the problem is my package is stopped installing after 55%. When I am viewing display log the error is:- Failed to copy cache/upgrades/temp/SYWr9G/custom/metadata/accounts_contacts_1MetaData.php custom/metadata/accounts_contacts_1MetaData.php I tried to change permissions also but at some point they through internal server error 500. Following are the code which I am using. 1.In manifest.php file : $installdefs = array( 'id' => 'package_20170804', 'copy' => array( 0 => array( 'from' => '<basepath>/accounts_contacts

how to send JSON data from Android to php url?

半城伤御伤魂 提交于 2019-12-06 11:45:48
问题 i want to send login infromation from my App to php url.as this my App will crash.can any one help me to slove this. this my server login method. i want to send data to this login method.. Method [ public method login ] { - Parameters [3] { Parameter #0 [ $user_auth ] Parameter #1 [ $application ] Parameter #2 [ $name_value_list = Array ] } } this is my login.java in android app public class Login extends ActionBarActivity implements View.OnClickListener { EditText userName, pass; Button

MySQL Query two different conditions for different count in 1 query

↘锁芯ラ 提交于 2019-12-06 11:27:53
问题 I have 3 tables named com_event_schedules com_appointments com_event_schedules_com_appointment_c which has a relation between first two tables. Following are the fields of the tables com_event_schedules -- id -- name -- schedule_date -- start_time -- end_time -- deleted com_appointments -- id -- start_time -- end_time -- status com_event_schedules_com_appointment_c -- id -- com_event_schedules_com_appointmentcom_event_schedules_ida (schedule_id) -- com_event_schedules_com_appointmentcom

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

我是研究僧i 提交于 2019-12-05 19:27: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 'contacts.account_id' in 'where clause'" However, when I try to get all contacts without providing any query

Use Plone's authentication mechanism to login to other sites

試著忘記壹切 提交于 2019-12-05 11:07:38
I am using Plone and Sugar CRM. I want to allow users to only have a single username and password across both systems. When they change their password in Plone they should not have to change it in Sugar CRM. Is there a simple way to do this? Configure both to authenticate against an LDAP server. If you want single sign on, you can also look at Plone 4's mod_auth_tkt support. Basically, Plone will set a cookie that is compatible with the auth_tkt standard. Other systems (such as Apache or nginx as fronting web servers) can use the same cookie format to authenticate a user. 来源: https:/

MySQL Query two different conditions for different count in 1 query

青春壹個敷衍的年華 提交于 2019-12-04 18:09:39
I have 3 tables named com_event_schedules com_appointments com_event_schedules_com_appointment_c which has a relation between first two tables. Following are the fields of the tables com_event_schedules -- id -- name -- schedule_date -- start_time -- end_time -- deleted com_appointments -- id -- start_time -- end_time -- status com_event_schedules_com_appointment_c -- id -- com_event_schedules_com_appointmentcom_event_schedules_ida (schedule_id) -- com_event_schedules_com_appointmentcom_appointment_idb (appointment_id) relation between tables com_event_schedule and com_appointments is 1 to

SugarCRM On-Demand Convert TextField to DropDown

一曲冷凌霜 提交于 2019-12-04 12:34:52
A similar question was posted here before but it only applied to an On-Site SugarCRM instance (it was also a long time ago). In my case I would like to change the "Billing Country" field from 'TextField' to 'DropDdown' on an On-Demand instance where I don't have access to the config files. How can I do this? So far I have tried different PHP files using the Module Loader but it's not working either. Please find my PHP script below: <?php $manifest = array( 'acceptable_sugar_flavors' => array('CE', 'PRO', 'CORP', 'ENT', 'ULT'), 'acceptable_sugar_versions' => array( 'exact_matches' => array(),

The right way to auto filter SQLAlchemy queries?

冷暖自知 提交于 2019-12-04 11:01:52
问题 I've just introspected a pretty nasty schema from a CRM app with sqlalchemy. All of the tables have a deleted column on them and I wanted to auto filter all those entities and relations flagged as deleted. Here's what I came up with: class CustomizableQuery(Query): """An overridden sqlalchemy.orm.query.Query to filter entities Filters itself by BinaryExpressions found in :attr:`CONDITIONS` """ CONDITIONS = [] def __init__(self, mapper, session=None): super(CustomizableQuery, self).__init__

SugarCRM installable changes in detailview

强颜欢笑 提交于 2019-12-04 10:15:32
I have a simple problem but may be serious for me , I made custom fields and added them all in the custom\modules\Leads\metadata\detailviewdefs.php (detailview layout) of Leads module but problem is that i have to make a installer package of changes. I managed with custom fields and copied them in the custom\Extension\modules\Leads\Ext\Vardefs through manifest. Now i don't know how to apply detailviewdefs changes through manifest (add new fields panel in detailview). The point is that the existing detailview layout should not be changed but only add a new panel in it. Possible solution in my

The right way to auto filter SQLAlchemy queries?

寵の児 提交于 2019-12-03 06:53:55
I've just introspected a pretty nasty schema from a CRM app with sqlalchemy. All of the tables have a deleted column on them and I wanted to auto filter all those entities and relations flagged as deleted. Here's what I came up with: class CustomizableQuery(Query): """An overridden sqlalchemy.orm.query.Query to filter entities Filters itself by BinaryExpressions found in :attr:`CONDITIONS` """ CONDITIONS = [] def __init__(self, mapper, session=None): super(CustomizableQuery, self).__init__(mapper, session) for cond in self.CONDITIONS: self._add_criterion(cond) def _add_criterion(self,