xbl autocomplete in dynamic table

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

xbl autocomplete in dynamic table

ricetrac
Hello,

With orbeon 3.8, I use the XBL component Autocomplete in dynamic mode, in order to provide the user with a list of postcodes following codes already entered.
On some forms, I use the Autocomplete on multiple lines of the same table.
For each field with Autocomplete, I need an instance to perform the research. (like the example on Wiki http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autocomplete)

But sometimes, the user can add rows to the table, so how to do the Autocomplete when I don't know how many instance I need ?

thank you.

Julien
Reply | Threaded
Open this post in threaded view
|

Re: xbl autocomplete in dynamic table

Erik Bruchez
Administrator
Julien,

Aren't you using forms:repeat?

-Erik

On Tue, Nov 20, 2012 at 1:41 PM, ricetrac <[hidden email]> wrote:

> Hello,
>
> With orbeon 3.8, I use the XBL component Autocomplete in dynamic mode, in
> order to provide the user with a list of postcodes following codes already
> entered.
> On some forms, I use the Autocomplete on multiple lines of the same table.
> For each field with Autocomplete, I need an instance to perform the
> research. (like the example on Wiki
> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autocomplete)
>
> But sometimes, the user can add rows to the table, so how to do the
> Autocomplete when I don't know how many instance I need ?
>
> thank you.
>
> Julien
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xbl-autocomplete-in-dynamic-table-tp4656001.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
Reply | Threaded
Open this post in threaded view
|

RE : Re: xbl autocomplete in dynamic table

ricetrac
Yes, I use xforms:repeat to display the lines of my table.
the user has an "Add" button to add a row to the table.

This button adds a line in the main instance, and this line is shown in the table.

Each line has a field in which I want to use the Autocomplete. But I do not know how to dynamically create a new instance for each of these fields.

I have another problem: the xforms:submission. I declare a xforms:submission for each field which I use Autocomplete.

Attached is an example of implementation of Autocomplete.

Thank You.


Julien
________________________________________
De : [hidden email] [[hidden email]] de la part de Erik Bruchez [[hidden email]]
Date d'envoi : mercredi 21 novembre 2012 07:12
À : [hidden email]
Objet : [ops-users] Re: xbl autocomplete in dynamic table

Julien,

Aren't you using forms:repeat?

-Erik

On Tue, Nov 20, 2012 at 1:41 PM, ricetrac <[hidden email]> wrote:

> Hello,
>
> With orbeon 3.8, I use the XBL component Autocomplete in dynamic mode, in
> order to provide the user with a list of postcodes following codes already
> entered.
> On some forms, I use the Autocomplete on multiple lines of the same table.
> For each field with Autocomplete, I need an instance to perform the
> research. (like the example on Wiki
> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autocomplete)
>
> But sometimes, the user can add rows to the table, so how to do the
> Autocomplete when I don't know how many instance I need ?
>
> thank you.
>
> Julien
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xbl-autocomplete-in-dynamic-table-tp4656001.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
>
Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




--
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
Reply | Threaded
Open this post in threaded view
|

RE: Re: xbl autocomplete in dynamic table

ricetrac
With the file...

-----Message d'origine-----
De : Bittard, Julien
Envoyé : mercredi 21 novembre 2012 09:20
À : [hidden email]
Objet : RE : [ops-users] Re: xbl autocomplete in dynamic table

Yes, I use xforms:repeat to display the lines of my table.
the user has an "Add" button to add a row to the table.

This button adds a line in the main instance, and this line is shown in the table.

Each line has a field in which I want to use the Autocomplete. But I do not know how to dynamically create a new instance for each of these fields.

I have another problem: the xforms:submission. I declare a xforms:submission for each field which I use Autocomplete.

Attached is an example of implementation of Autocomplete.

Thank You.


Julien
________________________________________
De : [hidden email] [[hidden email]] de la part de Erik Bruchez [[hidden email]] Date d'envoi : mercredi 21 novembre 2012 07:12 À : [hidden email] Objet : [ops-users] Re: xbl autocomplete in dynamic table

Julien,

Aren't you using forms:repeat?

-Erik

On Tue, Nov 20, 2012 at 1:41 PM, ricetrac <[hidden email]> wrote:

