xml publisher根据条件显示或隐藏列
<?
if@column:condition
?>
……
<?end if?>
例子:
IF项目号EI |
IFPROJECT_NUMBEREI |
IF:<?if@column:PROJECT_FLAG='Y'?>
EI:<?end if?>
注意:对应的PROJECT_FLAG需要同时在头和行上有对应的标签
<?xml version="1.0" encoding="UTF-8"?>
<CUX>
<TITTLE>待转开进项发票</TITTLE>
<PROJECT_FLAG>Y</PROJECT_FLAG>
<G_LINE>
<PROJECT_FLAG>Y</PROJECT_FLAG>
<COST_SOURCE>应付发票</COST_SOURCE>
<CUX>
<TITTLE>待转开进项发票</TITTLE>
<PROJECT_FLAG>Y</PROJECT_FLAG>
<G_LINE>
<PROJECT_FLAG>Y</PROJECT_FLAG>
<COST_SOURCE>应付发票</COST_SOURCE>
</G_LINE> </CUX>