我无法让我的RTF模板在我的第一个单元格中接受嵌套选择。我有:
<?choose?>
<?when: FIRST_COLOR='Red'?>
<?FIELD_VALUE?>
<?end when?>
<?otherwise?>
<?choose?>
<?when: SECOND_COLOR?>
<?xdofx:FIELD_VALUE_2||'Z'?>
<?end when?>
<?otherwise?>
<?FIELD_VALUE_2?>
<?end otherwise?>
<?end choose?>
<?end otherwise?>
<?end choose?>
我也在when语句中尝试没有冒号,但是我只得到了50条记录中的两条,而不是错误。
答案 0 :(得分:0)
我发现嵌套是否有效。
<?xdofx:if FIRST_COLOR='Red' then
FIELD_VALUE
else
if SECOND_COLOR!='' then
FIELD_VALUE_2||'Z'
else
FIELD_VALUE_2
end if?>
答案 1 :(得分:0)
If your original example was the code you were actually using, you were missing colons. It should be:
<?otherwise:?>
That would cause an issue, but I cannot say whether it would have caused your issue since you did not specify the exact error you were getting.