sugarcrm

SugarCRM- How to get POPUP when click on Save button?

孤人 提交于 2019-12-17 15:59:12
问题 I want when click Save in Edit View of some module (example Contact) to get pop up with some message (later I will get options OK and Cancel on that pop up.). My function YAHOO.SUGAR.MessageBox.show({msg: 'Foo'} ); is working when I put it at top of editviewdefs.php (I also must include cache/include/javascript/sugar_grp_yui_widgets.js ) ) file and when opening that view I am getting that pop up. But I want it to popup on Save,not when opening EditView (this was just testing that showed me

Access Denied when trying to do subqueries

≡放荡痞女 提交于 2019-12-14 02:32:19
问题 I'm trying this query: {'rest_data': '["sessionabc123xyz", "Meetings", "meetings.id IN ( SELECT mu.meeting_id FROM meetings_users mu WHERE mu.user_id = \'1\')", "", 0, [], 5, 0]', 'input_type': 'json', 'method': 'get_entry_list', 'response _type': 'json'} But I'm getting this as a response, even if I'm using an administrator account: {u'description': u'You do not have access', u'name': u'Access De nied', u'number': 40} How can I retrieve a list of meetings (and calls) a user is participating

In SugarCRM, transferring account ownership to another user doesn't update contact ownership

Deadly 提交于 2019-12-14 01:27:20
问题 I am using SugarCRM v6.x and have discovered that when transferring account ownership to a new sales rep (the assigned_user_id field) the contacts and other related child records do not get transferred as well. Is this an actual design choice by the SugarCRM authors, and if so, what is the reason behind it? Is there a recommended method of transferring accounts that will transfer ownership of related child records as well? 回答1: I would make it using logic hooks. Create a logic_hooks.php in

SugarCRM can't access a relation of two modules

≡放荡痞女 提交于 2019-12-13 16:13:12
问题 So im going nuts here, I might as well tell you the whole thing i did, and maybe you can help me with it. I am in the on demand version of sugar. i need to relate 2 custom modules so i used the module builder to create a package for them: the custom modules are form and map. then i created a relationship between both like this: After that i deployed my package to my sugar instance and proceeded to create some test data. then on my custom entry point i wish to get the maps related to a

Add SugarCRM REST services to NetBeans

有些话、适合烂在心里 提交于 2019-12-13 07:15:08
问题 I'm trying to use NetBeans "Add Web Service" wizard to see SugarCRM REST web services. But when I insert url 'http://ip/sugarcrm/service/v2/rest.php' (or 'http://ip/sugarcrm/service/v2/rest.php?wadl') I receive the error message: "cannot determine if the service is of type wsdl or wadl". I have already included JAX-RPC plugin, as mentioned in 'http://stackoverflow.com/questions/4762149/adding-new-web-services-in-netbeans', but this not helped. In fact, I think NetBeans doesn't need RPC

SuiteCRM Make custom where condition query for popview

心不动则不痛 提交于 2019-12-13 02:12:57
问题 How to make the custom query for popup view, I made changes in ViewList as mentioned above but it doesn't affect on the list which came in popup view list. My requirement is to pass product type when I open this from invoice module. In invoice, we have a product line and service line, and from product module, i have differentiated product by type while adding new product as a "Goods" or "Service". Now i have created 2 custom files, view.list.php, and view.popup.php. But do not understand how

Not getting correct COUNT() in MySQL Query (Modified Earlier )

柔情痞子 提交于 2019-12-13 01:41:11
问题 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 custom module select all across multiple page

老子叫甜甜 提交于 2019-12-13 00:11:15
问题 I created print the address in list view of custom leads the list view code is as given below. There are 25 records totally first i select 20 records(select this page) ,its performing the action for 20 records which is correct if i seelct all its performing action for only 20 records ,so its not selecting the 25 records ... protected function buildMyMenuItem() { global $app_strings; return <<<EOHTML <a class="menuItem" style="width: 150px;" href="#" onmouseover='hiliteItem(this,"yes");'

SugarCRM Access denied number 40

▼魔方 西西 提交于 2019-12-12 22:46:31
问题 I am trying to get all contacts from the active opportunities below is my request of SugarCRM API v4 { "session":"btcskfetq7sqshio3uv568d8c1", "module_name":"Contacts", "query":"contacts.id IN ( SELECT opportunities_contacts.contact_id FROM opportunities_contacts JOIN opportunities ON opportunities_contacts.opportunity_id = opportunities.id WHERE opportunities.sales_stage NOT IN ('Closed Won','Closed Lost'))", "order_by":"", "offset":0, "select_fields":[ "first_name", "last_name", "title",

How to get a record by anything else than it's id - SugarCRM

狂风中的少年 提交于 2019-12-12 21:27:28
问题 The question might be unclear to you but my problem is very simple The SugarCRM documentation suggests that to get a record, I should send a GET request to /<module>/:recordId . What I want to achieve is to get a record by its email. In previous version of SugarCRM, I could send an SQL query to their API in the payload request. But here since it is a GET request there is no body. I need help for this 回答1: To get records by matching non-id fields you can use the record filter API /<module>