I currently have a table in an OpenOffice template which is used to display two peoples titles and their electronic signatures. Each column can be removed if one of the people does not have a label and signature image.
The table is 2 rows and 4 columnns. The 1st column is a merged row with the label while the 2nd column contains the signature image in the first row and the persons name in the second row. The 3rd and 4th columns repeat that sequence.
In my Java model for the template, I have a method "includeSignature" which returns a boolean. This method is called by a field in the cells with the persons name (2nd column, 2nd row and 4th column, 2nd row) using the expression cc_includeSignature and I was expecting the columns to be removed when the method returned false.
What happens instead is that on the resulting document, those cells just contain the word "false".
Any ideas what is happening to cause the result to be printed instead of removing the column?
thanks
Conditional Column Field needs to be in the First row of the col
Hello Ash.
The documentation doesn't say (we'll have that corrected), but you need to put the field ("cc_includeSignature") into the first (top) cell of the column. Docmosis assumes that any conditional field for stripping a column will be defined in the first row of the column.
Hope that solves it for you.