Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
OssipMIS #1
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
-
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... -
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... -
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... -
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... -
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... -
Andres Cayon #2
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



Reply With Quote

