Nested data Accordion Gallery

Hi,
I'd like to know if anybody has tried to rebuild the adobe
spry gallery (china,egypt,paris) but using a spry menubar or a spry
accordion to navigate from one gallery to another. The gallery
should than be accessed from the submenu items using the nested
data utility. Everything display correctly but it's not possible to
access the right gallery from within the submenus/nesteddata:
var dsGalleries = new
Spry.Data.XMLDataSet("galleries/galleries88.xml",
"galleries/item");
var dsSubitems = new Spry.Data.NestedXMLDataSet(dsGalleries,
"gallery");
var dsGallery = new
Spry.Data.XMLDataSet("galleries/{dsSubitems::@base}{dsSubitems::@file}",
"gallery");
var dsPhotos = new
Spry.Data.XMLDataSet("galleries/{dsSubitems::@base}{dsSubitems::@file}",
"gallery/photos/photo");
<div id="previews">
<div id="example1Region" spry:region="dsGalleries
dsSubitems">
<div id="Acc1" class="Accordion" tabindex="0">
<div class="AccordionPanel" spry:repeat="dsGalleries">
<div
class="AccordionPanelTab">{dsGalleries::@name}</div>
<div class="AccordionPanelContent"
spry:repeatchildren="dsSubitems">
<ul id="nav" >
<li spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
spry:hover="rowHover"
onClick="dsSubitems.setCurrentRowNumber('{ds_RowNumber}');"
spry:select="rowSelected"
spry:selected="selected">{dsSubitems::sitename}{dsSubitems::RowNumber}</li>
<li spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
spry:hover="rowHover"
onClick="dsSubitems.setCurrentRowNumber('{ds_RowNumber}');"
spry:select="rowSelected">{dsSubitems::sitename}{dsSubitems::RowNumber}</li>
</ul></div>
</div>
<script type="text/javascript">
var acc1 = new Spry.Widget.Accordion("Acc1");
</script>
</div>

My problem was that I couldn't bind the var from the outside table to the value of the inside table. It wouldn't process it and iterate through the collection. I solved the problem by using the Tomahawk data list tag.

