04.02.2013 Views

Spry User Guide - Support - Adobe

Spry User Guide - Support - Adobe

Spry User Guide - Support - Adobe

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

balsamic vinegar<br />

<br />

<br />

sugar<br />

<br />

<br />

salt<br />

<br />

<br />

pepper<br />

<br />

<br />

parsley<br />

<br />

<br />

basil<br />

<br />

<br />

<br />

SPRY<br />

<strong>User</strong> <strong>Guide</strong><br />

When you are familiar with the structure of your XML code, you can create two data sets to use to display data in<br />

master and detail dynamic regions. In the following example, a master dynamic region displays data from the dsSpecials<br />

data set, and a detail dynamic region displays data from the dsIngredients data set:<br />

<br />

. . .<br />

<br />

<br />

<br />

<br />

var dsSpecials = new <strong>Spry</strong>.Data.XMLDataSet("data/cafetownsend.xml",<br />

"specials/menu_item");<br />

var dsIngredients = new <strong>Spry</strong>.Data.XMLDataSet("data/{dsSpecials::url}",<br />

"item/ingredients/ingredient");<br />

<br />

<br />

. . .<br />

<br />

<br />

<br />

<br />

<br />

Item<br />

Description<br />

Price<br />

<br />

<br />

106

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!