Hello:
I use a translator to write this post ... sorry for my slightly English
My doubt is the following one, install the DevToolKit 0.5, create a module that is called " Alumnos ", I have did everything that thing about the user's guide, I create the view.edit.php, view.detail.php and the view.list.php, my need was use checkForDuplicates for a field inside the module, I did it as he was saying in the user's guide inside the matadata create a check_duplicate_fields.php, but it does not work, it does not verify that the fact does not repeat itself...
This are my codes:
Edit
PHP Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.edit.php');
class AlumnosViewEdit 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();
}
}
?>
Detail
PHP Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.detail.php');
class AlumnosViewDetail extends ViewDetail {
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();
}
}
?>
List
PHP Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.list.php');
class AlumnosViewList 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();}
}
?>
And check
PHP Code:
<?php
$check_duplicate_fields = array(
'run_alumno'
);
?>
run_alumno is a unique number for every student ....
Can you Help Me?
Bookmarks