Similar Messages

  • GetData() from nested data sets

    Hi,
    I've got nested data sets in the form of:
    var ds1 = new Spry.Data.XMLDataSet("products.xml",
    "items/item");
    var dsOptionSets = new Spry.Data.NestedXMLDataSet(ds1,
    "optionsets/optionset");
    var dsOptions = new Spry.Data.NestedXMLDataSet(dsOptionSets,
    "option");
    The application is an e-commerce store and I'm retrofitting
    E-Junkie's form <select> codes to allow the user to select
    "Color" and "Size" by clicking on images pulled from
    items/item/optionsets/optionset/option rather than selecting those
    options from a list. Trouble is, I can't get to the data in the
    nested data set. Help!
    I've tried poking at it thus:
    <img spry:repeat="dsOptions" spry:setrow="dsOptions"
    onclick="var rows = dsOptions.getData(); alert(rows[0].option);"
    spry:if="'{dsOptions::@image}' != 'undefined'"
    src="{dsOptions::@image}" alt="{dsOptions::option}"
    name="{dsOptions::option}" />
    .. but I've yet to get anything but "undefined" from the
    alert. I think it may have something to do with the data sets being
    more complexly nested than I imagine. I'm really looking forward to
    the day when I can refer to Spry data in javascript as easily as I
    can through {spry::tag}s.
    Here's one <item> from my <items>:
    <items>
    <item>
    <id>43522</id>
    <title>Gildan T-Shirts</title>
    <price>16.95</price>
    <images>
    <image description="Gildan T-Shirt in Charcoal
    Grey">images/products/shirts/tshirt_gildan_ss_charcoalgrey.jpg</image>
    </images>
    <optionsets>
    <optionset value="Colors" id="0">
    <option
    image="images/products/shirts/tshirt_gildan_ss_texasorange.jpg">Texas
    Orange</option>
    <option
    image="images/products/shirts/tshirt_gildan_ss_charcoalgrey.jpg">Charcoal</option>
    </optionset>
    <optionset id="1" value="Size">
    <option value="Small"
    image="images/products/sizes/size_s.gif">Small</option>
    <option value="Medium"
    image="images/products/sizes/size_m.gif">Medium</option>
    <option value="Small"
    image="images/products/sizes/size_l.gif">Large</option>
    <option value="Xtra Large"
    image="images/products/sizes/size_xl.gif">Xtra
    Large</option>
    <option value="XXtra Large"
    image="images/products/sizes/size_2x.gif">XXtra
    Large</option>
    </optionset>
    </optionsets>
    </item>
    </items>

    Hi Diana,
    I tried your suggestion of executing ds1.loadData()
    immediately after declaring ds1, but it has not fixed my problem.
    I've changed my image onClick behavior to:
    if (dsOptions.getDataWasLoaded())
    row = dsOptions.getRowCount();
    alert(row);
    On clicking any image, alert shows "0". This tells us that
    dsOptions IS being loaded, right? I'm able to work with the data
    through e.g. {dsOptions::option} tags as always, but for some
    reason I can't get to the data through dsOptions.
    I just tried replacing the onClick behavior above with
    ds1.getRowCount(), and that shows the correct number (6). Then I
    tried with dsOptionSets and got a zero count again.
    FYI, my declaration section is now:
    var ds1 = new Spry.Data.XMLDataSet("products.xml",
    "items/item");
    ds1.loadData(); // theoretically not necessary, but bug in
    this Spry version requires it
    ds1Rows = ds1.getData(true);
    var dsOptionSets = new Spry.Data.NestedXMLDataSet(ds1,
    "optionsets/optionset");
    dsOptionSets.loadData();
    dsOptionSetsRows = dsOptionSets.getData(true);
    var dsOptions = new Spry.Data.NestedXMLDataSet(dsOptionSets,
    "option");
    dsOptions.loadData();
    dsOptionsRows = dsOptions.getData(true);
    I've also just tried replacing the onclick with:
    onclick="if (ds1.getDataWasLoaded()) { ds1Rows=
    ds1.getData(true); dsOptionSetsRows = dsOptionSets.getData(true);
    dsOptionsRows =
    dsOptions.getData(true);alert(dsOptionsRows[0].option);}"
    As before, ds1Rows[0].<property> gives the correct
    result but dsOptionsRows[0].option says "dsOptionsRows[0] has no
    properties".
    Thanks,
    Dylan Oliver

  • Multiple Filtering of Nested Data Set Spry

    Hi,
    I am trying to use multiple filters on a nested data set using Spry but it does not work, no matter how many times I've re-read the code and verified that I'm using the code the right way. What is going on?
    When I use a single non-destructive filter (ie... ds.filter()) on the nested data set, the filter works beautifully. However, when I want to use multiple filters (I use ds.addFilter()), it looks like my filter function (FilterByState) is not being kicked off.
    I linked to the appropriate files, SpryData.js, xpath.js, SpryNestedXMLDataSet.js and SpryDataExtensions.js. These are the latest version, 1.6.1.
    Why will ds.filter work and not ds.addFilter? I haven't written the second filter code yet because this is stopping me from moving forward. Even though, I haven't written that, shouldn't addFilter work too?
    Please help, this is driving me crazy.
    Here is my code:
    <script type="text/javascript">          
         Spry.Utils.addLoadListener(function () {
              if (document.getElementById("stateSelect").selectedIndex != 0) {
                   document.getElementById("stateSelect").selectedIndex = 0;    
              if (document.getElementById("dateSelect").selectedIndex != 0) {
                   document.getElementById("dateSelect").selectedIndex = 0;    
         var dsTopics = new Spry.Data.XMLDataSet("compliance.xml", "compliance/subject", {useCache: false });         
         var dsDocuments = new Spry.Data.NestedXMLDataSet(dsTopics, "doc");
         var dsDates = new Spry.Data.XMLDataSet("compliance.xml", "compliance/subject/doc/date", {useCache: false, subPaths: "@num", distinctOnLoad: true, distinctFieldsOnLoad: ['date'], sortOnLoad: "@num", sortOrderOnLoad:"ascending"});
         dsDates.setColumnType("@num", "number");
         var currentSelection;
         //var FilterByState;
         function showDocuments(currentIndex) {
              dsTopics.setCurrentRowNumber(currentIndex);
              document.getElementById("stateSelect").selectedIndex = 0;
              document.getElementById("dateSelect").selectedIndex = 0;
              dsDocuments.removeAllFilters(true);
         function ToggleFilter(selected, f) {
              chosenState = selected;
              if (selected != "") {
                   alert("something's selected");
                   dsDocuments.addFilter(f, true);
              else {
                   alert("something is NOT selected");
                   dsDocuments.removeFilter(f, true);
              //dsDocuments.applyFilters();
         var chosenState;
         var chosenDate;
         function FilterByState(ds, row, rowNumber) {
              alert("Filtering by state");
              var currentSelection = document.getElementById("stateSelect").options[chosenState];
              if (row["state"].search(currentSelection.value) != -1) {
                   return row;
              else
                   return null;
         function FilterByDate(ds, row, rowNumber) {
              var currentSelectedDate = document.getElementById("dateSelect").options[chosenDate];    
              if (row["date"] == currentSelectedDate)
                   return row;
              else
                   return null;
    </script>
    <div class="articlePage articleContent">
         <h2 class="bodyCopyBold">Compliance Widget</h2>
         <form name="selectForm" action="">
              <div spry:region="dsTopics" id="topicSelector">
                   <label for="topicSelect" class="dataLabel">Topic:</label>
                   <select spry:repeatchildren="dsTopics" class="input" name="topicSelect" id="topicSelect" onchange="showDocuments(this.selectedIndex);">
                        <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{name}" selected="selected">{name}</option>
                        <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{name}">{name}</option>
                   </select>
              </div>
              <label for="stateSelect" class="dataLabel">State:</label>
              <select class="input" name="stateSelect" id="stateSelect" onchange="ToggleFilter(this.selectedIndex, FilterByState);">
                   <option value="" selected="selected">Please Select</option>
                   <option value="All States">All States</option>
                   <option value="AL">Alabama</option>
                   <option value="AK">Alaska</option>
                   <option value="AZ">Arizona</option>
                   <option value="AR">Arkansas</option>
                   <option value="CA">California</option>
                   <option value="CO">Colorado</option>
                   <option value="CT">Connecticut</option>
                   <option value="DE">Delaware</option>
                   <option value="DC">District of Columbia</option>
                   <option value="FL">Florida</option>
                   <option value="GA">Georgia</option>
                   <option value="HI">Hawaii</option>
                   <option value="ID">Idaho</option>
                   <option value="IL">Illinois</option>
                   <option value="IN">Indiana</option>
                   <option value="IA">Iowa</option>
                   <option value="KS">Kansas</option>
                   <option value="KY">Kentucky</option>
                   <option value="LA">Louisiana</option>
                   <option value="ME">Maine</option>
                   <option value="MD">Maryland</option>
                   <option value="MA">Massachusetts</option>
                   <option value="MI">Michigan</option>
                   <option value="MN">Minnesota</option>
                   <option value="MS">Mississippi</option>
                   <option value="MO">Missouri</option>
                   <option value="MT">Montana</option>
                   <option value="NE">Nebraska</option>
                   <option value="NV">Nevada</option>
                   <option value="NH">New Hampshire</option>
                   <option value="NJ">New Jersey</option>
                   <option value="NM">New Mexico</option>
                   <option value="NY">New York</option>
                   <option value="NC">North Carolina</option>
                   <option value="ND">North Dakota</option>
                   <option value="OH">Ohio</option>
                   <option value="OK">Oklahoma</option>
                   <option value="OR">Oregon</option>
                   <option value="PA">Pennsylvania</option>
                   <option value="RI">Rhode Island</option>
                   <option value="SC">South Carolina</option>
                   <option value="SD">South Dakota</option>
                   <option value="TN">Tennessee</option>
                   <option value="TX">Texas</option>
                   <option value="UT">Utah</option>
                   <option value="VT">Vermont</option>
                   <option value="VA">Virginia</option>
                   <option value="WA">Washington</option>
                   <option value="WV">West Virginia</option>
                   <option value="WI">Wisconsin</option>
                   <option value="WY">Wyoming</option>
              </select>
              <div spry:region="dsDates" id="dateSelector">
                   <label for="dateSelect" class="dataLabel">Date:</label>
                   <select class="input" name="dateSelect" id="dateSelect">
                        <option value="" selected="selected">Please Select</option>
                        <option spry:repeat="dsDates" value="{date}">{date}</option>
                   </select>
              </div>         
              <div class="spacer10"></div>
              <div id="documentListing" class="bodyCopy">
                   <ul spry:region="dsDocuments" spry:detailregion="dsTopics" class="list2">
                        <li spry:repeat="dsDocuments">{title}</li>
                   </ul>
              </div>
         </form>
    Here is the xml:
    <?xml version="1.0"?>
    <compliance>
         <subject>
              <name>Agent Termination</name>
              <doc id="91000038">
                   <title>Reminder: Agent Contract Termination Notification</title>
                   <date num="200907">July 2009</date>
                   <state>OR</state>
              </doc>
              <doc id="91000031">
                   <title>Reminder: Agent Contract Termination Notification 2</title>
                   <date num="200807">July 2008</date>
                   <state>OR</state>
              </doc>
              <doc id="91000031">
                   <title>Reminder: Agent Contract Termination Notification 2</title>
                   <date num="201001">January 2010</date>
                   <state>OR</state>
              </doc>
         </subject>
         <subject>    
              <name>Agent Training</name>
              <doc id="91000034">
                   <title>Oregon Agent Retraining</title>
                   <date num="200908">August 2009</date>
                   <state>OR</state>
              </doc>
              <doc id="91000060">
                   <title>Multi-State Corrective Action Plan - Training Courses – BLN Changes</title>
                   <date num="200902">February 2009</date>
                   <state>All States</state>
              </doc>
              <doc id="91000062">
                   <title>Required Training – Change for California Agents</title>
                   <date num="200902">February 2009</date>
                   <state>CA</state>
              </doc>
              <doc id="91000065">
                   <title>Required Training - BCLIC Agents</title>
                   <date num="200902">February 2009</date>
                   <state>NY</state>
              </doc>
              <doc id="91000071">
                   <title>Multi-State Corrective Action Plan - Training Courses – BLN Changes</title>
                   <date num="200901">January 2009</date>
                   <state>All States</state>
              </doc>
              <doc id="91000074">
                   <title>Multi-State Corrective Action Plan - Training Courses – BLN Changes 2</title>
                   <date num="200910">October 2009</date>
                   <state>All States</state>
              </doc>
         </subject>
         <subject>
              <name>Agents Licenses</name>
              <doc id="91000064">
                   <title>Georgia Agent Consent Orders</title>
                   <date num="200902">February 2009</date>
                   <state>GA</state>
              </doc>
              <doc id="91000066">
                   <title>New York State Correction Law</title>
                   <date num="200902">February 2009</date>
                   <state>NY</state>
              </doc>
         </subject>
         <subject>
              <name>DNC</name>
              <doc id="91000063">
                   <title>States Prohibit Unsolicited Calls</title>
                   <date num="200902">February 2009</date>
                   <state>AL, LA, RI, UT</state>
              </doc>
         </subject>
         <subject>
              <name>LTC Partnership</name>
              <doc id="91000056">
                   <title>Alabama Long Term Care and Long Term Care Partnership Compliance</title>
                   <date num="200903">March 2009</date>
                   <state>AL</state>
              </doc>
         </subject>
    </compliance>
    Thanks

    Hi Marlene,
    It isn't working right because you have a bug in your
    onchange attribute for your select:
    <select id="test"
    onChange="ds1.setCurrentRow(this.selectedIndex);">
    <option spry:repeat="ds1"
    id="{ds_RowID}">{@id}</option>
    </select>
    setCurrentRow() takes a rowID not a rowNumber. The
    "selectedIndex" of the select element is the equivalent of a row
    number, so if you want to change the current row by row number then
    use setCurrentRowNumber() instead:
    <select id="test"
    onChange="ds1.setCurrentRowNumber(this.selectedIndex);">
    <option spry:repeat="ds1"
    id="{ds_RowID}">{@id}</option>
    </select>
    After you make that change, you will see that things work as
    expected.
    --== Kin ==--

  • Nesting Data table Components

    Hi ,
    I am having a problem using the new data table component in SJSC 2 EA2. I need to have data table nested inside the colum of a outer datatable. I assign the sourcedata propertiy of the first table to a ObjectArrayData Provider. Then i set one of the columns in the table to group panel and add another data table(Nested ) into it. It shows up fine inthe designer. The Object in the parent tables row has a getter for an array of another classes objects. The problem is if i set the source data property of the nested table using #{currentRow.value['']} to the name of the array object return by the parent object we get a property not found exception when running. Is there any referances as to how to nest data table compoenents in Java Studio Creator 2 EA2
    Thanks
    kusan

    Hi,
    Please post queries related to SJSC 2 EA2 at:
    https://feedbackprograms.sun.com/login.html
    Cheers
    Giri

  • Spry Dataset and Nested Data

    i've 1 xml file, with basicly 3 columns: city, artist, artist
    description.
    i want to show cities and when a city clicked, show the
    artists in that city, and when artist is clicked show artist
    description as details.
    i've tryed everything, but the best i can do... see below.
    any help would be highly appreciated!!!
    erik
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <script language="JavaScript" type="text/javascript"
    src="SpryAssets/xpath.js"></script>
    <script language="JavaScript" type="text/javascript"
    src="SpryAssets/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript"
    src="SpryAssets/SpryNestedXMLDataSet.js"></script>
    <script type="text/javascript">
    // Setup a parent data set:
    // Setup a couple of nested data sets:
    var ds1 = new Spry.Data.XMLDataSet("buitenplaatsen.xml",
    "root/dataroot/buitenplaatsen", { useCache: false });
    var ds2 = new Spry.Data.NestedXMLDataSet(ds1,
    "omschrijving_kunstenaar");
    var ds3 = new Spry.Data.NestedXMLDataSet(ds1,
    "buitenplaats");
    var ds4 = new Spry.Data.NestedXMLDataSet(ds1,
    "naam_kunstenaar");
    </script>
    <div class="liveSample">
    <table width="100%" border="1">
    <tr>
    <th>Buitenplaats</th>
    <th>Kunstenaar</th>
    <th>Omschrijving</th>
    </tr>
    <tr>
    <td valign="top" width="20%" spry:region="ds3">
    <ul>
    <li spry:repeat="ds3" spry:setrow="ds3"
    spry:select="selected"
    spry:hover="hover">{buitenplaats}</li>
    </ul>
    </td>
    <td valign="top" width="20%" spry:region="ds1">
    <ul>
    <li spry:repeat="ds1" spry:setrow="ds1"
    spry:select="selected"
    spry:hover="hover">{naam_kunstenaar}</li>
    </ul>
    </td>
    <td valign="top" width="60%" spry:region="ds2">
    <ul>
    <li
    spry:repeat="ds2">{omschrijving_kunstenaar}</li>
    </ul>
    </td>
    </tr>
    </table>
    </div>
    <body>
    </body>
    </html>

    Hi,
    hereby url:
    http://www.eenlintvollust.nl/test/test_datasets.html
    http://www.eenlintvollust.nl/test/buitenplaatsen.xml
    i want that in the left column i can select the distinct
    city(buitenplaats), than the middel column shows the
    artists(kunstenaar) and when clicked on artist,
    detail(omschrijving) shows up. Thanx for any help!!!

  • Nested Data and Paging

    Hello,
    I hope someone can point me in the right direction. I have been trying to display some nested data which I have been able to do.
    I then wanted to add paging to it which I cannot manage to do. I have read on the forum to not use nested data when paging and to flatten things out as per the example here:
    http://labs.adobe.com/technologies/spry/samples/data_region/NestedXMLDataSample.html
    The problem I have with flattening data out is that things will repeat. I have the following XML structure:
    <?xml version="1.0" encoding="utf-8"?>
    <questions>
                <question>
                            <questionIndex>1</questionIndex>
                            <questionString>This is question 1</questionString>
                            <answers>
                                        <answer>5 mins</answer>
                                        <answer>5-10 mins</answer>
                                        <answer>10-15 mins</answer>
                                        <answer>15-30 mins</answer>
                                        <answer>30+ mins</answer>
                            </answers>
    </question>
    <question>
                            <questionIndex>2</questionIndex>
                            <questionString>This is question 2</questionString>
                            <answers>
                                        <answer>Very Poor</answer>
                                        <answer>Average</answer>
                                        <answer>Excellent</answer>
                            </answers>
                </question>
    </questions>
    Now I wish to display this data in a survey format. So each question can have mutiple headings. This works fine when nested.
    i.e. 1. This is question 1          5 mins    5-10 mins    10-15 mins    15-30 mins    30+ mins
    If this data is flattened out for paging I will end up with
    1. This is question 1          5 mins   
    1. This is question 1          5-10 mins   
    1. This is question 1          10-15 mins   
    1. This is question 1          15-30 mins   
    1. This is question 1          30+ mins
    I don't want the question repeating for every possible answer.
    Taking the donut example if that's easier to follow I would be asking how do I display that information without repeating the ID, NAME or Price Per Unit until it actually changes.
    I simply cannot work out how to do it, any help, pointers etc would be much appreciated.

    hi,
    thanks for the quick response. The following link should give you an idea of what I am trying to get to.
    http://203.134.27.150/sv/test.php
    This displays the questions and is able to page through them.
    It also displays the answers which I am using as headings.
    The problem is I have no idea how to maintain the link between the Question and the answers for that question.
    The questions will change but the answer remains static, I know I haven't done anything to specifically link the two because I really don't have a clue what to do.
    The XML is the same as my first post so for example question 1 it should have the headings
         5 mins       5-10 mins       10-15 mins       15-30 mins       30+ mins
    Question 2 should have the headings
        Very Poor     Average      Excellent
    Is there something I can do to make this happen?
    thank you.

  • Menu Bar using Nested Data Sets?

    Hi all,
    I was wondering if anyone has succesfully implimented a menu
    bar widget using a dataset? I would like to control menu items by
    changing items on the database. Is this possible? I think this may
    be possible with nested data sets but I'm not sure.
    Thanks in advance
    Nelson

    Hi, I know you're not a baby sitter, but would you be willing
    to give me a little guidence as to how you came up with this? Your
    sample seems to work exactly the way I want it.
    Here's what I've done so far... correct me if I'm way off. I
    have a db with 2 tables (menu1 and menu2).
    menu1 = id, title, url, target (this was going to be the top
    level menu items)
    menu2 = id,menu1_id, title, url, target (this was going to be
    the sub menu items)
    I then created a menu_data page where I do two recordsets to
    pickup the items from both tables. I then used the extension
    "Export Record Set as XML" on that page for each of the recordsets.
    S now I have my xml data.
    Now I create a menu page where I try to bring in that data
    into my menu bar. Was I really far off? Can you do a little hand
    holding here? I'm kinda new to this stuff.
    Thanks so much for the help!!!
    Nelson

  • Lightbox nested in Accordion panel is not working.

    I am attempting to nest a lightbox slideshow in an accordion panel with less than desired results. I can get the Lightbox to nest and I can arrange the buttons just fine .However, when I preview it my forward and back buttons appear in the upper left corner and they are all messed up. This is absolutly useless as it destroys the aesthetics. Any insights as to how to fix this (not work around, I can do that...) would be appreciated.
    Here are some screens:
    1) layout is fine. Note the advance arrows on left and right of layout.
    2) Layout seems to be fine in the preview. Thumbnails look good...
    3) The advance arrows are not where I placed them in the layout. They are overlapping in the upper left corner.

    Well, it's not recreating what I did becauseI don't see any images in your example. Did you populate the gallery?
    Anyhow:
    I created an accordion panel.
    The first top panel contains a price list with text only.
    Using the "+" I made a second panel and placed a "slideshow lightbox" widget
    I populated the widget with roughly 100 jpegs compressed to 50%  and edited my arrow keys placing them on the left and right which
    gave the results in the image above.
    This is repeatable on my end.

  • Getting nested data in the datagrid

    If my xml is in the form of multiple nested "nodes?" then how
    can i go about serilizing them and retrieving them properly?
    Example, if my xml looked like this:
    <data>
    <value>value1</value>
    <value>value2</value>
    <value>value3</value>
    </data>
    then displaying the value would be easy to do in my Datagrid,
    i would just say use "myHTTPservice.lastResult.data.value" and it
    would display in the grid but if my data is more complex like this:
    <data>
    <heading>
    <name>name1</name>
    </heading>
    <heading>
    <name>name2</name>
    </heading>
    <heading>
    <name>name\3</name>
    </heading>
    </data>
    How would I in theory go about serializing the say "name"
    into an array my datagrid could use? if i say the dataprovider is
    "myHTTPservice.lastResult.heading.name then i dont get an array,
    how do say i want all the names found in the heading to be put in
    an array? do have to do this manually on result from my HTTPservice
    and if so any pointers would be good! thank you!

    I believe you can do: lastResult..name to make an XMLList of
    the <name> nodes (note 2 dots).
    But if your dataProvider is an XMLList of <heading>
    items, then your DataGridColumn dataField="name" should work since
    to retrieve the name value from any item is: item.name. Peter Ent
    Senior Flex Product Support Engineer
    http://weblogs.macromedia.com/pent

  • Missing Meta data in Gallery JSON file

    I have bought a GEOtagger device and I am using GPS2Aperture to get the meta data into my Aperture library. But when you export the pictures to a Web Gallery Album the meta data is not exported. I found out it is not MobileMe too blame. When you look at the JSON file that is created by the Aperture export function you will see that the meta data is missing! The JSON file is located at: iDisk (iDisk > Web > Sites > _gallery > yourgalleryname), you'll see a list of folders each containing the photos in that particular gallery. And within each folder, there's a file called exif.json, which is a type of JavaScript that holds the EXIF information.
    I looked on the Internet to see if other users have this problem but it seems I am the only one This automatically raises the question: Is it just me or is noby using GeoTags?
    Anybody else has this problem?
    Message was edited by: kwarts

    I am having the same problem whereby Aperture sometimes exports the EXIF information and sometimes it doesn't. The photos are geotagged, and Aperture shows this information. But, sometimes it appears with the info command in a Gallery and sometimes not.
    I've got to check more closely, but it did appear in a gallery for which I allowed downloading. But, it did not appear in a gallery for which I did not allow downloading. I'm not sure, yet, if this is what does it.

  • Nested data help

    Hello all,
      I have two internal tables for PO line items: 1) POitems that contains data like POdoc number, POline number, MATNR, MATDESC, QTTY, AMOUNT Etc. 2) POTexts that contains PO Texts.
    I want to print the data in the form in this format:
    Matnr | Description | QTTY| Amount|   on the first line and then the PO texts for that line item from the next line onwards.
    The PO Texts can be any number of lines depending on what user put in the PO for that line item.
    I tried to nest the tables but I get all the line items printed first and then the PO texts. For example, if I have 5 line items in the PO. The data Matnr | Description | QTTY| Amount|  for all five items is first printed and then the PO texts for all these five line items are printed. I just can't get this to work. Any help is appreciated.
    Thanks.

    The issue is resolved. In the context tab, for the PO text tableI had not put the where conditions for EBELN = IT_EKPO-EBELN and EBELP = IT_EKPO-EBELP. Works perfect now.

  • Issue is De-serializing nested date type using Axiss 1.4

    We are using Axis 1.4 and face issue during deserialization in handling date types. The scenario is explained below. I couldn’t find enough information on net on below and hence asking question to the apache team. Please note when we switch to Axis 2, issue is not seen. Upgrading may not be a simple option for us as of now, and hence I was evaluating possible workarounds or solution if any.
    The XSD contains type “DateofBirthType” which is of type xsd:date
    Child XSDs contains element “DateofBirth” of type “DateOfBirthType”
    When Java client invokes the web service, IllegalArgumentException is seen while de-serializing this “DateOfBirthType” element. If we remove “DateOfBirthType” and map it directly to xsd:date type all works fine.
    We have generated the stub using Axis 1.4 and trying to access the RetrieveIndividualCustInformation  operation through stub, but getting the (IllegalArgumentException) while axis tries to deserialize the response for all the fields having data types as date which is indirectly mapped (nested mapping) as shown below.
    e.g. IndividualInfo-----DateOfBirth(Type—DateOfbirth ---Which is of Type Date)-_you will face illegal argument exception.
    So, when we changed the type to simple date (not nested),then it worked fine. So it confirms that this problem is only for type date which is clearly seen in Axis 1.4 client.
    Please let me know if anyone faces similar/same issue or even know any such issue already persists and there are no possible workarounds and/or fixes for this. In that case we can put up case to migrate to Axis2.
    Please reply ASAP.

    Hi, Shank,
    My guess is that you want:
    , dense_rank () over (order by  tmstp  desc)  AS rn RANK means you'll skip numbers when there's a tie. For example, if 3 rows all have the exact same latest tmstp, all 3 rows would be assigned number 1, RANK would assign 4 to the next row, but DENSE_RANK assigns 2.
    "PARTITION BY x" means that you want a separate series of numbers (starting with 1) for every value of x. If you want just one series of numbers for the whole result set, then don't use a PARTITION BY clause at all. (PARTITION BY is never required.)
    Maybe you wnat to PARTITON BY cd. I can't tell without some sample data, and an explanation of why you want the given results from that data.
    You certainly don't want to PARTITION BY the same expression that you ORDER BY; that just means all rows tie for #1.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Simplify the problem as much as possible.
    Always say which version of Oracle you're using.
    See the forum FAQ {message:id=9360002}
    Edited by: Frank Kulash on Aug 1, 2012 1:20 PM

  • Nested Spry accordion

    Hi,
    I am trying to nest a spry accordion in spry tabbed panels. You can see a simlified version at:
    http://www.artinso.com/astronomy/sprytest.html
    It works well enough in Firefox, Safari etc.
    However in IE I get "object expected" scripting errors and neither tabbed panels nor accordion seem to work.
    What am I missing here? Can you not nest accordions in tabbed panels?
    Regards
    Berthold Hamburger

    Hi,
    Thanks that solved it. Apparently my spry files must be corrupt. Do you know where I can re-download them?
    Now the next problem surfaced with accordion widget. If you go on page:
    http://www.artinso.com/astronomy/mirror-o-matic.html
    and press the Videos tab further down that page, all the accordion panels are open on IE, while they work fine on FF. Is that also file corruption problem?
    Thanks
    Berthold
    Berthold Hamburger - Cellist/Spain
    Email: [email protected]
    http://www.artinso.com
    http://www.astro.artinso.com
    Este mensaje, y los documentos en su caso anexos, se dirigen exclusivamente a su destinatario y pueden contener información reservada y/o CONFIDENCIAL cuyo uso no autorizado o divulgación está prohibido por la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía o por teléfono (+34-981613415) y proceda a su destrucción.
    This message and its attachments are intended exclusively for the addressee and may contain information that is privileged and/or CONFIDENTIAL.  Its non authorized use or disclosure is prohibited by law.  If you are not the intended recipient, please notify us immediately by the same channel as its receipt or by telephone (+34-981613415) and kindly destroy it.

  • Nested Data Set

    I've got a table like this
    ITEM-------------COLOUR
    keyboard--------black
    keyboard--------white
    mouse-----------black
    mouse-----------white
    In Dreamweaver I am using Tom Muck's Nested Repeat Region so
    that the data shows like this
    keyboard
    black
    white
    mouse
    black
    white
    Is there a way to bring in this data, using the Spry Tabbed
    data? The data is exported using Dreamweaver Export Recordset as
    XML. I can bring in the data into Spry but, using the example above
    it creates FOUR tabs with one colour, and I obviously require TWO
    tabs with two colours in!
    I'm pretty new to Spry - although I have done a lot of HTML
    tabbed stuff. Any help would be lapped up!
    Many thanks
    Vanrooj

    Hi Marlene,
    It isn't working right because you have a bug in your
    onchange attribute for your select:
    <select id="test"
    onChange="ds1.setCurrentRow(this.selectedIndex);">
    <option spry:repeat="ds1"
    id="{ds_RowID}">{@id}</option>
    </select>
    setCurrentRow() takes a rowID not a rowNumber. The
    "selectedIndex" of the select element is the equivalent of a row
    number, so if you want to change the current row by row number then
    use setCurrentRowNumber() instead:
    <select id="test"
    onChange="ds1.setCurrentRowNumber(this.selectedIndex);">
    <option spry:repeat="ds1"
    id="{ds_RowID}">{@id}</option>
    </select>
    After you make that change, you will see that things work as
    expected.
    --== Kin ==--

  • JAXB: Marshalling complex nested data structures?

    Hello!
    I am dealing with complex data structures:
    Map< A, Set< B > >
    Set< Map< A, B > >
    Map< A, Map< B, Set< C > > >
    Map< A, Set< Map< B, C > > >
    [and so on](NOTE: In my case it doesn't matters if I use Set<?> or List<?>)
    I wanted to write wrappers for JAXB for these data structures, but I have no idea how.
    My idea was: write XmlAdapter with generics for Map, Set and List, but it failed:
    "[javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.]"
    because I was using LinkedList<T> inside the XmlAdapter (it seems that from the point of view of JAXB,
    LinkedList<T> is same as LinkedList<Object>)
    Any ideas?

    According to sec 4.4 "By default if xml schema component for which java content interface is to be generated is scoped within a complex type then the java content interface should appear nested within the content interface representing the complex type. ".
    So I doubt that worked with beta and you may have to represent this anonymous complex type as a named complex type to avoid the nesting.
    Regards,
    Bhakti

Maybe you are looking for