Using Multiple Spry datasets? - regarding Regions: DetailContainer/DetailRegion

Hi Spry experts:
I've been battling a good battle: Spry datasets and mobile app development. I'm making headway, but as is true in life, there are problems.  I've professor googled for several days related to the current issue without success. I'm throwing in the towel and asking for help.
I have a jquery mobile project I am developing in dreamweaver cs 5.5. I created a Spry HTML dataset to populate 3 lists on separate pages. Each list page is populated by a single html file that contains 3 tables with different ids.
Each table has 3 rows (name, image, desc). Each list is populated using the "name" field from each table. The lists part is all working just fine.
However, when a list item is selected (clicked), it is supposed to take the user to another page (details). There are three details pages--one for each list. These pages are for the item details. Each details page uses the same basic code. Only one page works. If I switch the location of the detail pages in DW, the page that is closest to the list pages is the one that works. I know that I am doing something that is pretty plain to someone who knows Spry, but I'm lost as to what to do next. I've tried multiple fixes and read many Spry documents. A HUGE thanks in advance to anyone who knows the answer. If you need more information, please let me know. 
The expected behavior is that whatever list item is clicked the item should jump to the details page and load the data.
Here is the code for the details pages:
<!--*****************************************************************************-->
<!--Description page for items from list 1-->
<!--*****************************************************************************-->
<div data-role="page" id="details_list1"
data-add-back-btn="true" data-theme="c">
<div data-role="header">
  <h1>Details List 1</h1>
</div>
<div data-role="content">
<h2><span class="DetailContainer">
<span spry:detailregion="dsList1">{dsList1::name}</span></span></h2>
<p class="DetailColumn" align="center">
<span class="DetailContainer">
<span spry:detailregion="dsList1"
class="DetailContainer">{dsList1::image}</span></span></p>
<p class="DetailColumn"><span class="DetailContainer">
<span spry:detailregion="dsList1" class="DetailContainer">
{dsList1::desc}</span></span></p>
<span class="DetailContainer">
<span spry:detailregion="dsList1"
class="DetailContainer"><br />
</span></span><br>
<br>
</div>
<!--*****************************************************************************-->
<!--Description page for List 2-->
<!--*****************************************************************************-->
<div data-role="page" id="description_list2" data-add-back-btn="true" data-theme="e">
<div data-role="header">
  <h1>List 2 Details</h1>
</div>
<div data-role="content">
<h2><span class="DetailContainer">
<span spry:detailregion="dsList2">
{dsList2::sign}</span></span></h2>
<p class="DetailColumn" align="center">
<span class="DetailContainer">
<span spry:detailregion="dsList2" class="DetailContainer">
{dsList2::image}</span></span></p>
<p class="DetailColumn"><span class="DetailContainer">
<span spry:detailregion="dsList2" class="DetailContainer">
{dsList2::desc}</span></span></p>
<span class="DetailContainer"><span spry:detailregion="dsList2" class="DetailContainer"><br />
</span></span><br>
<br>
</div>
<!--*****************************************************************************-->
<!--Description page for List 3-->
<!--*****************************************************************************-->
<div data-role="page" id="description_list3" data-add-back-btn="true" data-theme="e">
<div data-role="header">
  <h1>List 3 Details</h1>
</div>
<div data-role="content">
<h2><span class="DetailContainer">
<span spry:detailregion="dsList3">
{dsList3::sign}</span></span></h2>
<p class="DetailColumn" align="center">
<span class="DetailContainer">
<span spry:detailregion="dsList3" class="DetailContainer">
{dsList3::image}</span></span></p>
<p class="DetailColumn"><span class="DetailContainer">
<span spry:detailregion="dsList3" class="DetailContainer">
{dsList3::desc}</span></span></p>
<span class="DetailContainer"><span spry:detailregion="dsList3" class="DetailContainer"><br />
</span></span><br>
<br>
</div>

I've been battling a good battle: Spry datasets and mobile app development.
Is this an offline app?
If not, then please post a link to your site.
Gramps

