sugarcrm

sugarcrm fileDownload error after upgrade

南楼画角 提交于 2019-12-10 12:47:38
问题 I received this error after I upgraded sugar7.8, Which calling my filedownload. {"error":"need_login","error_message":"No valid authentication for user."} After some Investigation found tht sugar upgraded the API calls for OAuth. Following is my CODE: api.fileDownload(api.buildURL("Quotes/" + model.get("id") + "/pdf/download?OAuth-Token=" + api.getOAuthToken()), { success: function() { app.alert.show("pdf_download_api_success", { level: "success", messages: SUGAR.language.get('Quotes', 'LBL

Adding custom jQuery validation in SugarCRM editview

元气小坏坏 提交于 2019-12-10 12:04:04
问题 I am trying to add custom jQuery script in either header or footer of Accounts edit view, searched everywhere in Google but can't find an hook that prints scripts in header or footer. My goal is to add custom validation for my custom fields, but as soon as I add jQuery code the page gets halted. I am inserting following code in custom/modules/Accounts/metadata/editviewdefs.php $viewdefs ['Accounts'] = array( 'EditView' => array( 'templateMeta' => array( 'javascript' => '<script type="text

SugarCRM installable changes in detailview

纵然是瞬间 提交于 2019-12-09 18:31:50
问题 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

Call to undefined function iconv() fatal error - Suitecrm

牧云@^-^@ 提交于 2019-12-08 16:41:25
问题 Using suitecrm 7.9.1 I am facing the below error whenever i try to create a lead , that is after submitting the create lead form. Facing the same error whenever i try to import a csv file . This error occurs only on live server Fatal error: Uncaught Error: Call to undefined function iconv() in /home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene/Field.php:222 Stack trace: #0 /home/testsite/public_html/modules/AOD_Index/Lib/Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter

SugarCRM - how to populate some field with web service response?

≯℡__Kan透↙ 提交于 2019-12-08 11:02:58
问题 I have my index.php file which is calling web service out of sugar and it returns me as response when I run it on my local Apache this result which is OK: <soapenv:Envelope <soapenv:Body> <ns:CommandResponseData> <ns:Operation name="BalanceAdjustment"> </ns:Operation> </ns:CommandResponseData> </soapenv:Body> </soapenv:Envelope> I created one additional button within Detail View which I plan to call this web service but I do not know how to bind that button, my index.php file and result from

Sugarcrm, writing custom code while saving the record

浪尽此生 提交于 2019-12-08 08:14:42
问题 I am customizing the SugarCRM. At some point I need to store some custom values to the database while user creates the record. I tried to use Triggers, but it didn't fulfill the requirement. So I need to write that in PHP code. My question is, where to write this code. 回答1: Use logic hooks (after_save or before_save e.g.) on the module's save action. Create a logic_hooks.php in custom/modules/ myModule / <? $hook_array = Array(); $hook_array['after_save'] = Array(); $hook_array['after_save'][

create rest api for custom sugarcrm module to upload files

天大地大妈咪最大 提交于 2019-12-08 05:28:50
问题 I have created a module using module builder. Now, I am using REST API to create the custom module records. When I create a module with rest api almost all fields are affected(rest values are assigned), except file. I do not know how to upload file to server. I have used set_entry to create module. set_note_attachment and set_document_revsion is only for uploading and creating document and note instances. Is there are any way to uplload custom module files to server Thanks 来源: https:/

sugarCRM : creating relationship using module loader, package not installing

*爱你&永不变心* 提交于 2019-12-08 03:28:31
问题 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(

Adding Custom Field to Edit View - SugarCRM

社会主义新天地 提交于 2019-12-08 02:15:33
问题 I am trying to modify the behavior of a custom field (a checkbox) in the EditView of a SugarCRM (SugarPro 6.1.2) instance. Specifically, I would like a div to be exposed whenever someone clicks on the checkbox. The field appears in the Edit view as expected and I have added some javascript that executes onclick - this works fine too. The problem is that, when the record is saved, the value of the checkbox is not saved. Here are specifics on how I went about adding the field and associating

Use Plone's authentication mechanism to login to other sites

两盒软妹~` 提交于 2019-12-07 05:23:40
问题 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? 回答1: Configure both to authenticate against an LDAP server. 回答2: 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