Greetings!
Have you ever wondered, how can I create an input/date/dropdown control without manually writing the html tags in SugarCRM?
If you dint find the solution, there you go!! Worth appreciating ;)
require_once("modules/Import/Forms.php");
$moduleName = '<Your_module_name>';
$oModule = BeanFactory::getBean($moduleName);
$fieldName = '<Your_field_name> ';
echo getControl($moduleName, $fieldName, $oModule->getFieldDefinition($fieldName), "");
I can hear the grand Applause! ;)
Have you ever wondered, how can I create an input/date/dropdown control without manually writing the html tags in SugarCRM?
If you dint find the solution, there you go!! Worth appreciating ;)
require_once("modules/Import/Forms.php");
$moduleName = '<Your_module_name>';
$oModule = BeanFactory::getBean($moduleName);
$fieldName = '<Your_field_name> ';
echo getControl($moduleName, $fieldName, $oModule->getFieldDefinition($fieldName), "");
I can hear the grand Applause! ;)
cool! great tips! thanks for sharing this! i will try to use this one.. it could help it on my job at www.projectmanager.com..hope you could share more.. thanks again.. God bless..
ReplyDeleteRemjo Gonzales
www.projectmanager.com
Excellent tip
ReplyDeleteThanks for posting it