Open
Description
Hi guys, I have this template [1] with two tables, I have no problem with the second table, I have code like this:
$plantilla->cloneRow('numeroCDP', 4);
--Values
$plantilla->setValue('numeroCDP#1', 1);
...
$plantilla->setValue('numeroCDP#4', 4);
For the first table I have the following code (dinamic created values):
$plantilla->cloneRow($campoClonar->getAlias(), $totalFilas);
for($f=1; $f<=$totalRows; $f++){
foreach($fields as $field){
$plantilla->setValue($field->getAlias().'#'.$f, utf8_encode(strip_tags('The value')));
}//End foreach ($fields)
}
And I have this error:
Can not clone row, template variable not found or variable contains markup
Do you know what can be wrong with my code or my template??
Thanks in advance
[1] http://www.mediafire.com/view/c6wbpc77uk1obs9/PlantillaElvira.docx
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.