Master-Detail listbox

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

Master-Detail listbox

samuel home
Hi

I am a Orbeon newbie.

May I know how to create a Master-Detail listbox that works like this:

http://www.obout.com/listbox/aspnet_master_detail.aspx

For example, the master listbox will show a list of countries. The detail listbox will show the list of cities that belongs to the country selected in the master listbox.

Thanks!
Sam


--
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: Master-Detail listbox

Erik Bruchez
Administrator
Must the detail list be loaded dynamically, or can all the data fit in
a single (XML) document?

-Erik

On Mon, Sep 27, 2010 at 7:08 AM, samuel home <[hidden email]> wrote:

> Hi
>
> I am a Orbeon newbie.
>
> May I know how to create a Master-Detail listbox that works like this:
>
> http://www.obout.com/listbox/aspnet_master_detail.aspx
>
> For example, the master listbox will show a list of countries. The detail
> listbox will show the list of cities that belongs to the country selected in
> the master listbox.
>
> Thanks!
> Sam
>
>
> --
> 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: Master-Detail listbox

samuel home
Dear Erik

Both are possible. Some can come from XML hard-coded, some we would want to retrieve dynamically.

Please kindly advise.

Thanks!
Sam

On Tue, Sep 28, 2010 at 10:14 AM, Erik Bruchez <[hidden email]> wrote:
Must the detail list be loaded dynamically, or can all the data fit in
a single (XML) document?

-Erik

On Mon, Sep 27, 2010 at 7:08 AM, samuel home <[hidden email]> wrote:
> Hi
>
> I am a Orbeon newbie.
>
> May I know how to create a Master-Detail listbox that works like this:
>
> http://www.obout.com/listbox/aspnet_master_detail.aspx
>
> For example, the master listbox will show a list of countries. The detail
> listbox will show the list of cities that belongs to the country selected in
> the master listbox.
>
> Thanks!
> Sam
>
>
> --
> 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




--
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: Master-Detail listbox

Håvard Nesvold
I would'nt mind knowing a bit more about the hard-coded variant; I've played around with the "autocomplete"-sample/control which comes with the product with looks like a version of this problem, but perhaps there is a clearer example somewhere?

-Håvard


2010/9/28 samuel home <[hidden email]>
Dear Erik

Both are possible. Some can come from XML hard-coded, some we would want to retrieve dynamically.

Please kindly advise.

Thanks!
Sam


On Tue, Sep 28, 2010 at 10:14 AM, Erik Bruchez <[hidden email]> wrote:
Must the detail list be loaded dynamically, or can all the data fit in
a single (XML) document?

-Erik

On Mon, Sep 27, 2010 at 7:08 AM, samuel home <[hidden email]> wrote:
> Hi
>
> I am a Orbeon newbie.
>
> May I know how to create a Master-Detail listbox that works like this:
>
> http://www.obout.com/listbox/aspnet_master_detail.aspx
>
> For example, the master listbox will show a list of countries. The detail
> listbox will show the list of cities that belongs to the country selected in
> the master listbox.
>
> Thanks!
> Sam
>
>
> --
> 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




--
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: Master-Detail listbox

fl.schmitt(ops-users)
In reply to this post by samuel home
Samuel,

> For example, the master listbox will show a list of countries. The
> detail listbox will show the list of cities that belongs to the country
> selected in the master listbox.

i've attached a simple example demonstrating such a combination of two
select1 controls.

It contains three instances: "main" hold the country selected by the
user, "temp" stores the selected continent, and "countries" lists the
continents and countries available.

The first of the select1 controls sets the continent in the temp
instance, the second one gets its nodeset depending on that selection.

If the "countries" instance data should change dynamically, a possible
solution would be to split that instance into two, a "continents" and a
"countries" instance, and use a xforms:submission to populate the
"countries" on a change of the selected 'continent'.

HTH
florian


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

master-detail-listbox.xhtml (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Master-Detail listbox

Håvard Nesvold
Thanks for that Florian, helpful info.

-Håvard


2010/9/30 Florian Schmitt <[hidden email]>
Samuel,

> For example, the master listbox will show a list of countries. The
> detail listbox will show the list of cities that belongs to the country
> selected in the master listbox.

i've attached a simple example demonstrating such a combination of two
select1 controls.

It contains three instances: "main" hold the country selected by the
user, "temp" stores the selected continent, and "countries" lists the
continents and countries available.

The first of the select1 controls sets the continent in the temp
instance, the second one gets its nodeset depending on that selection.

If the "countries" instance data should change dynamically, a possible
solution would be to split that instance into two, a "continents" and a
"countries" instance, and use a xforms:submission to populate the
"countries" on a change of the selected 'continent'.

HTH
florian


--
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: Re: Master-Detail listbox

Erik Bruchez
Administrator
In reply to this post by samuel home
Sam,

We can't create the whole thing for you here, but you can do
everything with itemsets, events, and actions.

For a related example, see:

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/dialog-select

The source code is here:

http://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/xbl/orbeon/dialog-select/dialog-select.xbl

This is built as an XBL component so as to be reusable, and also
because it uses a local model.

-Erik

On Tue, Sep 28, 2010 at 3:11 AM, samuel home <[hidden email]> wrote:

> Dear Erik
> Both are possible. Some can come from XML hard-coded, some we would want to
> retrieve dynamically.
> Please kindly advise.
> Thanks!
> Sam
>
> On Tue, Sep 28, 2010 at 10:14 AM, Erik Bruchez <[hidden email]> wrote:
>>
>> Must the detail list be loaded dynamically, or can all the data fit in
>> a single (XML) document?
>>
>> -Erik
>>
>> On Mon, Sep 27, 2010 at 7:08 AM, samuel home <[hidden email]>
>> wrote:
>> > Hi
>> >
>> > I am a Orbeon newbie.
>> >
>> > May I know how to create a Master-Detail listbox that works like this:
>> >
>> > http://www.obout.com/listbox/aspnet_master_detail.aspx
>> >
>> > For example, the master listbox will show a list of countries. The
>> > detail
>> > listbox will show the list of cities that belongs to the country
>> > selected in
>> > the master listbox.
>> >
>> > Thanks!
>> > Sam
>> >
>> >
>> > --
>> > 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
>>
>
>
>
> --
> 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