> Hello,
>
> With orbeon 3.8, I use the XBL component Autocomplete in dynamic mode,
> in order to provide the user with a list of postcodes following codes
> already entered.
> On some forms, I use the Autocomplete on multiple lines of the same table.
> For each field with Autocomplete, I need an instance to perform the
> research. (like the example on Wiki
> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autoco
> mplete)
>
> But sometimes, the user can add rows to the table, so how to do the
> Autocomplete when I don't know how many instance I need ?
>
> thank you.
>
> Julien
>
>
>
> --
> View this message in context:
> http://orbeon-forms-ops-users.24843.n4.nabble.com/xbl-autocomplete-in-
> dynamic-table-tp4656001.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
>

Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



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

exampleAutcomplete.xml (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Re: xbl autocomplete in dynamic table

ricetrac
Nobody ?  :)

Julien.

-----Message d'origine-----
De : Bittard, Julien [mailto:[hidden email]]
Envoyé : mercredi 21 novembre 2012 09:22
À : [hidden email]
Objet : [ops-users] RE: Re: xbl autocomplete in dynamic table

With the file...

-----Message d'origine-----
De : Bittard, Julien
Envoyé : mercredi 21 novembre 2012 09:20 À : [hidden email] Objet : RE : [ops-users] Re: xbl autocomplete in dynamic table

Yes, I use xforms:repeat to display the lines of my table.
the user has an "Add" button to add a row to the table.

This button adds a line in the main instance, and this line is shown in the table.

Each line has a field in which I want to use the Autocomplete. But I do not know how to dynamically create a new instance for each of these fields.

I have another problem: the xforms:submission. I declare a xforms:submission for each field which I use Autocomplete.

Attached is an example of implementation of Autocomplete.

Thank You.


Julien
________________________________________
De : [hidden email] [[hidden email]] de la part de Erik Bruchez [[hidden email]] Date d'envoi : mercredi 21 novembre 2012 07:12 À : [hidden email] Objet : [ops-users] Re: xbl autocomplete in dynamic table

Julien,

Aren't you using forms:repeat?

-Erik

On Tue, Nov 20, 2012 at 1:41 PM, ricetrac <[hidden email]> wrote:

> Hello,
>
> With orbeon 3.8, I use the XBL component Autocomplete in dynamic mode,
> in order to provide the user with a list of postcodes following codes
> already entered.
> On some forms, I use the Autocomplete on multiple lines of the same table.
> For each field with Autocomplete, I need an instance to perform the
> research. (like the example on Wiki
> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autoco
> mplete)
>
> But sometimes, the user can add rows to the table, so how to do the
> Autocomplete when I don't know how many instance I need ?
>
> thank you.
>
> Julien
>
>
>
> --
> View this message in context:
> http://orbeon-forms-ops-users.24843.n4.nabble.com/xbl-autocomplete-in-
> dynamic-table-tp4656001.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
>

Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




--
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
Reply | Threaded
Open this post in threaded view
|

Re: RE : Re: xbl autocomplete in dynamic table

Alessandro  Vernet
Administrator
In reply to this post by ricetrac
Hi Julien,

I am not sure to understand what the problem is. The autocomplete
works inside repeats, just like other native controls or XBL
components. And I don't see a repeat in the source you attached. What
is the problem exactly?

Alex

On Wed, Nov 21, 2012 at 12:20 AM, Bittard, Julien
<[hidden email]> wrote:

> Yes, I use xforms:repeat to display the lines of my table.
> the user has an "Add" button to add a row to the table.
>
> This button adds a line in the main instance, and this line is shown in the table.
>
> Each line has a field in which I want to use the Autocomplete. But I do not know how to dynamically create a new instance for each of these fields.
>
> I have another problem: the xforms:submission. I declare a xforms:submission for each field which I use Autocomplete.
>
> Attached is an example of implementation of Autocomplete.
>
> Thank You.
>
>
> Julien
> ________________________________________
> De : [hidden email] [[hidden email]] de la part de Erik Bruchez [[hidden email]]
> Date d'envoi : mercredi 21 novembre 2012 07:12
> À : [hidden email]
> Objet : [ops-users] Re: xbl autocomplete in dynamic table
>
> Julien,
>
> Aren't you using forms:repeat?
>
> -Erik
>
> On Tue, Nov 20, 2012 at 1:41 PM, ricetrac <[hidden email]> wrote:
>> Hello,
>>
>> With orbeon 3.8, I use the XBL component Autocomplete in dynamic mode, in
>> order to provide the user with a list of postcodes following codes already
>> entered.
>> On some forms, I use the Autocomplete on multiple lines of the same table.
>> For each field with Autocomplete, I need an instance to perform the
>> research. (like the example on Wiki
>> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autocomplete)
>>
>> But sometimes, the user can add rows to the table, so how to do the
>> Autocomplete when I don't know how many instance I need ?
>>
>> thank you.
>>
>> Julien
>>
>>
>>
>> --
>> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xbl-autocomplete-in-dynamic-table-tp4656001.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
>>
>
> Think green - keep it on the screen.
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>
>
> --
> 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
>


