SPRY Repeating Region with CATEGORIES

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default SPRY Repeating Region with CATEGORIES

    I have a seemingly simple but apparently complex issue with the Spry DataSet
    and Spry repeating region use that my many hours of research has not yielded an
    answer to, or even if it's possible. I want to parse the XML dataset to have
    a categorization of data like so:

    Office Location
    ::Employee
    ::Employee
    Office Location
    ::Employee
    Office Location
    ::Employee
    ::Employee
    ::Employee
    ...

    Using the XML path, I can list all the locations (having special formatting
    for the "Location Banner", or I can list all the employees, but not BOTH using
    the DataStore.

    Here is an example of my XML:

    <?xml version="1.0" encoding="UTF-8"?>
    <Company>
    <Location>
    <LocName>Location 1</LocName>
    <BannerImg>loc1.jpg</BannerImg>
    <Employee>
    <Image>EMP1</Image>
    <Name>Jane Doe</Name>
    <Bio>No Bio </Bio>
    </Employee>
    <Employee>
    <Image>EMP43</Image>
    <Name>John Smith</Name>
    <Bio>Worked for Company X since 1980</Bio>
    </Employee>
    </Location>

    <Location>
    <BannerImg>Location9.jpg</BannerImg>
    <LocName>Springfield Office</LocName>
    <Employee>
    <Image>Emp76</Image>>
    <Name>John Public</Name>
    <Bio>Worked for us since 1998</Bio>
    </Employee>
    </Location>
    </Company>
    ###########

    Without Hard-coding each location in and having a different DS for each, how
    do I make that look like THIS:

    Location 1 [PHOTO]
    [Photo] Jane Doe: No Bio
    [Photo] John Smith: Worked for Company X since 1980
    Springfield Office [PHOTO]
    [Photo] John Public:Worked for us since 1998

    ???

    This might be simple, or it might be an additional level of programming, or
    even using a different parsing tool, but I really want to have this work.
    Thanks for your help.

    -Travis

    OssipMIS Guest

  2. Similar Questions and Discussions

    1. Contribute Repeating Region Glitches
      I'm having a problem with Contribute Repeating Regions that I've not found dicussed/documented anywhere. This is NOT the problem documented...
    2. Repeating region error
      When using the up and down arrows to move an element of a repeating region, I get the following error in Dreamweaver: While executing onLoad in...
    3. Repeating Region Won't Repeat--Permissions?
      I'm having a problem with a repeating region that refuses to repeat. When I try to click the "+" button in the repeating region via Contribute, I...
    4. Repeating region bug/problem
      I have a repeating region right aligned within a cell that is on the right side of the page (the table is 100% width). Upon going into edit mode I...
    5. Repeating Region
      Hello all, I have a repeating region for a navigation bar. (Link | Link | Link) The repeating region looks like this: <REPEAT BEGIN><EDITABLE...
  3. #2

    Default Re: SPRY Repeating Region with CATEGORIES

    Hi Travis:
    I think nested DataSets is what you are looking for:
    [url]http://labs.adobe.com/technologies/spry/samples/data_region/NestedXMLDataSample.html#UsingNestedDataSets[/url]

    HTH,
    Andres Cayon
    Spain Adobe Dreamweaver User Group
    [url]http://www.dwug.es[/url]
    ----------------------


    "OssipMIS" <webforumsuser@macromedia.com> escribió en el mensaje de noticias
    news:fps0gd$7h4$1@forums.macromedia.com...
    >I have a seemingly simple but apparently complex issue with the Spry
    >DataSet
    > and Spry repeating region use that my many hours of research has not
    > yielded an
    > answer to, or even if it's possible. I want to parse the XML dataset to
    > have
    > a categorization of data like so:
    >
    > Office Location
    > ::Employee
    > ::Employee
    > Office Location
    > ::Employee
    > Office Location
    > ::Employee
    > ::Employee
    > ::Employee
    > ...
    >
    > Using the XML path, I can list all the locations (having special
    > formatting
    > for the "Location Banner", or I can list all the employees, but not BOTH
    > using
    > the DataStore.
    >
    > Here is an example of my XML:
    >
    > <?xml version="1.0" encoding="UTF-8"?>
    > <Company>
    > <Location>
    > <LocName>Location 1</LocName>
    > <BannerImg>loc1.jpg</BannerImg>
    > <Employee>
    > <Image>EMP1</Image>
    > <Name>Jane Doe</Name>
    > <Bio>No Bio </Bio>
    > </Employee>
    > <Employee>
    > <Image>EMP43</Image>
    > <Name>John Smith</Name>
    > <Bio>Worked for Company X since 1980</Bio>
    > </Employee>
    > </Location>
    >
    > <Location>
    > <BannerImg>Location9.jpg</BannerImg>
    > <LocName>Springfield Office</LocName>
    > <Employee>
    > <Image>Emp76</Image>>
    > <Name>John Public</Name>
    > <Bio>Worked for us since 1998</Bio>
    > </Employee>
    > </Location>
    > </Company>
    > ###########
    >
    > Without Hard-coding each location in and having a different DS for each,
    > how
    > do I make that look like THIS:
    >
    > Location 1 [PHOTO]
    > [Photo] Jane Doe: No Bio
    > [Photo] John Smith: Worked for Company X since 1980
    > Springfield Office [PHOTO]
    > [Photo] John Public:Worked for us since 1998
    >
    > ???
    >
    > This might be simple, or it might be an additional level of programming,
    > or
    > even using a different parsing tool, but I really want to have this work.
    > Thanks for your help.
    >
    > -Travis
    >
    Andres Cayon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139