<?php
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once 'modules/es_estudios/views/view.edit.php';
class Custom_es_EstudiosViewEdit extends es_estudiosViewEdit {
public function __construct()
{
parent::__construct();
}
/**
* @see SugarView::display()
*
* We are overridding the display method to manipulate the sectionPanels.
* If portal is not enabled then don't show the Portal Information panel.
*/
public function display()
{
$this->useForSubpanel = true;
// habilitamos el valor del nombre en el archivo tpl (enviar y recibir archivos por medio de HTTP)
$this->ss->assign('matricula', $this->bean->matricula);
// cargamos el contenido del tpl en la variable
$name_input_code = $this->ss->fetch('custom/modules/es_estudios/tpls/matriculaUnica.tpl.js');
// enviamos el contenido a "editviewdefs"
$this->ss->assign('validacionMatricula', $name_input_code);
parent::display();
}
}
Hola PGR, gracias, fue de gran ayuda esto… soy medio nuevo en el crm y acabo de entender que para los modulos custom no hace falta agregar un customCode sino el script JS.
Ya estoy mas encaminado, ahora me falta hacer el cruce con el archivo php…