sugarcrm

SugarCRM Smarty Code in Listviewdefs

我们两清 提交于 2020-01-01 03:39:09
问题 I'm trying to use Smarty PHP for custom functionality in the ListView (custom/modules/Leads/metadata/listviewdefs.php) of SugarCRM (6.5.3). This works fine: 'customCode' => '{$LD_ASSUMED_SUGAR_ACCOUNT_ID_C}', And so does this: 'customCode' => '{$ACCOUNT_NAME}', However this just outputs the code (brackets and all) in the List (but with Account name substituted for the correct value): 'customCode' => '{if $LD_ASSUMED_SUGAR_ACCOUNT_ID_C}{$ACCOUNT_NAME}{/if}', What am I doing wrong!? 回答1: I don

How to change default sort in custom subpanel - sugarcrm?

只愿长相守 提交于 2019-12-31 02:49:10
问题 I want to put default sort by "Date Created" in custompanel. can you please guide me, how can I make it "Date Created" as default sort? Please help me. 回答1: In your layout_defs change the sort_by to the desired column : <?php $layout_defs['ModuleName']['subpanel_setup']['Subpanelname'] = array( 'order' => 50, 'sort_order' => 'desc', 'sort_by' => 'date_entered', ); ?> In this example, the default column used for sorting is date_entered 来源: https://stackoverflow.com/questions/30610322/how-to

Where is SugarFullTest_Version2.php? (Sugar CRM and SOAP)

萝らか妹 提交于 2019-12-29 01:46:08
问题 In regards to using SOAP to connect to Sugar CRM, the documentation for Sugar 6.1 Community Edition states: "See /examples/SugarFullTest_Version2.php for more examples on usage." source: http://developers.sugarcrm.com/docs/OS/6.1/-docs-Developer_Guides-Sugar_Developer_Guide_6.1.0-Chapter%202%20Application%20Framework.html#9000244 This file is not in the examples folder. Where is it? If this file does not exist, where can I find a working example of connecting to Sugar CRM with SOAP? None of

Where do I override the create_export_query for a custom module?

橙三吉。 提交于 2019-12-25 07:50:07
问题 I am working with SugarCRM. I have a custom module, I am trying to override the export method to not include all of the columns. I actually need to make the columns dependent on the visible columns in the list view (that I can figure out). I have been going through all the files in SugarCRM, I notice that the built in modules have a Module.php file, where there is a 'SELECT Module.*' for the export method. I cannot find a file like that for my custom module. I am asking for help on where do I

Remove button in detailview with condition in SugarCRM

纵然是瞬间 提交于 2019-12-25 02:20:06
问题 My code : $GLOBALS['listbutton'] = $this->dv->defs['templateMeta']['form']['buttons']; if ($this->bean->status == 'Converted') { unset($this->dv->defs['templateMeta']['form']['buttons'][0]); } parent::display(); $GLOBALS['log']->debug("INFOdation log Display"); $this->dv->defs['templateMeta']['form']['buttons'] = $GLOBALS['listbutton']; But when status =='New' , the edit button still hide. Could you help me. I only want edit button hide when status == 'Converted', other status it has to

SugarCRM - how to add additional column in Gantt Grid View for Project Tasks?

ⅰ亾dé卋堺 提交于 2019-12-24 20:28:29
问题 I found here http://forums.sugarcrm.com/f6/custom-columns-gantt-charts-31205/ how to add columns to gantt view in project tasks (View Gantt) - to change EditGridView.tpl file but I think it is not upgrade safe. Is it possible to add some column here or not? Thank you 回答1: As long as the file override is put in the custom/ directory, you should be upgrade-safe. 来源: https://stackoverflow.com/questions/15403402/sugarcrm-how-to-add-additional-column-in-gantt-grid-view-for-project-tasks

What is best way to pass JSON data one Fragment to another Fragment

北城以北 提交于 2019-12-24 14:16:03
问题 I have two fragments in site my first fragment call AsyncTask and get some json values.and then i want to pass my JSON values to my second Fragment's TextViews.What is the best way pass json value between fragments? this is my AsyncTask in Fragment 1 class LoadingAccountEntry extends AsyncTask<String, String, String> { @Override protected void onPreExecute() { } @Override protected String doInBackground(String... args) { String response; Map<String, Object> data = new LinkedHashMap<String,

sugarcrm simple query not working

孤街醉人 提交于 2019-12-24 09:12:24
问题 I am trying to retrieve the name of the compnay a contact belongs to. the relation ships exists in the table account_contacts , how ever when I try to tun the query it barks SELECT accounts.`name`, contacts.first_name FROM contacts, accounts INNER JOIN accounts_contacts ON contacts.id = accounts_contacts.contact_id AND accounts.id = accounts_contacts.account_id error i get is [Err] 1054 - Unknown column 'contacts.id' in 'on clause' AFTER changes: SELECT accounts.`name`, contacts.first_name,

SugarCRM 6.2 - Adding a custom field in user profile

你离开我真会死。 提交于 2019-12-24 08:47:54
问题 Yeah. As the title says, I am tasked with creating custom field in user profile, and sort of hit a wall on this one. It is a very small customisation, add a yearly_target field to user edit and detail view. I was happy to stumble on this article to add a custom field in sugar. Although it's a huge help, it seems to be missing one or 2 minor points. To have the fields show in edit and detail views, one apparently needs to create and edits EditView.php and EditView.tpl and DetailView.php and

Unregistered action (via custom module) leads to XSRF Attack Detected error

删除回忆录丶 提交于 2019-12-24 07:59:35
问题 In SugarCRM 8.0.1, I am trying to make a new, unregistered action work. The action is a form and has been added to my custom module. I am trying to reach it from itself in the following manner so that on form submission, the form-data is sent back to itself (aka, the action link leads back to the same page the form is on): <form method="POST" name="ConfigureSettings" action="#bwc/index.php?module=CustomModule&action=newAction"> Based on SugarCRM Support's Troubleshooting Cross-Site Forgery