--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE : Re: xbl autocomplete in dynamic table

ricetrac
Hi Alessandro,

Yes, this is just an example to show how I use the autocomplete XBL.
So, I don't know how to use it in a repeat, because I need an instance for each Autocomplete, and I do not know in advance the number of Autocomplete.

Is my question is more clear ? :)

Thank You, and sorry for my bad english

Julien

-----Message d'origine-----
De : Alessandro Vernet [mailto:[hidden email]]
Envoyé : mardi 11 décembre 2012 19:02
À : [hidden email]
Objet : [ops-users] Re: RE : Re: xbl autocomplete in dynamic table

Hi Julien,

I am not sure to understand what the problem is. The autocomplete works inside repeats, just like other native controls or XBL components. And I don't see a repeat in the source you attached. What is the problem exactly?

Alex

On Wed, Nov 21, 2012 at 12:20 AM, Bittard, Julien <[hidden email]> wrote:

> Yes, I use xforms:repeat to display the lines of my table.
> the user has an "Add" button to add a row to the table.
>
> This button adds a line in the main instance, and this line is shown in the table.
>
> Each line has a field in which I want to use the Autocomplete. But I do not know how to dynamically create a new instance for each of these fields.
>
> I have another problem: the xforms:submission. I declare a xforms:submission for each field which I use Autocomplete.
>
> Attached is an example of implementation of Autocomplete.
>
> Thank You.
>
>
> Julien
> ________________________________________
> De : [hidden email] [[hidden email]] de la part de Erik
> Bruchez [[hidden email]] Date d'envoi : mercredi 21 novembre 2012
> 07:12 À : [hidden email] Objet : [ops-users] Re: xbl autocomplete
> in dynamic table
>
> Julien,
>
> Aren't you using forms:repeat?
>
> -Erik
>
> On Tue, Nov 20, 2012 at 1:41 PM, ricetrac <[hidden email]> wrote:
>> Hello,
>>
>> With orbeon 3.8, I use the XBL component Autocomplete in dynamic
>> mode, in order to provide the user with a list of postcodes following
>> codes already entered.
>> On some forms, I use the Autocomplete on multiple lines of the same table.
>> For each field with Autocomplete, I need an instance to perform the
>> research. (like the example on Wiki
>> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autoc
>> omplete)
>>
>> But sometimes, the user can add rows to the table, so how to do the
>> Autocomplete when I don't know how many instance I need ?
>>
>> thank you.
>>
>> Julien
>>
>>
>>
>> --
>> View this message in context:
>> http://orbeon-forms-ops-users.24843.n4.nabble.com/xbl-autocomplete-in
>> -dynamic-table-tp4656001.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
>>
>
> Think green - keep it on the screen.
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>
>
> --
> 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
>


--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




--
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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: RE : Re: xbl autocomplete in dynamic table

Alessandro  Vernet
Administrator
Hi Julien,

Now I get what you mean. It is possible, but would be more
complicated. You would need to have all the list of cities for each
autocomplete in one instance, and the submission would need to update
just the part of the instance that corresponds to the "current"
autocomplete. This is a bit tricky to program.

How large is your list of cities? If not too large, what about using
the static mode? That would allow you to load it just once, and share
the same (full) list between the autocomplete.

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autocomplete#TOC-Static

