[Xsltforms-support] set focus to item in a list constructed by repeat
Brought to you by:
alain-couthures
From: Alexander H. <al...@ho...> - 2013-08-09 12:15:11
|
Hi all, let's say I have a long list of items constructed by a repeat. Now I compute the position of an item I want to be highlighted by setting the index via, for example: <xf:setindex repeat="repeat-foo" index="count(instance('inst-foo')/foo[./@id = instance('inst-bar')//id]/preceding-sibling::*)+1"/> So far, so good. Is there a way to additionally set the focus to this item? <xf:setfocus control="repeat-foo"/> does not seem to be intended for such purposes. The current state is that in that long list the correct item is highlighted, but the user has to scroll to actually find it. Any thoughts? Thanks for your time! Alex |