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! enter image description here

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 both ref , value, node pointed ref can influence whether xf:output shown , value gives value.

  • if want same xf:input, can put result of calculation in ref (in case round(($quantity) * ($creditperunit))). if expression returns atomic value, input field readonly, think should take care of situation.


Comments

Popular posts from this blog

How can we post XML strings along with text strings in iOS -

How to run C# code using mono without Xamarin in Android? -

c# - cefsharp app remember password option -