And you can most likely mark that instance readonly to save memory
(http://wiki.orbeon.com/forms/doc/developer-guide/xforms-advanced-submissions#TOC-Read-only-XForms-instances-with-xxforms:readonly),
and maybe even cache it if it doesn't change often
(http://wiki.orbeon.com/forms/doc/developer-guide/xforms-advanced-submissions#TOC-Caching-of-XForms-instances-with-xxforms:cache).

Alex

On Tue, Dec 11, 2012 at 3:15 PM, Bittard, Julien
<[hidden email]> wrote:

> Hi Alessandro,
>
> Yes, this is just an example to show how I use the autocomplete XBL.
> So, I don't know how to use it in a repeat, because I need an instance for each Autocomplete, and I do not know in advance the number of Autocomplete.
>
> Is my question is more clear ? :)
>
> Thank You, and sorry for my bad english
>
> Julien
>
> -----Message d'origine-----
> De : Alessandro Vernet [mailto:[hidden email]]
> Envoyé : mardi 11 décembre 2012 19:02
> À : [hidden email]
> Objet : [ops-users] Re: RE : Re: xbl autocomplete in dynamic table
>
> Hi Julien,
>
> I am not sure to understand what the problem is. The autocomplete works inside repeats, just like other native controls or XBL components. And I don't see a repeat in the source you attached. What is the problem exactly?
>
> Alex
>
> On Wed, Nov 21, 2012 at 12:20 AM, Bittard, Julien <[hidden email]> wrote:
>> Yes, I use xforms:repeat to display the lines of my table.
>> the user has an "Add" button to add a row to the table.
>>
>> This button adds a line in the main instance, and this line is shown in the table.
>>
>> Each line has a field in which I want to use the Autocomplete. But I do not know how to dynamically create a new instance for each of these fields.
>>
>> I have another problem: the xforms:submission. I declare a xforms:submission for each field which I use Autocomplete.
>>
>> Attached is an example of implementation of Autocomplete.
>>
>> Thank You.
>>
>>
>> Julien
>> ________________________________________
>> De : [hidden email] [[hidden email]] de la part de Erik
>> Bruchez [[hidden email]] Date d'envoi : mercredi 21 novembre 2012
>> 07:12 À : [hidden email] Objet : [ops-users] Re: xbl autocomplete
>> in dynamic table
>>
>> Julien,
>>
>> Aren't you using forms:repeat?
>>
>> -Erik
>>
>> On Tue, Nov 20, 2012 at 1:41 PM, ricetrac <[hidden email]> wrote:
>>> Hello,
>>>
>>> With orbeon 3.8, I use the XBL component Autocomplete in dynamic
>>> mode, in order to provide the user with a list of postcodes following
>>> codes already entered.
>>> On some forms, I use the Autocomplete on multiple lines of the same table.
>>> For each field with Autocomplete, I need an instance to perform the
>>> research. (like the example on Wiki
>>> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autoc
>>> omplete)
>>>
>>> But sometimes, the user can add rows to the table, so how to do the
>>> Autocomplete when I don't know how many instance I need ?
>>>
>>> thank you.
>>>
>>> Julien
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/xbl-autocomplete-in
>>> -dynamic-table-tp4656001.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
>>>
>>
>> Think green - keep it on the screen.
>>
>> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>>
>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
> Follow Orbeon on Twitter: @orbeon
> Follow me on Twitter: @avernet
>
> Think green - keep it on the screen.
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>
>
> --
> 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
>


--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: RE : Re: xbl autocomplete in dynamic table

ricetrac
Hi Alessandro,

Yes, that's it !

The list of cities is very important because it represents the list of the cities of France, and is updated regularly.

So, I can't use the static mode.

Julien.


-----Message d'origine-----
De : Alessandro Vernet [mailto:[hidden email]]
Envoyé : mercredi 12 décembre 2012 19:09
À : [hidden email]
Objet : [ops-users] Re: RE: Re: RE : Re: xbl autocomplete in dynamic table

Hi Julien,

Now I get what you mean. It is possible, but would be more complicated. You would need to have all the list of cities for each autocomplete in one instance, and the submission would need to update just the part of the instance that corresponds to the "current"
autocomplete. This is a bit tricky to program.

How large is your list of cities? If not too large, what about using the static mode? That would allow you to load it just once, and share the same (full) list between the autocomplete.

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autocomplete#TOC-Static

And you can most likely mark that instance readonly to save memory (http://wiki.orbeon.com/forms/doc/developer-guide/xforms-advanced-submissions#TOC-Read-only-XForms-instances-with-xxforms:readonly),
and maybe even cache it if it doesn't change often (http://wiki.orbeon.com/forms/doc/developer-guide/xforms-advanced-submissions#TOC-Caching-of-XForms-instances-with-xxforms:cache).

Alex

On Tue, Dec 11, 2012 at 3:15 PM, Bittard, Julien <[hidden email]> wrote:

> Hi Alessandro,
>
> Yes, this is just an example to show how I use the autocomplete XBL.
> So, I don't know how to use it in a repeat, because I need an instance for each Autocomplete, and I do not know in advance the number of Autocomplete.
>
> Is my question is more clear ? :)
>
> Thank You, and sorry for my bad english
>
> Julien
>
> -----Message d'origine-----
> De : Alessandro Vernet [mailto:[hidden email]] Envoyé : mardi 11
> décembre 2012 19:02 À : [hidden email] Objet : [ops-users] Re: RE :
> Re: xbl autocomplete in dynamic table
>
> Hi Julien,
>
> I am not sure to understand what the problem is. The autocomplete works inside repeats, just like other native controls or XBL components. And I don't see a repeat in the source you attached. What is the problem exactly?
>
> Alex
>
> On Wed, Nov 21, 2012 at 12:20 AM, Bittard, Julien <[hidden email]> wrote:
>> Yes, I use xforms:repeat to display the lines of my table.
>> the user has an "Add" button to add a row to the table.
>>
>> This button adds a line in the main instance, and this line is shown in the table.
>>
>> Each line has a field in which I want to use the Autocomplete. But I do not know how to dynamically create a new instance for each of these fields.
>>
>> I have another problem: the xforms:submission. I declare a xforms:submission for each field which I use Autocomplete.
>>
>> Attached is an example of implementation of Autocomplete.
>>
>> Thank You.
>>
>>
>> Julien
>> ________________________________________
>> De : [hidden email] [[hidden email]] de la part de Erik
>> Bruchez [[hidden email]] Date d'envoi : mercredi 21 novembre
>> 2012
>> 07:12 À : [hidden email] Objet : [ops-users] Re: xbl autocomplete
>> in dynamic table
>>
>> Julien,
>>
>> Aren't you using forms:repeat?
>>
>> -Erik
>>
>> On Tue, Nov 20, 2012 at 1:41 PM, ricetrac <[hidden email]> wrote:
>>> Hello,
>>>
>>> With orbeon 3.8, I use the XBL component Autocomplete in dynamic
>>> mode, in order to provide the user with a list of postcodes
>>> following codes already entered.
>>> On some forms, I use the Autocomplete on multiple lines of the same table.
>>> For each field with Autocomplete, I need an instance to perform the
>>> research. (like the example on Wiki
>>> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/auto
>>> c
>>> omplete)
>>>
>>> But sometimes, the user can add rows to the table, so how to do the
>>> Autocomplete when I don't know how many instance I need ?
>>>
>>> thank you.
>>>
>>> Julien
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/xbl-autocomplete-i
>>> n -dynamic-table-tp4656001.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
>>>
>>
>> Think green - keep it on the screen.
>>
>> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>>
>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
> Follow Orbeon on Twitter: @orbeon
> Follow me on Twitter: @avernet
>
> Think green - keep it on the screen.
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>
>
> --
> 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
>


--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




--
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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: RE: Re: RE : Re: xbl autocomplete in dynamic table

Alessandro  Vernet
Administrator
Hi Julien,

OK, you can't use xxforms:cache="true" on the list of cities. But you
should still be able to use the static mode. Or at least you can try.
Make sure to mark the instance as readonly (with
xxforms:readonly="true" on the instance and submission that retrieves
it) to save memory, and see how well it works. Don't forget that the
whole list won't be sent to the browser; it will just be kept in the
XForms engine.

Alex

On Wed, Dec 12, 2012 at 10:34 AM, Bittard, Julien
<[hidden email]> wrote:

> Hi Alessandro,
>
> Yes, that's it !
>
> The list of cities is very important because it represents the list of the cities of France, and is updated regularly.
>
> So, I can't use the static mode.
>
> Julien.
>
>
> -----Message d'origine-----
> De : Alessandro Vernet [mailto:[hidden email]]
> Envoyé : mercredi 12 décembre 2012 19:09
> À : [hidden email]
> Objet : [ops-users] Re: RE: Re: RE : Re: xbl autocomplete in dynamic table
>
> Hi Julien,
>
> Now I get what you mean. It is possible, but would be more complicated. You would need to have all the list of cities for each autocomplete in one instance, and the submission would need to update just the part of the instance that corresponds to the "current"
> autocomplete. This is a bit tricky to program.
>
> How large is your list of cities? If not too large, what about using the static mode? That would allow you to load it just once, and share the same (full) list between the autocomplete.
>
> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/autocomplete#TOC-Static
>
> And you can most likely mark that instance readonly to save memory (http://wiki.orbeon.com/forms/doc/developer-guide/xforms-advanced-submissions#TOC-Read-only-XForms-instances-with-xxforms:readonly),
> and maybe even cache it if it doesn't change often (http://wiki.orbeon.com/forms/doc/developer-guide/xforms-advanced-submissions#TOC-Caching-of-XForms-instances-with-xxforms:cache).
>
> Alex
>
> On Tue, Dec 11, 2012 at 3:15 PM, Bittard, Julien <[hidden email]> wrote:
>> Hi Alessandro,
>>
>> Yes, this is just an example to show how I use the autocomplete XBL.
>> So, I don't know how to use it in a repeat, because I need an instance for each Autocomplete, and I do not know in advance the number of Autocomplete.
>>
>> Is my question is more clear ? :)
>>
>> Thank You, and sorry for my bad english
>>
>> Julien
>>
>> -----Message d'origine-----
>> De : Alessandro Vernet [mailto:[hidden email]] Envoyé : mardi 11
>> décembre 2012 19:02 À : [hidden email] Objet : [ops-users] Re: RE :
>> Re: xbl autocomplete in dynamic table
>>
>> Hi Julien,
>>
>> I am not sure to understand what the problem is. The autocomplete works inside repeats, just like other native controls or XBL components. And I don't see a repeat in the source you attached. What is the problem exactly?
>>
>> Alex
>>
>> On Wed, Nov 21, 2012 at 12:20 AM, Bittard, Julien <[hidden email]> wrote:
>>> Yes, I use xforms:repeat to display the lines of my table.
>>> the user has an "Add" button to add a row to the table.
>>>
>>> This button adds a line in the main instance, and this line is shown in the table.
>>>
>>> Each line has a field in which I want to use the Autocomplete. But I do not know how to dynamically create a new instance for each of these fields.
>>>
>>> I have another problem: the xforms:submission. I declare a xforms:submission for each field which I use Autocomplete.
>>>
>>> Attached is an example of implementation of Autocomplete.
>>>
>>> Thank You.
>>>
>>>
>>> Julien
>>> ________________________________________
>>> De : [hidden email] [[hidden email]] de la part de Erik
>>> Bruchez [[hidden email]] Date d'envoi : mercredi 21 novembre
>>> 2012
>>> 07:12 À : [hidden email] Objet : [ops-users] Re: xbl autocomplete
>>> in dynamic table
>>>
>>> Julien,
>>>
>>> Aren't you using forms:repeat?
>>>
>>> -Erik
>>>
>>> On Tue, Nov 20, 2012 at 1:41 PM, ricetrac <[hidden email]> wrote:
>>>> Hello,
>>>>
>>>> With orbeon 3.8, I use the XBL component Autocomplete in dynamic
>>>> mode, in order to provide the user with a list of postcodes
>>>> following codes already entered.
>>>> On some forms, I use the Autocomplete on multiple lines of the same table.
>>>> For each field with Autocomplete, I need an instance to perform the
>>>> research. (like the example on Wiki
>>>> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/auto
>>>> c
>>>> omplete)
>>>>
>>>> But sometimes, the user can add rows to the table, so how to do the
>>>> Autocomplete when I don't know how many instance I need ?
>>>>
>>>> thank you.
>>>>
>>>> Julien
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/xbl-autocomplete-i
>>>> n -dynamic-table-tp4656001.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
>>>>
>>>
>>> Think green - keep it on the screen.
>>>
>>> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> --
>> Follow Orbeon on Twitter: @orbeon
>> Follow me on Twitter: @avernet
>>
>> Think green - keep it on the screen.
>>
>> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>>
>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
> Follow Orbeon on Twitter: @orbeon
> Follow me on Twitter: @avernet
>
> Think green - keep it on the screen.
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>
>
> --
> 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
>


--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet