Professional Web Applications Themes

SPRY Repeating Region with CATEGORIES - Macromedia Exchange Dreamweaver Extensions

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 p 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: ...

  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 p 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. #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" <webforumsusermacromedia.com> escribió en el mensaje de noticias
    news:fps0gd$7h4$1forums.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 p 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

Similar Threads

  1. Replies: 0
    Last Post: February 6th, 03:21 PM
  2. Contribute Repeating Region Glitches
    By dd06 in forum Macromedia Contribute General Discussion
    Replies: 4
    Last Post: November 1st, 07:19 PM
  3. Repeating region error
    By abna in forum Macromedia Contribute General Discussion
    Replies: 3
    Last Post: May 16th, 11:32 PM
  4. Repeating region bug/problem
    By AcidFX in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: September 23rd, 03:30 AM
  5. Repeating Region
    By Victor Corey in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 18th, 05:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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