Hello together,
if I use a normalize-space on data which is in a input-field I get a "Control is no longer bound to a node. Cannot set external value." after changing the value and leaving the cell. The "normalize-space" has been placed since the data has leading spaces and if one starts editing in the beginning, this leads to spaces within the value. How would I get rid of these spaces and get a working editable table then? Any hints are welcome. Please see the attached example. Thanks a lot. Cheers Heinrich -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws tableTestTrimValue.zip (3K) Download Attachment |
Administrator
|
Heinrich,
The result of normalize-space() is a string, not a node. So that won't work, and you get that error. You could do this with binds: <xforms:bind ref="col1" calculate="normalize-space(.)" readonly="false()"> -Erik On Mon, May 21, 2012 at 6:01 AM, Heinrich Götzger <[hidden email]> wrote: > Hello together, > > if I use a normalize-space on data which is in a input-field I get a > > "Control is no longer bound to a node. Cannot set external value." > > after changing the value and leaving the cell. > > The "normalize-space" has been placed since the data has leading spaces and > if one starts editing in the beginning, this leads to spaces within the > value. > > How would I get rid of these spaces and get a working editable table then? > > Any hints are welcome. > > Please see the attached example. > > Thanks a lot. > > > Cheers > > Heinrich > > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hoi Erik,
thanks, but I'm not sure how to get this bind on my multi-item table-data. Greetings Heinrich On 05/22/12 07:51, Erik Bruchez wrote: > Heinrich, > > The result of normalize-space() is a string, not a node. So that won't > work, and you get that error. > > You could do this with binds: > > <xforms:bind ref="col1" calculate="normalize-space(.)" readonly="false()"> > > -Erik > > On Mon, May 21, 2012 at 6:01 AM, Heinrich Götzger<[hidden email]> wrote: >> Hello together, >> >> if I use a normalize-space on data which is in a input-field I get a >> >> "Control is no longer bound to a node. Cannot set external value." >> >> after changing the value and leaving the cell. >> >> The "normalize-space" has been placed since the data has leading spaces and >> if one starts editing in the beginning, this leads to spaces within the >> value. >> >> How would I get rid of these spaces and get a working editable table then? >> >> Any hints are welcome. >> >> Please see the attached example. >> >> Thanks a lot. >> >> >> Cheers >> >> Heinrich >> >> >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing >> list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> -- Before printing this e-mail, think about our environmental responsibility. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Your datatable is repeating on:
instance('data_content')/items/item and the value you want to clean is, relative to that: col1 In your model, you can point to all such values with a bind: <xf:bind ref="instance('data_content')/items/item/col1" calculate="normalize-space(.)" readonly="false()" > -Erik On Wed, May 23, 2012 at 9:07 AM, Heinrich Götzger <[hidden email]> wrote: > Hoi Erik, > > thanks, but I'm not sure how to get this bind on my multi-item table-data. > > Greetings > > Heinrich > > > On 05/22/12 07:51, Erik Bruchez wrote: >> >> Heinrich, >> >> The result of normalize-space() is a string, not a node. So that won't >> work, and you get that error. >> >> You could do this with binds: >> >> <xforms:bind ref="col1" calculate="normalize-space(.)" readonly="false()"> >> >> -Erik >> >> On Mon, May 21, 2012 at 6:01 AM, Heinrich Götzger<[hidden email]> wrote: >>> >>> Hello together, >>> >>> if I use a normalize-space on data which is in a input-field I get a >>> >>> "Control is no longer bound to a node. Cannot set external value." >>> >>> after changing the value and leaving the cell. >>> >>> The "normalize-space" has been placed since the data has leading spaces >>> and >>> if one starts editing in the beginning, this leads to spaces within the >>> value. >>> >>> How would I get rid of these spaces and get a working editable table >>> then? >>> >>> Any hints are welcome. >>> >>> Please see the attached example. >>> >>> Thanks a lot. >>> >>> >>> Cheers >>> >>> Heinrich >>> >>> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] mailing >>> list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> > > > -- > Before printing this e-mail, think about our environmental responsibility. > > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |