Hi Piperin
According to Opportunities.zip sample customization it is into custom/modules/Opportunities/views/
Actually the rule is:
1. If you want to implement the DevToolKit into a built in modules you should create the view into custom/modules/<ModuleName>/views/;
2. If you want to implement it into a custom modules so you may create the views into modules/<ModuleName>/views/
I'm going to update the User Guide to reflect this new information.
These feedback are always welcome to keep both Tool and Documentation user friendly.
Best regards
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!
Please help me that what is the purpose of your new deplyment kit.
I upload it and install and also make dropdwon lists .
but where are the file where name will added for these dropdown lists.
pls guid step by step if possible.
thanks
Hi Shafique
Download both User Guide and Opportunities sample customization from Project Page.
It is well documented how to proceed.
The Purpose of the package at all: enable users to implement development feature in an easy to use way, without needing to understand so much. Actually the purpose is a ToolKit for non-developers implement advanced customization without development skills.
The current release enable you to:
1. Configure dependent dropdowns;
2. Configure editable fields based on check box and dropdown values;
3. Configure required fields based on check box and dropdown values.
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 !!
I have download the example of opportunities, I do all of ruchida's post says, and my views of opportunities are now in blank :S it's to say, if i click on opportunities module on my sugarcrm, a blank page is showed !! ¿?¿?
I'm sure that i follow the steps correctly. any sugestion ?
Thanks !!
The DevToolKit had been working for hundreds users.
Make sure you had followed both Opportunities sample customization and User Guide.
Make sure you had added the code in the appropriate place over the files.
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.
But I have warring message like "Warning: Invalid argument supplied for foreach() in /var/www/sugarcrmtest/custom/include/utils/DevToolKit.php on line 72" before Edit and message like "Warning: Invalid argument supplied for foreach() in /var/www/sugarcrmtest/custom/include/utils/DevToolKit/DynamicDropdown.php on line 94" in Edit level.
And my dependent dropdowns don't work.
What could be wrong?
Last edited by Piperin; 2009-05-05 at 01:49 PM.
Let me know the content of the view.edit.php, view.detail.php and metadata files for the DevToolKit extensions.
By the way.
I had no time to upload the new release yesterday, I'm going to do that today.
The New features on new version:
1. Dynamic panels;
2. Check for duplicate fields on database;
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.
I need dependent dropdown in Accounts module.
sugarcrmtest/modules/Accounts/views:
view.detail.php
view.edit.phpPHP Code:<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
function display(){
if(empty($this->bean->id)){
global $app_strings;
sugar_die($app_strings['ERROR_NO_RECORD']);
}
$this->manager->display();
$this->dv->process();
global $mod_strings;
if(ACLController::checkAccess('Contacts', 'edit', true)) {
$push_billing = '<input class="button" title="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'] .
'" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name=' .
$this->bean->name . '&html=change_address' .
'&primary_address_street=' . str_replace(array("\rn", "\r", "\n"), array('','','<br>'), urlencode($this->bean->billing_address_street)) .
'&primary_address_city=' . $this->bean->billing_address_city .
'&primary_address_state=' . $this->bean->billing_address_state .
'&primary_address_postalcode=' . $this->bean->billing_address_postalcode .
'&primary_address_country=' . $this->bean->billing_address_country .
'", true, false);\' value="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE']. '">';
$push_shipping = '<input class="button" title="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'] .
'" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name=' .
$this->bean->name . '&html=change_address' .
'&primary_address_street=' . str_replace(array("\rn", "\r", "\n"), array('','','<br>'), urlencode($this->bean->shipping_address_street)) .
'&primary_address_city=' . $this->bean->shipping_address_city .
'&primary_address_state=' . $this->bean->shipping_address_state .
'&primary_address_postalcode=' . $this->bean->shipping_address_postalcode .
'&primary_address_country=' . $this->bean->shipping_address_country .
'", true, false);\' value="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE'] . '">';
} else {
$push_billing = '';
$push_shipping = '';
}
$this->ss->assign("custom_code_billing", $push_billing);
$this->ss->assign("custom_code_shipping", $push_shipping);
if(empty($this->bean->id)){
global $app_strings;
sugar_die($app_strings['ERROR_NO_RECORD']);
}
echo $this->dv->display();
}
}
?>
view.list.phpPHP Code:<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.edit.php');
class AccountsViewEdit extends ViewEdit {
private $manager;
function init($bean = null, $view_object_map = array()) {
parent::init($bean, $view_object_map);
require_once('custom/include/utils/DevToolKitManager.php');
$this->manager = new DevToolKitManager($this);
}
function display() {
$this->manager->display();
$this->ev->process();
echo $this->ev->display();
}
function process() {
parent::process();
$this->manager->process();
}
}
?>
sugarcrmtest/modules/Accounts/metadata (or it should be in sugarcrmtest/custom/modules/Accounts/metadata)PHP Code:<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.list.php');
class AccountsViewList extends ViewList {
private $manager;
function init($bean = null, $view_object_map = array()) {
parent::init($bean, $view_object_map);
require_once('custom/include/utils/DevToolKitManager.php');
$this->manager = new DevToolKitManager($this);
}
function process() {
$this->manager->process();
parent::process();
}
}
?>
update_dropdown_field_defs.php
PHP Code:<?php
$update_dropdown_field_defs = array(
'address_country_drop_c' => array(
'' => array(
'address_city_drop_c' => '',
),
),
'1' => array(
'address_city_drop_c' => 'address_city_drop_list',
),
),
);
?>
Hi guys
It had been released the DevToolKit version 0.5!!
Added features:
Dynamic Panels;
Duplicate Fields Validation;
Let me know if you face any issue or identify any bug.
kind regards
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