Hi Justin,
Here I paste your code fixed :)
<canvas debug="true">
<dataset name="majorsDS">
<majors>
<major name="Accounting">
<date>11/06/1975</date>
</major>
<major name="Math">
<date>10/06/1975</date>
<date>44/06/1975</date>
<date>11/07/1975</date>
</major>
<major name="Construction">
<date>12/06/1975</date>
<date>11/06/1975</date>
<date>15/06/1975</date>
<date>11/06/1975</date>
</major>
<major name="Marketing">
<date>12/06/1975</date>
<date>11/06/1975</date>
<date>11/06/1975</date>
<date>11/06/1975</date>
</major>
</majors>
</dataset>
<datapointer name="majordp"/>
<window width="80%" height="95%" align="center" allowdrag="false" y="10">
<wrappinglayout axis="x" xspacing="5" yspacing="5" xinset="5"
yinset="5"/>
<list height="98%" width="200">
<textlistitem id="majorList" text="$path{'@name'}">
<handler name="onselect">
//majordp.setFromPointer(this.datapath);
minorList.datapath.setAttribute('p', this.datapath.p);
</handler>
<datapath xpath="majorsDS:/majors/major"/>
</textlistitem>
</list>
<list height="98%" width="200" id="minorList">
<datapath />
<textlistitem text="$path{'text()'}">
<datapath xpath="*"/>
</textlistitem>
</list>
</window>
</canvas>
On Mon, Apr 7, 2008 at 5:34 PM, Justin Stanczak <[EMAIL PROTECTED]> wrote:
> Spanish? Is you grammar that bad, wow. No Spanish, sorry.
>
> Here's my code, but it's a mess. I was trying stuff.
>
> <canvas debug="true">
>
> <dataset name="majors" src="http:data.jsp" request="true" type="http"/>
> <datapointer name="majordp"/>
>
> <window width="80%" height="95%" align="center" allowdrag="false" y="10">
> <datapath xpath="majors:/majors/major" name="m"/>
> <wrappinglayout axis="x" xspacing="5" yspacing="5" xinset="5" yinset="5"/>
>
> <list height="98%" width="200">
> <textlistitem id="majorList" text="$path{'@name'}">
> <handler name="onselect">
> Debug.write("select");
> majordp.setFromPointer(this.datapath);
> </handler>
> <datapath xpath="majors:/majors/major" replication="lazy"/>
> </textlistitem>
> </list>
>
> <list height="98%" width="200">
> <textlistitem>
> <handler name="ondata" reference="majordp">
> this.datapath.setFromPointer(majordp);
> </handler>
> </textlistitem>
> </list>
>
> </window>
> </canvas>
>
> Here's the jsp content:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <majors>
> <major name="Accounting">
> <date>11/06/1975</date>
> </major>
> <major name="Math">
> <date>11/06/1975</date>
> <date>44/06/1975</date>
> <date>11/07/1975</date>
> </major>
> <major name="Construction">
> <date>11/06/1975</date>
>
> <date>11/06/1975</date>
> <date>15/06/1975</date>
> <date>11/06/1975</date>
> </major>
> <major name="Marketing">
> <date>11/06/1975</date>
> <date>11/06/1975</date>
> <date>11/06/1975</date>
> <date>11/06/1975</date>
> </major>
>
> </majors>
>
>
>
> On Mon, Apr 7, 2008 at 6:19 PM, Camilo Aguilar <[EMAIL PROTECTED]>
> wrote:
> > do you speak spanish ?
> > can you send me your lzx code please ?
> >
> >
> > On Mon, Apr 7, 2008 at 5:15 PM, Justin Stanczak <[EMAIL PROTECTED]>
> wrote:
> >
> > > Ya, I've read that. I really have. From those example here's what I
> > > was putting together. I have the first list set a datapath to list all
> > > the majors. Then an onclick handler to set a pointer for the second
> > > list that points to the selected major, correct? There I'm stuck. How
> > > do I set the datapath for the next list to show all the dates under a
> > > major. The pointer would just point to the parent of the date nodes.
> > > From what I can see that chapter doesn't show that. If it does let me
> > > know I'm just missing something. I'm new so I'm very happy to learn.
> > >
> > >
> > >
> > >
> > > On Mon, Apr 7, 2008 at 5:16 PM, Camilo Aguilar <
> [EMAIL PROTECTED]>
> > wrote:
> > > > Read Chapter 40. Building Data-Driven Applications of Openlaszlo
> > Developers
> > > > Guide
> > > >
> > > >
> http://www.openlaszlo.org/lps4/docs/developers/data_app.html#d0e101195
> > > >
> > > > there, you can found good examples.
> > > >
> > > >
> > > >
> > > > On Mon, Apr 7, 2008 at 3:53 PM, Justin Stanczak <[EMAIL PROTECTED]>
> > wrote:
> > > > > I don't understand how to use a datapointer to sync two list, but
> have
> > > > > the second list display the multiple child nodes of that first
> lists
> > > > > selected node. Or if there is a better method to do this? Here's
> an
> > > > > example http://www.cars.com/go/index.jsp. You see how they select
> a
> > > > > make and it loads up the models. It's pretty basic stuff but I
> don't
> > > > > understand how to do it in Laszlo. I'm very new to Laszlo.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Mon, Apr 7, 2008 at 3:53 PM, Camilo Aguilar
> > <[EMAIL PROTECTED]>
> > > > wrote:
> > > > > > hugh ? what is your question ?
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Mon, Apr 7, 2008 at 12:57 AM, Justin Stanczak
> > <[EMAIL PROTECTED]>
> > > > wrote:
> > > > > > > I'm attempting to create two lists that work off of one
> dataset. I
> > > > have a
> > > > > > list with majors that displays in the first list and a second
> list
> > the
> > > > > > displays dates for the selected major in the first list. Similar
> > when
> > > > you
> > > > > > select a make the model for a car.
> > > > > > >
> > > > > > > Data would look like this:
> > > > > > >
> > > > > > > <major>
> > > > > > > <date></date>
> > > > > > > <date></date>
> > > > > > > <date></date>
> > > > > > > </major>
> > > > > > > <major>
> > > > > > > <date></date>
> > > > > > > </major>
> > > > > > > <major>
> > > > > > > <date></date>
> > > > > > > <date></date>
> > > > > > > </major>
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > "All that is necessary for the triumph of evil is that good
> men do
> > > > > > nothing." - Edmund Burke
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > "All that is necessary for the triumph of evil is that good men do
> > > > > nothing." - Edmund Burke
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > >
> > >
> > > "All that is necessary for the triumph of evil is that good men do
> > > nothing." - Edmund Burke
> > >
> >
> >
>
>
>
> --
> "All that is necessary for the triumph of evil is that good men do
> nothing." - Edmund Burke
>