We are using CALS TABLE in our Arbortext Editor 5.3 based customized product. We would like to hide emptyrow within the Table in the print preview. For this purpose, we have defined <row> element in the print FOSI as shown below:
<specval attname="eriCustom::isRowNotEmpty" attloc="SYSTEM-FUNC" attval="0">
So, ACL function actually checks if row is empty or not. If it is empty, we are using suppress to suppress the row in the print. But, actually it does not suppress the row in the print preview. We can still see empty row in the print preview. We want that it should appear in the print preview like there is no row at all.
If youhave come across any such situation and solved it, please share the same with me. It is really important to us to have this solution as soon as possible.
You've already got an ACL function defined to trigger on <row> and determine if it's empty returninga "0" if it is and "1" if it is not. Before returning the "0", you can insert into the document, a PI after the <row> start tag.
The down side of this is that you're modifying your document. Consequently, you need to add code to test if the <row> already has a PI instruction setting the row height to 0. If you don't, everytime you initialize your document or refresh the gentext, you'll add another PI to the <row>, or you may get an error saying that the PI already exists. (haven't tested it) Also, if your code returns a "1" (it's not empty), you want to remove the PI if it exists since you're not trying to suppress the content anymore.
Like Suzanne mentioned, the Editor handles the tableformatting automatically. To alter the format, you have to do something to the document content.
This is the PI to collapse the <row>. If it is empty, you will not see any trace of the <row>.
The Print Preview will respond to this instruction, as well.
Hope this Helps,