Similar Messages

  • How to use multiple Spry Data Sets in one page

    I'm using two spry data sets in one page. When I add the first spry data set to my page everything runs OK, When I add the second spry data set to the page the first data set stops working. Does anyone know what the problem is?
    This is how I have my data sets listed.
    var ds1 = new Spry.Data.HTMLDataSet("/accounts/tower/list.php", "list");
    var ds2 = new Spry.Data.HTMLDataSet("/accounts/tower/numvisits.php", "chart");
    Thanks, let me know if you need more information.

    Good News!
    There is nothing wrong with what you have shown.
    Bad news!
    The problem could be in that part that you have not shown.
    Gramps

  • Spry dataset ie9 display anomaly

    I have a well-formed XML data set with 6 fields per record derived from an Excel spreadsheet which displays exactly as expected in Firefox using a Spry dataset constructed by Dreamweaver CS5..
    In IE9, however, an extra blank field is inserted somewhere around every 1000 fields or so which shifts the remaining fields of that record to the right into the margin area.
    This smells like a rendering bug in IE9, but if anyone has a better idea and a fix, I'd be very happy to hear from them.
    The site is not quite ready to go live, so I can't yet give you a url.

    Curiosity got the better of me.
    I use DW CS5 and this doesn't come with the CSVdataset option, but I found SpryCSVdataset.js on the web and cobbled together appropriate syntax with some difficulty given the paucity of documentation on the subject.  CSV doesn't show up as an option in the bindings panel, so it has to be done by hand.
    The csv file has the headings as the first record.  There is available syntax to override this and to add your own headings in the ds1 declaration.
    In case it helps anyone, the end result was:
    <head>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryCSVDataSet.js" type="text/javascript"></script>
    <script type="text/javascript">
    var ds1 = new Spry.Data.CSVDataSet("CSVdatafile.csv");
    </script>
    </head>
    <div spry:region="ds1" id="memorial">
    <table width="900" border="0">
      <tr class="spryEven">
        <th onClick="ds1.sort('No','toggle')">No</th>
        <th onClick="ds1.sort('Initials','toggle')">Initials</th>
        <th onClick="ds1.sort('Surname','toggle')">Surname</th>
        <th onClick="ds1.sort('Served','toggle')">Served</th>
        <th onClick="ds1.sort('Role','toggle')">Role</th>
    <th onClick="ds1.sort('Where','toggle')">Died</th>
        <th onClick="ds1.sort('When','toggle')">When</th>
      </tr>
      <tr spry:repeat="ds1" spry:odd="spryOdd" spry:even="spryEven">
        <td>{No}</td>
        <td>{Initials}</td>
        <td>{Surname}</td>
        <td>{Served}</td>
        <td>{Role}</td>
        <td>{Where}</td>
        <td>{When}</td>
      </tr>
    </table>
    </div>
    This generates the required display and the csv datafile is only 75k against 250k for the XML, which is a bonus.
    However, the display problem is still there!
    Experimenting by dropping fields and changing table width, it looks to me like there might be a rendering bug related to the width of the fields relative to the available column width (which so far I haven't found any way to control manually) and the number of wrapped fields ahead of the problem point.  Possibly something in the word wrap logic that only appears in IE?
    csv is also much more sensitive to empty fields than XML.

  • Can I link to specific items in a Spry dataset?

    I have a website for a community festival.  I'm using a spry dataset for the festival events http://www.horizonfest.co.uk/programme/events.html .  Visitors click on an event in the left hand column and it appears on the right.
    The festival programme is on this page: http://www.horizonfest.co.uk/programme/sitemap.html .  If you scroll down to for example the evening event on 16 July, it will take you to the events page (first link above).  My clients would like it to open the event for 16 July on the events page (and similarly for any event).  At the moment visitors have to scroll down and open the event themselves.
    I have tried putting an anchor in the 16 July data item.  I am not surprised it doesn't work because the anchor is effectively on a different page.
    So, is there any way of doing this?  I'll be pleased if the answer is definitively 'no'.  I'll be delighted if there is a way of doing this.  If there isn't it may be something to look at in the future.
    I subscribe to creative cloud.
    Thank you
    Chris Sissons

    I'm sorry I don't have an answer for you other than to say it's a grim future for Spry.   Adobe abandoned the framework late last year with no plans for future development with it.
    Nancy O.

  • Link to image in Spry dataset

    With Acces you create the dataset and then just pull the dataentry into the link box and you're done.
    I know hot to make the link open in a new page but how to put the data into the link box using a spry dataset??
    Tried pulling it to the link box but id soent work... any ideas??

    edited my first post and I hope for a reply

  • Spry Dataset Checkbox filters

    I'm using the spry dataset feature with an XML file. The XML is set up like so...
    <item>
         <image>(path to image)</image>
         <title>(short title)</title>
         <desc>(short description of image)</desc>
         <cat>(one of three categories: cars, shirts, graphics)</cat>
    </item>
    Ultimately my goal is to get 3 checkboxes(cars, shirts, graphics) to filter the spry content accordingly.
    What would be my best route for applying the filters?

    You are best off using xpath filtering as seen here http://labs.adobe.com/technologies/spry/samples/data_region/FilterXPath_with_params.html
    I hope this helps.
    Ben

  • Spry Dataset loading question

    I have a general question to any of the experts using the
    Spry dataset. I created a test page that works beautifully, and
    want to use it as a portfolio presentation on my website. It
    automatically created two pages – the dataset, and it’s
    data counterpart. The “data” page is a long scrolling
    tabled page with a link/content/description column – the
    “content” column cells each contain a fairly large
    image that displays on the main dataset page in a
    “window” as each item is selected.
    My question is this – when the dataset calls/displays a
    cell from the data page, is it only loading the image that’s
    being called, or does it need to load all of the images on the data
    page (even though they aren’t displayed until selected)? I
    originally assumed they were being called individually, but when I
    set up a similar page to display my flv and swf animations in, the
    dataset worked - but when the first animation was displayed I could
    hear the audio of all of the other animations that were on the
    original data page at the same time. This leads me to believe that
    there is a definite download/time issue on a page that has several
    fairly weighty images/animations...
    This could be a HUGE shot in the foot if a viewer is browsing
    on a slower connection. My current site uses flash with externally
    linked images and works perfectly:
    http://www.jgigandet.com/.
    Each image loads only when they are called (but it’s a hassle
    to make updates to the portfolio)… is there a way to only
    load each image as it’s called using the spry menu?
    Thanks to anyone who has any insight or advice,
    Jesse

    I'm not feelin the love - is there another place we can ask
    Adobe experts questions about their software? -
    I just want to know how the spry dataset works, and if it's a
    good choice for what I'm trying to do. I'm not looking to critique
    or demean the technology - for the most part it works awesome. I
    just need some clear paramerters of how it works, and if loading a
    long list of large images will crash and burn on a slow
    connection...? Does anyone have any other ways of contacting Adobe
    support directly with questions such as these?
    Thanks - this is my last post of this question to bubble it
    back to the top... promise...

  • Spry Menu Using Nested XML Dataset (Spry 1.6)

    I have a vertical menu with a few items. One of which is
    labeled Products which has submenus. I want to have that submenu
    read from a Nested XML dataset. Using a single dataset for one
    level in a menu is easy enough, but the subenu will have submenus.
    Example Menu:
    Home
    Company
    Products
    |-- Product 1
    |-- Item 1
    |-- Item 2
    |-- Item 3
    |-- Product 2
    |-- Item 1
    |-- Item 2
    |-- Product 3
    |-- Item 1
    |-- Item 2
    |-- Item 3
    |-- Item 4
    |-- Product 4
    |-- Item 1
    |-- Item 2
    |-- Product 5
    I have been looking for an easy way to use the Spry Nested
    XML Dataset to create the Product/Item menu. The number of Products
    may vary as well as the number of Items in each Product submenu
    (also, some Products may not have Items).
    I already have an ASP page that creates the XML data from a
    database.
    Schema follows (XSD ):
    <?xml version="1.0" encoding="utf-8"?>
    <xsd:schema xmlns:xsd="
    http://www.w3.org/2001/XMLSchema">
    <xsd:element name="products">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="product_type"
    maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="type_name" maxOccurs="1"
    type="xsd:string"/>
    <xsd:element name="type_url" maxOccurs="1"
    type="xsd:anyURI"/>
    <xsd:element name="product_name"
    maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="item_name" maxOccurs="1"
    type="xsd:string"/>
    <xsd:element name="item_url" maxOccurs="1"
    type="xsd:anyURI"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    I have been programming for 17 years but am new to Spry. If
    this cannot be done easily with the Spry framework, I'll probably
    wind up splitting the XML data into 2 files (Products and Items)
    then writing a nested loop and call each by row, but then I have to
    find out how Spry Datasets reference XML data. Figuring out how to
    call rows from the XML data shouldn't be so bad, but this method
    just seems like such a hassle for something that should be easy.
    Pseudocode follows:
    j=1
    i=1 to TotalNumberProducts
    display Product i from Products
    ItemsExist=true
    While ItemsExist
    if j > TotalNumberItems | Item j is not for Product then
    ItemsExist=false
    else
    display Item j from Items
    j++
    Wend
    Next
    Thanks in advance for any help or direction!

    That's exactly what I'm trying to do. However, I implemented
    that code and the submenus won't appear. I suspect the submenus
    aren't finding the field names from the Nested XML Dataset. The
    first level of Product menus work great (this is a submenu of the
    overall menu) and correctly identify products that do not have
    submenus, so I know it's picking up the number of records in the
    Nested Dataset correctly - it just won't display the data in the
    next level of menu.
    variable and script declarations:
    <script src="SpryAssets/SpryMenuBar.js"
    type="text/javascript"></script>
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryNestedXMLDataSet.js"
    type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical.css"
    rel="stylesheet" type="text/css">
    <script type="text/javascript">
    <!--
    var productMenuData = new
    Spry.Data.XMLDataSet("products.asp", "products/product_type");
    var productMenuDataItems = new
    Spry.Data.NestedXMLDataSet(productMenuData, "product_name");
    //-->
    </script>
    Code for menus:
    <ul id="NavMenu" class="MenuBarVertical">
    <li><a
    href="index.html">Home</a></li>
    <li><a
    href="company.html">Company</a></li>
    <li><a href="franco_giberti.html">Franco
    Giberti</a></li>
    <li><a class="MenuBarItemSubmenu"
    href="products.asp">Products</a>
    <ul spry:region="productMenuData
    productMenuDataItems">
    <li spry:repeat="productMenuData"><a
    class="MenuBarItemSubmenu" href="{type_url}"
    spry:if="{productMenuDataItems::ds_RowCount} !=
    0">{type_name}</a> <a href="{type_url}"
    spry:if="{productMenuDataItems::ds_RowCount} ==
    0">{type_name}</a>
    <ul spry:if="{productMenuDataItems::ds_RowCount} !=
    0">
    <li spry:repeat="productMenuDataItems"><a
    href="{productMenuDataItems::item_url}">{productMenuDataItems::item_name}</a></li>
    </ul>
    </li>
    </ul>
    </li>
    <li><a href="contact.html">Contact Us</a>
    <!-- end #sidebar1 -->
    </li>
    </ul>
    XML:
    <products
    xsi:noNameSpaceSchemaLocation="products.xsd">

    <product_type>
    <type_name>Pasta Sauce</type_name>
    <type_url>pt_2.asp</type_url>

    <product_name>
    <item_name>Putenesca</item_name>
    <item_url>pn_3.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Arrabiata</item_name>
    <item_url>pn_4.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Pesto</item_name>
    <item_url>pn_5.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Basil and Tomato</item_name>
    <item_url>pn_6.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Bolognese</item_name>
    <item_url>pn_7.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Carboniera</item_name>
    <item_url>pn_8.asp</item_url>
    </product_name>
    </product_type>
    +
    <product_type>
    <type_name>Organic Olive Oil</type_name>
    <type_url>pt_3.asp</type_url>

    <product_name>
    <item_name>Original</item_name>
    <item_url>pn_9.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Basil</item_name>
    <item_url>pn_10.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Herbs</item_name>
    <item_url>pn_11.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Sun Dried Tomato</item_name>
    <item_url>pn_12.asp</item_url>
    </product_name>
    </product_type>
    +
    <product_type>
    <type_name>Organic Spreads</type_name>
    <type_url>pt_4.asp</type_url>

    <product_name>
    <item_name>Putenesca</item_name>
    <item_url>pn_13.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Arrabiata</item_name>
    <item_url>pn_14.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Pesto</item_name>
    <item_url>pn_15.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Basil and Tomato</item_name>
    <item_url>pn_16.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Bolognese</item_name>
    <item_url>pn_17.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Carboniera</item_name>
    <item_url>pn_18.asp</item_url>
    </product_name>
    </product_type>
    +
    <product_type>
    <type_name>Organic Grilled Vegetables</type_name>
    <type_url>pt_5.asp</type_url>

    <product_name>
    <item_name>Putenesca</item_name>
    <item_url>pn_19.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Arrabiata</item_name>
    <item_url>pn_20.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Pesto</item_name>
    <item_url>pn_21.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Basil and Tomato</item_name>
    <item_url>pn_22.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Bolognese</item_name>
    <item_url>pn_23.asp</item_url>
    </product_name>

    <product_name>
    <item_name>Carboniera</item_name>
    <item_url>pn_24.asp</item_url>
    </product_name>
    </product_type>

    <product_type>
    <type_name>Truffle Products</type_name>
    <type_url>pt_6.asp</type_url>
    </product_type>
    </products>
    Any further guidance would be very much appreciated!

  • Filtering A Dataset Using the Spry Validation Select Widget

    Given the code below, how can I filter the rows in the
    ds_BestConvertingByCategory dataset (in the spry:repeat area) that
    match the product category (prodcat_id) selected in the Spry
    Validation select widget?
    // product categories table: columns - prodcat_id,
    prodcat_desc
    var ds_ProductCategories = new
    Spry.Data.XMLDataSet("category_qry2xml.php", "product/category",
    {useCache:false});
    // has prodcat_id column
    var ds_BestConvertingByCategory = new
    Spry.Data.XMLDataSet("product_qry2xml.php", "special/deals[type =
    'Best Converting']", {useCache:false});
    // Spry regions inside a TabbedPanel
    <div class="TabbedPanelsContent">
    <form id="formOffersByCategory" class="frmsprysel"
    name="formOffersByCategory" method="post" action="">
    <strong>Select a Product Category: </strong>
    <span spry:region="dsProductCategories"
    id="spryselectProductByCategory">
    <select spry:repeatchildren="ds_ProductCategories"
    name="offersByCategory" id="offersByCategory"
    onChange="ds_ProductCategories.setCurrentRowNumber(this.selectedIndex);">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    value="{prodcat_id}"
    selected="selected">{prodcat_desc}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    value="{prodcat_id}">{prodcat_desc}</option>
    </select>
    </span>
    </form>
    <div id="offersbycategory"
    spry:region="ds_BestConvertingByCategory"
    class="SpryHiddenRegion">
    <table id="offersByCategoryTbl" width="100%">
    <tr class="colhdr">
    <th width="50%">Offer</th>
    <th width="50%">Code</th>
    </tr>
    <tr spry:repeat="ds_BestConvertingByCategory">
    <td width="50%">{displaytext}</td>
    <td width="50%">{offer_code}</td>
    </tr>
    </table>
    </div>
    </div>
    // Spry validation select widget
    var spryselectProductByCategory = new
    Spry.Widget.ValidationSelect("spryselectProductByCategory");

    Hi flipone01,
    To do this, make your region depend on both
    ds_ProductCategories and ds_BestConvertingByCategory, then use the
    spry:test attribute in conjunction with spry:repeat to weed out
    items that don't have the same product id:
    <div id="offersbycategory"
    spry:region="ds_BestConvertingByCategory ds_ProductCategories"
    <tr spry:repeat="ds_BestConvertingByCategory"
    spry:test="{ds_BestConvertingByCategory::productcat_id} ==
    {ds_ProductCategories::productcat_id}">
    </div>
    Remember that if you make a region depend on more than one
    data set, you need to switch to using fully qualified data
    references as the example above does (using the :: notation). If
    you don't do that the data references default to the first data set
    in the spry:region attribute.
    --== Kin ==--

  • Using an .aspx file for a spry dataset

    I need to pull title data and associated links from this page (
    http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx) on to a separate site where the info is displayed as latest news.
    Whilst locally I can get this to work in I.E.  no data shows in Firefox, Chrome, Safari.
    If I upload the file and supports to the site I get nothing in any browser.
    Question. Can I use an .aspx file as a source for my Spry dataset?
    If so can some one show me an example?
    here's my code:
    <script type="text/javascript">
    var ds2 = new Spry.Data.XMLDataSet("http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx", "rdf:RDF/item");
    ds2.setColumnType("dc:date", "date");
    </script>
    <body>
    <div spry:region="ds2">
      <ul spry:repeatchildren="ds2">
        <li><a href="{ds2::link}">{title}</a></li>
      </ul>
    </div>
    </body

    The problem lies with the fact that XML data cannot normally be transferred from one domain to another, that is unless you are using YQL, see here http://developer.yahoo.com/yql/
    Our friend Arnaut Kazemier (V1) has written a nifty script that combines the features of Spry with that of YQL and can be found here https://github.com/3rd-Eden/Spry-YQL-DataSet. Using the YQLDataSet I have written a test page which can be found here http://pleysier.com.au/rss_example/
    However, I tried to connect to http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx without the result
    Another interesting possibility can be found here http://www.linecraft.com/dreamweaver-get-external-feed/extension.php. I have not tried it yet.
    Gramps

  • My question is in regard to pc to mac migration. How do I migrate information from my pc with specific user account to an existing user account on my mac? I do not want to use multiple mac user accounts.

    My question is in regard to pc to mac migration. How do I migrate information from my pc with specific user account to an existing user account on my mac? I do not want to use multiple mac user accounts.

    https://discussions.apple.com/message/16371308#16371308

  • Can't get around this error after adding second dataset...A scope is required for all aggregates used outside of a data region unless the report contains exactly one dataset

    I added a dataset to an existing report and broke an aggregation.  In the old (i.e. single dataset) report, this expression below worked fine.  I wanted to get a distinct count of the vst_ext_id field when my educated field was like "VTE1*"
    = CountDistinct(IIF(Fields!educated.Value like "VTE1*", Fields!vst_ext_id.Value, Nothing))
    After adding a new dataset, this no longer works and I get the error " A scope is required for all aggregates used outside of a data region unless the report contains exactly one dataset".  Having done some research online, I found that I
    needed to specify my dataset explicitly and I thought this new expression might work, but still no success...
    = CountDistinct(IIF(Fields!educated.Value,"DataSet1" like "VTE12*", Fields!vst_ext_id.Value,"DataSet1", Nothing))
    Am I missing something?  Based on online responses, this explicit dataset naming convention seems to help most people, but it isn't working for me. 
    Thanks in advance!
    Brian

    I found the answer.  Apparently, my expression syntax was off.  This expression does the trick...
    = CountDistinct(IIF(Fields!educated.Value like "VTE12*", Fields!vst_ext_id.Value,Nothing),"DataSet1")
    I just happened upon this particular syntax searching online.  I was trying to specify the dataset name after each .value, but I never got that to work.   This is the only time I have found this particular syntax online. 

  • Using Multiple Different (Accordian/Horz Spry) Menus

    I am using a Horizontal spry menu along the top of my web
    page, and an Accordian down the left side of my web page. I have a
    concern that whether they use the top or left menu, that the menus
    won't match up...meaning...they select Client Engagement from top
    menu and it goes to that page, but the Accordian menu on the left
    does not indicate the correct current page - Current Engagement. Is
    this an unnessary concern? Will they match up. Or is there
    something I need to do (css) to make sure these work together?
    Thanks!
    Blackluca

    I've been battling a good battle: Spry datasets and mobile app development.
    Is this an offline app?
    If not, then please post a link to your site.
    Gramps

  • Spry Dataset XML Import Blank (Where's the problem?)

    I have a weird predicament I've worked myself into and need to figure out a way to clean up this process.
    Background: I am working within the constraints of a content management system that doesn't have full content management capabilities, switching CMS is not an option, server I believe is Tomcat, but JSP/ASP/PHP I think is irrelevant because of the constraints of the CMS.  The current dilemma I have is that they want a list built on a page, 40 items per page.  Very manual process.  Get Excel list --> Move to HTML --> And then playing musical chairs rotating things around.  This last part is the reason I'd like to move it towards XML.  It might not be as pretty, but I'm hoping to eliminate as much tedious coding as I possibly can (code looks bad enough as it is, no where near valid, definitely not accessible for Murray, but out of my control as far as changing at the moment).
    The project also moves around so not everyone has the same software and moving to a database, is not an option.
    Where I'm at: Because there are multiple parties involved the only link between them is the dreaded Micrsoft Office (v. 2007).  So I figured it was worth a shot looking into Excel's XML capabilities.  I created the XSD file for Excel to map from, and let Excel save the file as XML.  Now I have used the XML feature before in DW with datasets using XML files that either I hand-coded or where cached from database queries.  I tried to import it into DW and normally where you preview the data, in this case, nothing is visible.  So my first though is, maybe the XML from Excel doesn't validate, but then it does so that doesn't appear to be the issue. It validates just fine.
    My ideal is that users can save just an Excel file and when these pages are made, the XML can be exported for DW and then if things need to be re-ordered they can easily do it in Excel which everyone has, but the web person can just upload an XML.  Below is the XML and XSD files that were used.  There is only one row of data in the XML file and data is sample data because of proprietary things.  Any help with this problem is greatly appreciated.
    XSD:
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="list">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="list_item" minOccurs="1" maxOccurs="unbounded">
              <xs:complexType>
                <xs:attribute name="name" type="xs:string" use="required" />
                <xs:attribute name="address" type="xs:string" use="required" />
                <xs:attribute name="imagepath" type="xs:string" use="required" />
                <xs:attribute name="product" type="xs:string" use="required" />
                <xs:attribute name="productlink" type="xs:string" use="required" />
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    XML:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <list>
              <list_item name="google" address="http://www.google.com" imagepath="image/path/image.jpg" product="googles" productlink="http://www.somedomain.com/index.html"/>
    </list>

    I do not see a problem with the XML file. In fact I used the data as a file called untitled1.xml in the following
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/xpath.js"></script>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryData.js"></script>
    <script type="text/javascript">
    var ds1 = new Spry.Data.XMLDataSet("untitled1.xml", "list");
    </script>
    </head>
    <body>
    <div spry:region="ds1">
      <table>
        <tr>
          <th spry:sort="list_item">List_item</th>
          <th spry:sort="list_item/@address">List_item/@address</th>
          <th spry:sort="list_item/@imagepath">List_item/@imagepath</th>
          <th spry:sort="list_item/@name">List_item/@name</th>
          <th spry:sort="list_item/@product">List_item/@product</th>
          <th spry:sort="list_item/@productlink">List_item/@productlink</th>
        </tr>
        <tr spry:repeat="ds1">
          <td>{list_item}</td>
          <td>{list_item/@address}</td>
          <td>{list_item/@imagepath}</td>
          <td>{list_item/@name}</td>
          <td>{list_item/@product}</td>
          <td>{list_item/@productlink}</td>
        </tr>
      </table>
    </div>
    </body>
    </html>
    and it works fine.
    However, if I that was confronted with the problem, I would save the Excel file to a CSV and use the Spry CSV Data Set as per http://labs.adobe.com/technologies/spry/samples/data_region/CSV_sample.html
    Gramps

  • Append data rows to spry dataset

    Hello,
    Is thre anyway to append data to already loaded spry dataset?
    so that the rows displayed in spry area will automatically updated.
    ie, my plan is to load and xml to a dataset and again append
    some more data to the dataset on request .
    please help...
    thanks,
    devlosh

    Hi Devlosh,
    Here's a possbile way to accomplish this. You'll need to
    write a few lines of code but the steps are as follows.
    Intro:
    There are currently two datasets types that can be used with
    spry:regions. One is the basic DataSet (uses data that a developer
    is feeding it) and the other is the XMLDataSet (takes its data from
    an XML file, using XPath to filter the rows).
    Steps:
    1. You'll have to use a basic DataSet for displaying the
    records. Instantiate one on the page (don't feed any data to it)
    and then build your markup (spry:region / spry:repeat that uses
    this DataSet). A basic sample on how a simple DataSet is used is
    presented here:
    http://labs.adobe.com/technologies/spry/samples/DataSetSample.html
    2. Use a second XMLDataSet that points to the server files
    that brings chunks of data (5 records at a time):
    "getData.cfm?start=1".
    3. Register a function as an observer for the XMLDataSet for
    the "onPostLoad" event (here's a sample of using observers:
    http://labs.adobe.com/technologies/spry/samples/DataSetObserver.html).
    This function should get the data from the XMLDataSet and attach it
    to the data in the first DataSet. Like this:
    //ds1 is the DataSet, ds2 is the XMLDataSet
    var start = ds1.data.length;
    // get data from XMLDataSet and feed it to the DataSet used
    to display in spry:regions
    for (var idx = 0; idx < ds2.data.length; idx++)
    var row = ds2.data[idx];
    row['ds_RowID'] = (start + idx);
    ds1.dataHash[row['ds_RowID']] = row;
    ds1.data.push(row);
    // call loadData on ds1 to trigger the display of data
    ds1.loadData();
    4. Right after the instantiation of this XMLDataSet, call
    ds2.loadData(); in order to trigger the downloading of the first
    chunk of data
    5. Build a "Get Next Data" button and call a function that
    does:
    ds2.setURL('getData.cfm?start=[NEXT_START]');
    ds2.loadData();
    Hope this helps you,
    Best regards,
    Dragos

Maybe you are looking for