Re: Re: Re: Re: Re: Inexplicable results with repeatable fr:autocomplete and xforms:delete

Posted by Ethan Gruber on
URL: https://discuss.orbeon.com/Inexplicable-results-with-repeatable-fr-autocomplete-and-xforms-delete-tp932322p3564149.html

I recall having this problem and had to make the control use an itemset based on its current position.  For each repeatable element to which the fr:autocomplete is assigned, I had to insert a element to hold the response from the dynamic itemset query whose position is identical to that of the fr:autocomplete within its context into an aggregated instance.  For example, the third fr:autocomplete within your repeatable element had to refer to instance('suggestions-aggregate-subject')/response[3].  See http://code.google.com/p/eaditor/source/browse/trunk/inputs/subject-autocomplete.xml?r=110 for more info.  The $uid variable is tied to the position and 'suggestions-aggregate-subject' is the aggregate instance.  If you deleted your third fr:autocomplete control, you also had to remove instance('suggestions-aggregate-subject')/response[3].

This ceased to be an issue when I migrated to XBL as each fr:autocomplete relied upon its own internal model.

Ethan

On Fri, May 27, 2011 at 2:09 AM, jesintha_p <[hidden email]> wrote:
Yes Ethan, the autocomplete box inside repeat is not functioning as expected.
If we have more than one items only the first one works correctly, the new
one dont get the values for the autocomplete, the first one only has those
divs, the others get only one empty div

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Inexplicable-results-with-repeatable-fr-autocomplete-and-xforms-delete-tp932322p3554457.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.


--
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