Hi
Is it possible that multi-select items can be displayed comined in TextBox . Suppose user selects ItemA,Items B from Multiselect list then it is displayed in textbox as ItemA,ItemB
Thanx
Hi
Is it possible that multi-select items can be displayed comined in TextBox . Suppose user selects ItemA,Items B from Multiselect list then it is displayed in textbox as ItemA,ItemB
Thanx
Yes it is possible, try the field type multienum. It works exactly as you describled.
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
Yes, it is possible, but I believe those options are better rendered on multienum field anyway.
If you really want to do that you can:
- create a custom view.detail.php on your module;
- inside this custom view.detail.php implement function preDisplay() in order to modify content of field;
- edit detailviewdefs.php in order to modify the type of field on layout to "readonly"
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.
Hi Rafael
There is multiselect field i am using C.E . If i have to get this field copied to another customised field . How it can be done , logic hook needs to be written . Can u pls help with logic hook if needs to be written
Thanx
If you are developer you can do it with customCode and Javascript or you could use logic hook (before save).
Last edited by AlexAv; 2012-02-06 at 07:38 AM.
Letrium ltd. - Only high quality service
http://letrium.com
Hi AlexAv
Can u pls help me with how we can do with Logic Hook
Thanx
Example from Sugar Developer Guide – 6.1.0
Logic Hooks
Here is some sample code for a simple example of using the logic hooks. This example adds a
time stamp to the description field of the Media Inquiry every time the record is saved.
First, create the file AddTimeStamp.php with the following contents.
Next register this custom function by creating the file logic_hooks.php with the followingPHP Code:<?php
//prevents directly accessing this file from a web browser
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class AddTimeStamp {
function StampIt(& $focus, $event){
global $current_user;
$focus->description .= “\nSaved on ”. date(“Y-m-d g:i a”). “ by ”. $current_user->user_name;
}
}
?>
contents.
PHP Code:<?php
// Do not store anything in this file that is not part of the array or the hook version. This file will
// be automatically rebuilt in the future.
$hook_version = 1;
$hook_array = Array();
// position, file, function
$hook_array['before_save'] = Array();
$hook_array['before_save'][] = Array(1, 'custom', 'custom/modules/Media/AddTimeStamp.php ','AddTimeStamp',
'StampIt');
?>
Letrium ltd. - Only high quality service
http://letrium.com
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks