OK, I have used the Autocomplete to get a field in a form to suggest titles. Works fine.
But what I want to do is have it in a container and reference it. That does not seem to work.
I added a second title and both work (see attached DCT)
If I change the max # of containers from 1, no autocomplete happens. I expect it is in this code:
f.$('input[name=my/Link/text]').blur();
f.$('input[name=my/Link/text]').autocomplete(f.document.o.data, {matchContains: true});
IWDatacapture.getItem('my/Link/text').setReadOnly(false);
f.$('input[name=my/Link/text]').focus();
I have tried
f.$('input[name=my/Link[0]/text]').blur();
f.$('input[name=my/Link[0]/text]').autocomplete(f.document.o.data, {matchContains: true});
IWDatacapture.getItem('my/Link[0]/text').setReadOnly(false);
f.$('input[name=my/Link[0]/text]').focus();
and
f.$('input[name=my/Link[1]/text]').blur();
f.$('input[name=my/Link[1]/text]').autocomplete(f.document.o.data, {matchContains: true});
IWDatacapture.getItem('my/Link[1]/text').setReadOnly(false);
f.$('input[name=my/Link[1]/text]').focus();
But no luck.
If I add fields text1, text2, text3, etc, that works fine but there are going to be 100 or so of these fields so a replicant is the way to go.
Tips/Pointers/RTFMs appreciated
Andy