hello, I would like to create a custom popup in module "case", different from that which existed there already and I want to use both. Does anyone know how he does it work?
hello, I would like to create a custom popup in module "case", different from that which existed there already and I want to use both. Does anyone know how he does it work?
You need to copy the folder include/SugarFields/Fields/Relate to another folder, rename both php script and class name, update the path to templates on php script and modify the EditView.tpl this way:
Replace the <your_popup_here> by some new popup defs.HTML Code:<input type="button" name="btn_{{sugarvar key='name'}}" tabindex="{{$tabindex}}" title="{$APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" class="button" value="{$APP.LBL_SELECT_BUTTON_LABEL}" onclick='open_popup("{{sugarvar key='module'}}", 600, 400, "", true, false, {{$displayParams.popupData}}, "single", true, "<your_popup_here>");'> {{if empty($displayParams.selectOnly) }}
Copy the file modules/<PopupModule>/metadata/popupdefs.php to the same name in the onclick function call.
Modify the enough to get it working.
Edit the editviewdefs.php of the module containing the relate field and set the attribute type:
Where 'new_field_def' is the folder name you had customized as specified above.PHP Code:'type' => 'new_field_def',
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,
This may not be related to the above matter but i have the following problem.
I created a custom module called “Product”. There is a default “name” field but I have omitted it from the editview, detailview and listview layouts.
Everything works fine except when comes to building a relationship with stock module “Opportunities”. I have created a 1-1 relationship for both modules. But when comes to selecting a product in Opportunities module it does not show up in the relate field.
I have tried to enable a URL link in one of my customized field “main_product” by setting
'link' => true
It still does not work. I am guessing the relationship could only call the default field of the child module. I want to enable calling for customized field. Please help!
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks