W3C home > Mailing lists > Public > public-xformsusers@w3.org > December 2016

index() in model binding expressions

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Mon, 12 Dec 2016 13:38:29 +0100
To: XForms <public-xformsusers@w3.org>
Message-ID: <op.yscyqfpasmjzpq@steven-aspire-s7>
6.5.1 Model Binding Expressions and Computed Expressions
https://www.w3.org/community/xformsusers/wiki/XForms_2.0#Model_Binding_Expressions_and_Computed_Expressions

"Note:

If the index() function is being invoked from a model binding expression  
or computed expression, it will be necessary to invoke rebuild manually.  
If the repeat index change occurs due to an implicit behavior such as a  
change to the focused control, then the rebuild (along with recalculate,  
revalidate and refresh) can be invoked from a handler for DOMFocusIn  
attached to the repeat or each repeat object."

Presumably it is worth us pointing out here that using indexref instead of  
index() solves this problem.

Steven
Received on Monday, 12 December 2016 12:40:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:47 UTC