在fr:currency中重置无法正常工作

时间:2013-08-29 09:27:49

标签: orbeon

我正在使用orbeon 3.9 CE而我正在使用fr:currency作为货币字段。我有一种情况,例如将'100000'作为货币字段的默认值,如果字段为空,则它应该返回默认值。< / p>

Probelm:第一次,如果我们将货币字段从默认值(100000)变为空,则返回默认值但之后它不会返回默认值。保存时,它会保存默认值。示例代码:

<xforms:instance id="abc">
<currency-1>100000</currency-1>
</xforms:instance>

<xforms:bind id="currency-1" nodeset=""
 calculate="if(sonme condition) then (if(.='') then '100000.00' else .) else '100000'"
constraint=""/>

<fr:currency bind="currency-1">
</fr:currency>

0 个答案:

没有答案