public function getHtmlTable($name){ $this->body->htmlAttributes['id'] = $name; $this->body->lastRow()->htmlAttributes['id'] = "{$name}_plantilla"; // $this->body->lastRow()->firstColumn()->setValue(" ".$thi->$this->body->lastRow()->firstColumn()->getValue()); $html = parent::getHtmlTable(); $html .= "<button dojotype=\"dijit.form.Button\" class=\"agregar\" onClick=\"return cloneRow('$name')\">Agregar registro</button> "; return $html; }