Hi all,
can anybody help me on how to remove uncustomizable fields from massupdate layout please in sugar 5.5?
thanks for now
regards
Hi all,
can anybody help me on how to remove uncustomizable fields from massupdate layout please in sugar 5.5?
thanks for now
regards
You cannot achieve this for standard sugar fields using studio. you would have to amend the vardef file for the modules that you wish to change the mass update panel for.
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 MySQL 5.0.32
SalesAgility.com - SugarCRM Experts (UK)
Authors of Advanced OpenSales - Open Source Quotations, Invoices, Products and Contracts modules for SugarCRM Community Edition - Download here
thanks for the reply SalesAgility,
but can you please explain it simply more regarding which php i should edit and what i should do.
as an example i want to remove 'converted' field from massupdate layout.
appreciate for any help,
regards
Last edited by smoothumut; 2010-04-30 at 12:23 PM.
Create the folders and file, if don´t exist:
custom/Extension/modules/<ModuleName>/Ext/Vardefs/somescript.php
Obviously go to Admin -> Repair -> Rebuild ExtensionsPHP Code:<?PHP
$dictionary['<BeanName>']['fields']['<FieldName>']['massupdate'] = false;
?>
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Thanks for the very clear answer Andopes,
but i have one more very very basic question that might make you laugh or get you crazy.
what is Beanname?? what should i put instead of it in the php file i have created? do you mean module name like 'cases' or something different??
thanks for your understandings
Regards
I have the same problem and try the code:
<?PHP
$dictionary['Contacts']['fields']['lead_source']['massupdate'] = false;
$dictionary['Contacts']['fields']['reports_to']['massupdate'] = false;
$dictionary['Contacts']['fields']['sync_contact']['massupdate'] = false;
?>
Hovewer, after try repair the follows errors appear:
Executing repair query: Query Failed:ALTER TABLE contacts add column NULL ,
add column NULL::MySQL error 1064: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right
syntax to use near 'NULL ,add column NULL' at line 1
Any help?
Bean name is the class of the module. For example the LucioFiamingo code.
He tried to setup $dictionary['Contacts'].
Actually Contacts is the name of the module, Contact is the name of the bean (BeanName).
To make sure what is the bean name take a look at default vardefs of the module you are going to customize.
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Thanks a lot Andopes,
You are a REAL Hero...
My Best Regards
Dear Andopes,
I change the code as you suggest:
<?PHP
$dictionary['Contact']['fields']['lead_source']['massupdate'] = false;
$dictionary['Contact']['fields']['reports_to']['massupdate'] = false;
$dictionary['Contact']['fields']['sync_contact']['massupdate'] = false;
?>
but still have problems with DB update:
Executing repair query: Query Failed:ALTER TABLE contacts add column NULL ,add column NULL::MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL ,add column NULL' at line 1
What do you suggest to do?
Thanks
I fix the problem : report_to doesn't exist, I set report_to_link instead. Now no errors are swown, however the code has no action...
Any help?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks