xforms - Use read-only xf:input as xf:output in Orbeon? -
can use read-only xf:input act xf:output in orbeon? how set value of readonly input field?
simpler code sample:
<xf:input ref="//some/elements/totalcredit" value="round(($quantity) * ($creditperunit))"> </xf:input > <xf:output ref="//some/elements/totalcredit" value="round(($quantity) * ($creditperunit))"/>
in above code xf:input shows initial value model! doesn't update! xf:output value updated expected!
so, how can set xf:input's value xf:output?
- i don't want use calculation in bind.
in example, have xf:input
both ref
, value
; not sure expect do, or if makes sense, sure won't work:
with
xf:output
, can have bothref
,value
, node pointedref
can influence whetherxf:output
shown ,value
gives value.if want same
xf:input
, can put result of calculation inref
(in caseround(($quantity) * ($creditperunit))
). if expression returns atomic value, input field readonly, think should take care of situation.
Comments
Post a Comment