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

Similar Messages

  • 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 ==--

  • 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

  • Urgent Q-adding elements from two data sets

    How to add two fields from two data sets. in RTF template
    the fields have same names too.

    BIPuser wrote:
    If you are grouping within one data set, then the current-group will only work for an element within that group. For the second one, try to use the absolute path or use as many of '../' to get up as many levels from where you are.
    Thanks!I have defined two different groups.
    I need to add the elements from those two diffrent groups.

  • Displaying data from one data set when a field is null in other data set

    Hi All,
    I have a report where I need to show some columns from one data set(Ex: SsOpportunity) ....... when there is no data in a column (Ex: "Petrofac-ProductLine") in other data set (Ex: SsRevenue) in one table. I have another table which shows data from SsRevenue when there some data in "Petrofac-ProductLine" column.
    The first table is not working for me. Kindly suggest me where to specify the condition.
    Thanks in advance,
    Imtiaz.

    Will it be possible for you to send me a sample xml and RTF?

  • How to use value from one data set in other data set SQL select.

    Hello all, i have one data set, and i need to get value from that data set into other data set. Something like '?' but without input. I will try to explain it with screenshots:

    If both tables come from the same data source, join the two tables in one data set rather than two as shown. If they are from different data sources, use a 'join data set'

  • Header data come from the Data Set, Issue if Data Set is sorted

    Currently in our Data Set, the 1st line contains unique fields for the HEADER. For example "adress of the user site".
    If we are sorting the Data Set, the 1st line value is empty, so the Header Data is empty.
    What would be the best way to solve this problem:
      - Duplicate on all lines, but we want to avoid this solution to reduce the Data Set Size?
      - Does Crystal Reports fields can have a specific "Set-up" to define that they are for the Header so, it's an unique value?
    Remark: Our Data Set is unique, ie: there is no table link because it's not possible from the database we are extracting values.
    Thanks in advance

    Hi Alexandre
    The best way to display only the header i.e. the uniques line would be to write a formula. Write a formula to extract the line for header and drag this formula field to your report.
    Hope it helps!!
    Regards
    Sourashree

  • How to autopopulate a text field with unique data from multiple data sets

    Hi,
    I'm a laboratory manager in charge of a hospital project which will be using pdf forms to send and receive data from our end users across the city. I need help with the last part of our pdf form, specifically with a js that will do a bit of text-field autopopulation magic. This, unfortunately, is a beyond what I have taught myself about pdf js functionality.a
    The problem:
    I need to provide my end users with a text field containing a set of data [A, B, C, D, E, F ...] and the total items in this set [tot#]. The end user needs this information as part of the implementation of this particular laboratory machine.
    The particulars
    When the end user asks for an experiment to be run, we must specify some pieces of data to help them interpret the results. These are constructed as panels which contain discrete data elements.
    For example - One experiment may use two panels, Panel#1 and Panel #2. Panel #1 includes the items A, B, D, E, Panel #2 includes the items A, B, C, F, G.
    Thus, the panels may share some of the same items, but, I only want the unique members to be displayed in the text field. If I make a drop down box or checkboxes with the panels, I want to  be able to select the panels that we ran and (in this example) have the text field display only the unique items among all the panels that were used:
    textfield outpute = A, B, C, D, E, F, G - 7 total.
    Any assistance from the pdf community would be very much appreciated.
    Thanks!

    Thanks for that help.
    I should have made it more apparent that I'm very new to scripting and I'm
    not a programmer by trade. I have a few questions before modifying the code
    you kindly provided.
    1) Where should I embed this script? Within the 'selection change' area of
    my listbox?
    2) Can I replace the term 'arr' with the names of the various items in my
    listbox or should I put 'arr#' as the output value for each term?
    3) Will this script find and display the unique values when a user selects
    multiple items in my listbox?
    4) How does the script know where to output the unique members of the
    combined set?
    I appreciate your patience with me.
    ck

  • Updating div  from two data sets with fading

    Hi,
    I am trying to do the following: I have a main area where I
    want to display an image (main image) of a product. This product
    has associated with it a few detail pictures of that product that
    are displayed next to the main image. I want to let the user click
    on the detail pictures to show the detail picture also in the main
    image div. Normally I would know how to do this, but the problem is
    that I want to do it with a fade .... I found out how to do the
    fading from the example
    http://labs.adobe.com/technologies/spry/samples/data_region/DetailRegionEffectsSample.html
    but I don't know how to make this wok with the detail area
    also linking into the main image div.
    I have made an example that displays a table with 3 columns:
    the first column shows the main product names, the second columns
    the names of the detail pics, and the last column the name of the
    main image pic. Choosing a product in the first column makes the
    second column and 3rd column indeed update, and the 3rd column
    indeed nicely fade. Now I want the user to be able to click the
    second column and then show the text selected there in the 3rd
    column with the proper fade. Any help is welcome!! And happy
    Holidays!
    Here is the source code followed by the XML
    <!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"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>bla</title>
    <script src="../SpryAssets/SpryEffects.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>
    <script type="text/javascript">
    <!--
    var ds1 = new
    Spry.Data.XMLDataSet("../XML/test.xml","products/item");
    var ds2 = new Spry.Data.NestedXMLDataSet(ds1, "pic");
    //-->
    </script>
    <script type="text/javascript">
    <!--
    var gEffectInProgress = null;
    var gPendingSetRowIDRequest = -1;
    function fadeInContent(notificationType, notifier, data)
    if (notificationType != "onPostUpdate")
    return;
    var effect = new
    Spry.Effect.Fade('mainproduct-picture-contain', { to: 100, from: 0,
    duration: 1500, finish: function() {
    gEffectInProgress = null;
    if (gPendingSetRowIDRequest >= 0)
    var id = gPendingSetRowIDRequest;
    gPendingSetRowIDRequest = -1;
    fadeOutContentThenSetRow(id);
    effect.start();
    Spry.Data.Region.addObserver('mainproduct-picture-contain',
    fadeInContent);
    function fadeOutContentThenSetRow(rowID)
    if (gEffectInProgress)
    gPendingSetRowIDRequest = rowID;
    return;
    if (rowID == ds1.getCurrentRowID())
    return;
    gEffectInProgress = new
    Spry.Effect.Fade('mainproduct-picture-contain', { to: 0, from: 100,
    duration: 1000, finish: function() {
    ds1.setCurrentRow(rowID);
    gEffectInProgress.start();
    //-->
    </script>
    </head>
    <body>
    <table border="1">
    <tr>
    <td width="200" height="200">
    <div spry:region="ds1">
    <div spry:repeatchildren="ds1">
    <div onclick="fadeOutContentThenSetRow('{ds_RowID}');
    return false;"/>{name}</div>
    </div>
    </div>
    </td>
    <td width="200">
    <div spry:region="ds2">
    <div spry:repeatchildren="ds2">
    <div onclick="fadeOutContentThenSetRow('{ds_RowID}');
    return false;"/>{pic}</div>
    </div>
    </div>
    </td>
    <td width="200">
    <div id="mainproduct-picture-contain"
    spry:detailregion="ds1">
    <div/>{mainimage}</div>
    </div>
    </td>
    </tr>
    </table>
    </body>
    </html>
    Here is the XML
    <?xml version="1.0" encoding="utf-8"?>
    <products>
    <item>
    <name>name1</name>
    <desc>product 1</desc>
    <pic id="1">product1_detailpic1.jpg</pic>
    <pic id="2">product1_detailpic2.jpg</pic>
    <mainimage>product1_mainpic.jpg</mainimage>
    </item>
    <item>
    <name>name2</name>
    <desc>product 2</desc>
    <pic id="1">product2_detailpic1.jpg</pic>
    <pic id="2">product2_detailpic2.jpg</pic>
    <pic id="3">product2_detailpic3.jpg</pic>
    <pic id="4">product2_detailpic4.jpg</pic>
    <mainimage>product2_mainpic.jpg</mainimage>
    </item>
    </products>

    Can anybody please help with this? I am currently clueless
    and pulling out the last hairs on my head !$%^&*
    thanks a lot in advance

  • How to define a column as html in a nested data set

    http://www.nmprc.state.nm.us/bailbonds2.htm
    If you click on Terms and definitions, and then click on any
    of the collapsible panels you can see that the html code is still
    showing. I got "name" and "desc" defined right, but despite many
    trials, I have yet to figure out how to define the column "answer"
    as html.

    ok, I tried it with the non-minimized files and it did the
    same thing, though I was able to fix it by adding
    {entityEncodeStrings: false });
    var ds1 = new Spry.Data.NestedXMLDataSet(dsAgents,
    "faqblock/agents", {entityEncodeStrings: false });
    it is now a working page
    http://www.nmprc.state.nm.us/bailbonds.htm
    you can see it with the packed files as bailbonds2 (the link
    in the originating post)
    I learn as I go, and thanks to the wonderful Spry team, I
    don't have too many bumps on the head...*smile* you guys are
    great...from the spry product, to the documentation, to the
    samples, and demos, I have never enjoyed using a product more. I
    recommend it to everyone :)

  • Adobe LiveCycle Designer 8.0 exporting data from adobe data set into Excel

    Hello - I am new to this, and have no IS support from my organization, so I am at your mercy.
    I am trying to export the files within my adobe dataset created from Adobe LiveCycle Designer 8.0 into an Excel file. When I do this only 126 files are transferred. There doesn't seem to be any particular cut off or reason. For example last names a-p file entries #1-126, then cuts off at file entry #127 leaving the last half of the alpha q-z. I do have one friend is IS whom on his free time, looked into the program to see if there was a setting or something that only allowed a certain amount of space/files to be exported, but he couldn't find anything. His only thought was that my computer didn't have enough space, but I have 18.9GB of free space on the C:. Any sugesstions and or help is greatly appreciated! Thanks, ALR

    I select all, click the Export Button, and it only gives me the option to save as a CVS Excel type file, sometimes it exports files, other times it wont, when it does, it only does 126 lines in Excel, then won't let me add any more with a second export attempt.

  • 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 ==--

  • Nested XML data set

    Hi there,
    I have a problem with displaying some nested XML data. I've
    tried quite a lot of different approachey to this, but just can't
    get it working properly. So here's the deal:
    I have an XML file (which is dynamically created from a
    servlet) of the form:
    <variations>
    <variation>
    <name>...</name>
    <...>...</...>
    <links>
    <link>
    <type>...</type>
    <name>...</name>
    </link>
    </links>
    </variation>
    </variations>
    On my webpage, I use a Spry tabbed panel with one tab for
    each of the 'variation's in the XML file. Within the tabs I have
    (many) form fields dynamically filled with the values from the XML
    and that all works fine, but I also want to display a table with
    one row corresponding to each 'link'... and that just won't work...
    My latest approach looks something like this:
    <head>
    <script type="text/javascript">
    <!--
    var dsVariations = new
    Spry.Data.XMLDataSet("Servlet?id=1&cmd=getVariations",
    "variations/variation");
    var dsLinks = new
    Spry.Data.XMLDataSet("Servlet?id=0&cmd=getLinks",
    "links/link");
    //-->
    </script>
    </head>
    <body>
    <div id="TabbedPanels1" spry:region="dsVariations">
    <div id="TP1" class="TabbedPanels">
    <ul class="TabbedPanelsTabGroup">
    <li spry:repeat="dsVariations" class="TabbedPanelsTab"
    tabindex="0">{dsVariations::name}</li>
    </ul>
    <div class="TabbedPanelsContentGroup">
    <div spry:repeat="dsVariations"
    class="TabbedPanelsContent">
    // a lot of form stuff
    <table border="1">
    <script type="text/javascript">
    dsLinks.setURL("Servlet?id={dsVariations::id}&cmd=getLinks");
    dsLinks.loadData();
    </script>
    <tr spry:repeat="dsLinks">
    <td>{dsLinks::type}</td>
    <td>{dsLinks::name}</td>
    </tr>
    </tr>
    </table>
    </div>
    </div>
    </body>
    In this, the Servlet call with cmd=getVariations returns the
    whole XML stated above, while the cmd=getLinks will only get the
    corresponding part (everything between <links> and
    </links>).
    The error message I get for this is: processTokens() failed
    to get a data set context!.
    I previously tried to use a NestedXMLDataSet, but couldn't
    get that working either... I'm really kind of stuck by now and
    would appreciate any help.
    Thanks,
    Florian
    PS Thanks a lot for creating Spry: It's great!

    Thanks for your reply, Cristian.
    I'm afraid I couldn't do that since it would cause the whole
    region to be reloaded constantly (because it's being updated each
    time I do the setURL / loadData)... in fact, I tried this before
    and it didn't work.
    But, in fact, I figured that the fact that I could not get it
    running using a NestedXMLDataSet (as I would generally prefer), did
    not actually come down to a problem in the page source code, but
    actually to a problem with the very XML itself:
    I tried to recreate the simple nested data set example (
    http://labs.adobe.com/technologies/spry/samples/data_region/NestedDataSample.html)
    and basically used the same code and an almost identical XML
    structure... yet it doesn't work. The contents of dsFeatures just
    won't be displayed and when I'm inspecting the contents of
    dsFeatures (using Firebug) it shows me that the dataset is empty. I
    just don't get why it works for your example, but not for my
    modified version... I can't see any crucial difference :-s.
    To simplify the problem I deleted most tags from the XML and
    saved it in a static document "variations.xml":
    <variations>
    <variation>
    <name>Var 1</name>
    <features>
    <feature>none</feature>
    <feature>feat1</feature>
    <feature>feat2</feature>
    </features>
    </variation>
    <variation>
    <name>Var 2</name>
    <features>
    <feature>none</feature>
    </features>
    </variation>
    </variations>
    The source of the test page would be:
    <!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"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Nested Data Sample</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">
    var dsVariations = new Spry.Data.XMLDataSet("variations.xml",
    "/variations/variation");
    var dsFeatures = new Spry.Data.NestedXMLDataSet(dsVariations,
    "features/feature");
    </script>
    </head>
    <body>
    <table border="1">
    <tr>
    <th width="30%"
    onclick="dsVariations.sort('name');">dsVariations</th>
    <th width="30%"
    onclick="dsFeatures.sort('link')">dsFeatures</th>
    <th width="30%">dsVariations + dsFeatures</th>
    </tr>
    <tr>
    <td valign="top"><div
    spry:region="dsVariations">
    <ul>
    <li spry:repeat="dsVariations" spry:select="select"
    spry:hover="hover" spry:setrow="dsVariations"> {name}
    </li>
    </ul>
    </div></td>
    <td valign="top"><div spry:region="dsFeatures">
    <ul>
    <li spry:repeat="dsFeatures"> {dsFeatures::feature}
    </li>
    </ul>
    </div></td>
    <td valign="top"><div spry:region="dsVariations
    dsFeatures">
    <ul>
    <li spry:repeat="dsVariations"> {dsVariations::name}
    <ul>
    <li
    spry:repeat="dsFeatures">{dsFeatures::feature}</li>
    </ul>
    </li>
    </ul>
    </div></td>
    </tr>
    </table>
    </body>
    Evidently, I'm missing some essential simple point here...
    Thanks,

  • Having trouble with page refresh after targeting a spry data set from external url

    ok I have a link <a href="als.htm?row=10" (when you click
    on Insurance Agent forms button) on my index page
    http://www.nmprc.state.nm.us/index.htm
    and I finally got it to open the als page (
    http://www.nmprc.state.nm.us/als.htm)
    with row10 open.......Yeah!!!!!!!!!!!!
    but.....
    yep....with me there is always a but....
    after the page loads from clicking on the button on index,
    with row 10 active, it no longer loads correctly by itself.....I go
    to the menu and refresh the page by loading the als.htm url fresh,
    the page no longer loads right.
    var dsAgents = new Spry.Data.XMLDataSet("als.xml",
    "agents/agent/name",
    {sortOnLoad:"name",sortOrderOnLoad:"ascending"});dsAgents.setColumnType("name",
    "html");
    var params = Spry.Utils.getLocationParamsAsObject();
    //Set an observer so that when the data is loaded, we update
    the current row to the url param value
    dsAgents.addObserver({ onPostLoad: function(ds, type) {
    dsAgents.setCurrentRow(params.row); }
    });

    ok, I changed the code to the below and the page functions as
    expected but with 2 errors .......I have no idea how to fix them
    the page is
    http://www.nmprc.state.nm.us/als.htm
    one error is about the code and one is about the menubar
    var params = Spry.Utils.getLocationParamsAsObject();
    //Set an observer so that when the data is loaded, we update
    the current row to the url param value
    var defaultRowNumber = 0;
    var defaultObserver = {};
    defaultObserver.onPostLoad = function(ds, type)
    ds.disableNotifications();
    ds.setCurrentRowNumber(defaultRowNumber);
    ds.enableNotifications();
    // This is a one-shot observer. Let this notification
    complete
    // before removing it from the data set's observer list.
    setTimeout(function(){ ds.removeObserver(defaultObserver); },
    0);
    if (typeof params.row != "undefined")
    defaultRowNumber = parseInt(params.row);
    dsAgents.addObserver(defaultObserver);

  • Displaying random item on Data Set

    Is there a way to display a random item (row) from a data
    set? If not, is it in works for future Spry releases?
    I was trying to put a random picture from my gallery on the
    front page, but I imagine it would be a feature with which many
    other things could be achieved...
    Thanks,
    Tomas

    Hello,
    Seems that a small mistake slept in the code above. The
    random_row should be casted to an integer value first because the
    array of data doesn't have float keys:
    function getRandomRecord(){
    var data = ds1.getData(true);
    var random_row=floor(Math.random()*data.length);
    return data[random_row]['image_field'];
    where ds1 is the dataset containing the files.
    Regards,
    Cristian

Maybe you are looking for

  • Button Help with Captivate 6

    When I am installing a button in captivate 6, I am trying to have that button be linked to a pdf form of another captivate presentation. I click the Open URL option for the action of the button and I click the project that I want to open, but instead

  • Clusterware on only one computer

    It is possible to install oracle clusterware initially only on a computer, and then add the second, or is it mandatory to install on two computers. Using Oracle Clusterware for Oracle 10g. Edited by: 893012 on 24/10/2011 16:13

  • Macbook Air general question

    Ok, guys i have a question which sounds really ridiculous but as a new mac user, i cant stop thinking about it. Recently, i just bought my macbook air 13 inch. Yesterday, my wife was using it and she constantly used her fingers to drum around the are

  • How to make my child windows in the center of the screen?

    Center Screeen Problem..

  • SEHException is thrown when calling PrintOutputController.Export (CRXIR2ES)

    Hi, I am using CRXIR2 server embedded to run reports on a .net desktop application. In one deployed environment, when trying to run one specific report, after calling: crystalByteArray = reportClientDocument.PrintOutputController.Export(CrReportExpor