By stevensi1018 - Fri Dec 01, 2017 3:25 pm
- Fri Dec 01, 2017 3:25 pm
#812388
Hi,
1) we're trying to generate an output document for a very long summary dynaform (that contains 10 smaller forms). We need to visualize the data (variables) in 2 columns (about 5 forms for each) but I don,t understand why it won't display in my generated document.
I added <div style="float:left; width:50%;" and it works great in the document editor but when I generate it, it's still in one column (5 pages so it's too long). Any easy way to do this ?
2) Also, there is about 100 variable fields. I'm trying to hide or put N/A or just hiding the variable when it's empty. Any way to do that programmatically? I don't want to set another variable for example to append the label + value and put this new variable in my output document.
So far, I have:
Thanks
1) we're trying to generate an output document for a very long summary dynaform (that contains 10 smaller forms). We need to visualize the data (variables) in 2 columns (about 5 forms for each) but I don,t understand why it won't display in my generated document.
I added <div style="float:left; width:50%;" and it works great in the document editor but when I generate it, it's still in one column (5 pages so it's too long). Any easy way to do this ?
2) Also, there is about 100 variable fields. I'm trying to hide or put N/A or just hiding the variable when it's empty. Any way to do that programmatically? I don't want to set another variable for example to append the label + value and put this new variable in my output document.
So far, I have:
Code: Select all
I thought that the function setByName could help since I'm in a foreach with my variable name stocked in $key each iteration. But this doesn't seem to be the right syntax for this function/class since I get a blank Dynaform.$caseId = @@APPLICATION;
$c = new Cases();
$aCase = $c->LoadCase($caseId, @%INDEX);
$aVars = $aCase['APP_DATA'];
foreach($aVars as $key => $var)
{
if($var == null || $var == "")
{
@@a = 1;
$baseClass = new BaseCLASS();
$baseClass->setByName($key, "N/A", "BasePeer::TYPE_PHPNAME");
}
else
@@a = 0;
}
Thanks