Advanced data selection in Spry datasets

There seems to have a bug in the final release of DW CS4 that
wasn't there in the Beta version: when we create an html Spry
dataset and we check the "Advanced data selection" option, DW
automatically adds a row with column0, column1, and so on. This row
doesn't do anything good, and if we click next, checking or
unchecking the "Use first row as header" option doesn't change
anything...
In fact, if we don't check the "Advanced data selection" in
the first step, checking or unchecking the "Use first row as
header" on the second step toggles the column0... behavior... So,
it's like if there was a bug that if we use advanced, it always
acts as if the "Use first row as header" was always unchecked...
adding an unessesary row to our data...
For now, the only way I could go around that, was to not use
the "Advanced data selection", and in the last step, clicking Set
Up... and removing the columns that I don't want...

Loveanie wrote:
> There seems to have a bug in the final release of DW CS4
that wasn't there in
> the Beta version: when we create an html Spry dataset
and we check the
> "Advanced data selection" option, DW automatically adds
a row with column0,
> column1, and so on. This row doesn't do anything good
It identifies the column. In Step 2, you can select each
column and
change its name in the Column Name field at the top of the
wizard.
Without a column name, the Spry data set has no way of
identifying the
data you want to display.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • 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

  • Results (totals) row in spry datasets

    Hi everybody.
    I spent a lot of time on the problem how to get row with
    result of the spry dataset.
    And I found it:
    Javascript code:
    // This is our dataset
    var dsSpecials = new Spry.Data.JSONDataSet("paysdata.cfm",
    {path:"rows"});
    // This is dataset for results
    var dsSums = new Spry.Data.JSONDataSet();
    // Loading empty array to results
    dsSums.loadDataIntoDataSet("[]");
    var myObserver = new Object;
    // Calculate function will run each time when data will
    change
    myObserver.onDataChanged = function(dataSet, data) {
    calcTotals(); }
    dsSpecials.addObserver(myObserver);
    var calcTotals = function() {
    var tsums = [];
    var rows = dsSpecials.data;
    // ... here you calculate what you need...
    dsSums.loadDataIntoDataSet(Spry.Utils.serializeObject(tsums));
    And now, the final part - HTML code:
    <div spry:region="dsSpecials dsSums"
    class="SpryHiddenRegion">
    <table>
    <tr spry:repeat="dsSpecials">
    </tr>
    <tr spry:repeat="dsSums">
    </tr>
    </table>
    </div>

    Loveanie wrote:
    > There seems to have a bug in the final release of DW CS4
    that wasn't there in
    > the Beta version: when we create an html Spry dataset
    and we check the
    > "Advanced data selection" option, DW automatically adds
    a row with column0,
    > column1, and so on. This row doesn't do anything good
    It identifies the column. In Step 2, you can select each
    column and
    change its name in the Column Name field at the top of the
    wizard.
    Without a column name, the Spry data set has no way of
    identifying the
    data you want to display.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Advance payment/No data selected????

    Hi,
    I am trying to print advance payment invoice, but aftre creating all the docs, I am prevented to print the transaction, as the system gives the message'NO DATA SELECTED", when I populate the Sales Doc Number.
    Please give your input and assist me on this issue.Ever gratefull.
    AN

    Hi AN
    As you want to print the advance payment invoice then first of all check in the output type the Transmission Medium you maintained and the Payer / sold to party (SP)  you assigned (PY)
    Secondly also check wheather you have maintained condition record or not
    If the system is giving message as NO DATA SELECTED , then check the output type details
    Go to VF02->header data->output type  and  there click on the tab  Determine Analysis , so that you can know where the problem is
    In the same way Go to VA02->header data->output type  and  there click on the tab  Determine Analysis , so that you can know where the problem is
    For further information kindly check the configuration of the downpayment
    [https://forums.sdn.sap.com/post!reply.jspa?messageID=5084683&useDraft=true]
    Regards
    Srinath

  • Advanced Data Grid - Multi-Select

    Good Day,
    I am using an Advanced Data Grid to display data to the user.  The user needs to be able to select multiple rows, and not necessarily in order.  This is all fine, however, they don't want to have to hold the CTRL or SHIFT keys when selecting, and would like the mouse to act as a select/deselect for the row.
    I know that I will have to extend the ADG class to handle this, but I was hoping that someone else may have done this, or has some guidance.  I have never extended a class before, so I am not sure what all steps i will need to take.
    Thanks!
    Rob

    sortExpertMode property
    public var sortExpertMode:Boolean
    By default, the sortExpertMode property is set to false,
    which means you click in the header area of a column to sort the
    rows of the AdvancedDataGrid control by that column. You then click
    in the multiple column sort area of the header to sort by
    additional columns. If you set the sortExpertMode property to true,
    you use the Control key to select every column after the first
    column to perform sort.
    The default value is false.
    So, this property simply changes HOW you do multi-column
    sorting.
    I submitted an enhancement request:
    http://bugs.adobe.com/jira/browse/FLEXDMV-1429

  • 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

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

  • How do I use a shared data source in my dataset in this new UI?

    I'm new to SSRS 2012 and am having trouble with the UI. All of my experience is with SSRS 2005, and this is quite different.
    So I created a shared data source in my new project. Next I added a report (non-wizard, I'm going for hand-crafted). Looking at the UI I have a report data window on the left side of VS 2010, and in it are a couple of menus and a tree navigation pane. If I
    select the new menu, and then dataset (since I want to add the data to my report first) I get the Dataset property window. After selecting 'Use a dataset embedded in my report' a new panel is displayed where I can set up a new dataset. But from what I see
    here all I can do is create a new data source, but I want to use my shared datasource. I would think it would just be in the data source drop down presented, but that is empty (I had an image that illustrated all this but I keep being told I need to 'verify
    my account', and after doing so I'm still getting that error... oh well, I don't have enough time to keep verifying my account here).
    In 2005 I could choose a shared datasource, and it doesn't seem logical that this functionality would be removed. What am I missing here?
    Any help would be much appreciated.

    First right-click on your reports' Data Sources and add a reference to the Shared Data Source, by selecting "Use Shared Data Source Reference" in the "Add Data Source" dialog.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Dw cs5.5 + Phonegap + spry dataset xml and images links broken

    Hi all,
    I'm building an app using DW CS5.5 and Phonegap.
    This is what I've done:
    created pages using the starter template (local)
    I created a php page that run a query on a mysql database and output an xml file
    I created a spry dataset using the php (see 2) file as data file
    It works locally and on-line on my website.
    But if I package an app using the android sdk from dw CS5.5 I have problems: all images are all broken. It seems that the link to image is not correct.
    In fact, all images are not using absolute path (http://www.mysite.com/images/...) but are set this way: /images/....
    So, my question is: have I to specify all images sources using absolute paths to make it work when packaged?
    TIA for any reply
    tony

    Hi Gramps,
    I just solved the problem with image paths (I made all src paths absolute).
    There is only one problem left: I opened another discussion: http://goo.gl/ysNDH
    But here the link you (correctly) need to trobleshoot the problem): http://www.camar.it/newsxml
    It should work on desktop browsers but it fails when I pack the app for android and install it on an android smartphone: I get "error loading page" when clicking on any details link (the button label is: DETTAGLI) on the news page.
    Tony

  • How can i hide a portion of the text inside a spry dataset "stackedcolumn"?

    Hi all
    I have a spry dataset set up reading a .xml file for the price/name/description/etc. I want to only show some of the text (a certain number of characters) at the start then give the visitor the option of clicking a toggle button to see more of the description and help with size of the pages.  How do i do that exactly?
    I know I have to probably implement jquery toggle but how does it work with a spry?
    here is the code as it stands.
       <div spry:region="catalog" class="SpotlightAndStacked">
          <div spry:repeat="catalog" class="SpotlightAndStackedRow">
            <div class="SpotlightContainer">
              <div class="SpotlightColumn"><a href="_images/catalog/Art/{Picture_File}" title="{Headline}"><img src="_images/catalog/thumbs/Art/{Picture_File}"></a></div>
            </div>
            <div class="StackedContainer">
              <div class="StackedColumn"> {Item_Last_Name}, {Item_First_Name}</div>
              <div class="StackedColumn"> {Item_Code_Number}</div>
              <div class="StackedColumn"> {Headline}</div>
              <div class="StackedColumn"> {Complete_Description}</div>
              <div class="StackedColumn"> {Item_Code_Number}</div>
              <div class="StackedColumn"> <strong>Retail price: {Retail_Price}</strong></div>
            </div>
            <br style="clear:both; line-height: 0px" />
          </div>
        </div>
    Thanks in Advance

    There are many options for editing objects/layers in the time line. You can split tracks, slip videp, trim, delete, cut, copy and paste etc. Without more specifics about what you want to do I would suggest you review the users guide. Select help to open the manual and then go to Timeline>Edit objects in the timeline. I am sure you will find the answer to your question.

  • SSRS Matrix report to show or hide year column based on parameter value "Date" selected.

    Hey experts!
    I have a requirement an ssrs matrix report should display columns (year/s) based on parameter value (date/s). 
    My Dataset fileds are: Product, Year_name, Month_name, Date
    Currently my report output looks like this-
    Param Date: 2013-08-01 00:00:0.000
    Product +Calender2011      +Calender2012     -Calender 2013........                        +Calender2014
                             Total
                      Total Jan13  Feb 13  Mar13..  Dec13   Total           Total
    Abc                      100
                        220
    10      20         30.......  20       250              400
    Xyz 110
    200 50      80         40.......  30       450              600
    My requirement:  if I'm selecting Date parameter value as '2013-xx-xx' I should only able to see Year column 'Calender2013' and rest of the years should hide. Similarly If I'm selecting Date parameter value as '2014-xx-xx' I should only able to
    see Year column 'Calender2014' .
    Appreciate your kindly help. 
    Afan

    Hi Afan,
    According to your description, you want to only show the selected year on your report, right?
    In this case, you need to get the year from the date parameter using the expression below
    =Year(Parameters!Date.Value)
    And then use the expression below to get the year from Year_Name field.
    =Right(Fields!Year_Name.Value,4)
    Then add a filter to the dataset to filter the data like below
    Expression:=Year(Parameters!Date.Value)
    Operator:=
    Value:=Right(Fields!Year_Name.Value,4)
    Reference
    http://msdn.microsoft.com/en-IN/library/dd255287.aspx
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to customize the data selection on a standard 2LIS_08TRTLP

    Hi All,
    on the datasource '2LIS_08TRTLP Shipment delivery per stage', I would need to filter on  '0DEL_TYPE delivery type' but it is not part of the standard 'data selection' for this datasource.
    I have some initial loading issue if I cannot filter directly at the datasource on a specific delivery_type.
    How can I 'enhance' the data selection for this standard datasource with the addition of this new filtering condition on 'DEL_TYPE'
    thanks in advance for your great support
    DHNG

    Go to change mode of datasource using transaction code RSA6. uncheck the hide sel and customer field column.
    Check the check box - del type and save it.
    it will be available for selection and check it in rsa3
    hope it helps you
    mahantesh

  • ICR Process 003 - question about data selection (table FBICRC003A)

    Hello, I am implementing ICR process 003. We are doing several test and we I have some questions that I hope you can help me:
    1 - If I run transaction FBICS3 - Customer/Vendor(  Select Documents) and then FBICA3 - Customer/Vendor (Document Assignment ) several times (the same selection criteria) will the same documents be selected redundantly and will be stored redundantly in table FBICRC003A? I expected that this will not happen but It seems to happen in my test environment. (?)
    2- If I need to delete the data stored in ICR '003' functionality I need to use transaction GCDE. The problem as I am using ledger '0L' for '003' process I cannot "delete data of one ledger" functionality -that allows to set selection data- and I have to "delete the data of an entire data group" that deletes all data stored in FBICRC003A & FBICRC003T tables. Should I set another ledger for '003' process in order to delete data using selection criteria? Is it recommended to not to use '0L' and create a new one?
    I have read in reference documentation that "is not necessary to set up a SL", but since all my productive companies are running in the same client that is the ICR cliente I am wondering if could be better to create and set a SL.
    Thanks in advance
    Rafael Barreda
    Edited by: Rafael Barreda on Sep 14, 2009 1:27 PM

    Hi Ralph,
    we have created a RFC in order to get data from client B to client A (where ICR system is placed). The summary is:
    I need to import vendors/customer data from Client B that belongs to a certain company code "0001". The company is called "X" in both clients A & B although it only exists as a company code (FI) in Client B and just as a company (and trading partner) in client A.
    Client A:
    1- have set company "0001" as a "Company to be reconciled" at FBIC032:
    RFC destination = ""
    RFC destination for data selection = "ZRFC0001"
    Local company= ""
    Data Source="Documents of Current Process"
    Separate Selection Process= "X"
    Data Transfer Type="Asynchronous via Direct RFC Connection"
    Sender field for reference number = "XBLNR"
    Client B:
    1- I have created the companies (V_T880) that I will need in order to inform trading partner on vendor's master data.
    2- I have assigned company code '0001' to company "X"
    3- I have assigned trading partners created on step 1 to vendors
    4- I have post few FI documents with trading partners informed.
    Then I run FBICS3 - Customer/Vendor: Select Documents in background but the programs takes a lot of time and do not select any document.
    Do you think that I am missing something?
    Thanks very much in advance.

  • Sample code in Update Rule to restrict data selection?

    We used to restrict data selection in InfoPackage data selection, e.g., for company code range when loading data from a source system (e.g. EBP which is similar to R3), but somehow the company code range we set in InfoPackage data selection not working and we found actually it occurs on the source system side when running RSA3 on EBP side and input the company code range in RSA3 selection section, but still it extracts data beyond the company code range.  We don't understand why EBP data selection doesn't work, then we consider in update rule on BW to set the company code range.  We know in update rule, we can select Start Routine, formula, or routine to set the company code range.  But we would be appreciated if experts here can recommend which one is the most efficient to load data fast for data load performance reason and would be appreicated if you can let us know the sample code!
    Thanks in advance!

    hi Hari,
    I copy the whole code of the start routine below:
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    Includes to update generic objects
    INCLUDE rsbctgn_top .
    INCLUDE rsbctgn_update_rules .
    INCLUDE rsbctbbp_generic_objects.
      The following section is prepared for you if you compound
      the business partner 0BPARTNER with the
      Source System 0BBP_SYS_BP or if you compound the organizational
      Unit 0ORGUNIT with the source System 0BBP_SYS_BP
    TYPE-POOLS: RRSV.
    Data: L_HLP_CHAVL_CMP       TYPE RSCHAVL.
    DATA:
           L_S_DEP       TYPE RRSV_S_DEP,
           L_T_DEP       TYPE RRSV_T_DEP.
      End of compound
    DATA: l_s_errorlog        TYPE rssm_s_errorlog_int,
          l_hlp_chavl         TYPE rschavl.
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS0BBP_CONF_TD_1.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    delete data_package where 0comp_code < 'X300' OR 0comp_code > 'X6ZZ'.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.

  • Spry dataset not working in Template - please help

    Hi all,
    I have a situation where when I pull a spry dataset from an
    xml file and display the contents in a table which works fine in a
    regular html page but not a template formed page for repeatable
    region.
    The error I get is FAILED TO RETRIEVE DATA SET FOR SPRY
    REPEAT. Prior to that it tells me GetParentDataSet is null or not
    an object. I tried setting up a repeat region around the repeated
    rows but that didn't work either. So I pulled everything else out
    that might be causing the problem but nothing. I checked the
    pathing as well for the spry assets and it checks out okay.
    Anyway, here's the template.
    <!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" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <link href="../styles/style.css" rel="stylesheet"
    type="text/css">
    <link href="../styles/linkB.css" rel="stylesheet"
    type="text/css">
    <link href="../styles/linkA.css" rel="stylesheet"
    type="text/css">
    <!-- TemplateEndEditable -->
    <script src="../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type=”text/javascript”>
    // Setup nested data sets:
    var dsReagCons = new
    Spry.Data.XMLDataSet("../xml/consumables.xml",
    "electrodes_and_accessories/item[@catno='il_acl100_7000_coag_systems']");
    </script>
    </head>
    <body>
    <!-- Main body contents -->
    <!-- TemplateBeginEditable name="EditRegion3" -->This
    is a test
    <!-- TemplateEndEditable -->
    <div spry:region="dsReagCons">
    <table align='center' width='680' border='1'
    cellpadding='3' cellspacing='0' class='form'>
    <tr>
    <td colspan='5' class='prodHead' >Electrodes and
    Accessories</td>
    </tr>
    <tr class='prodHead2'>
    <td spry:sort="ddi_cat_no" width='80'>Diamond<br
    />
    Cat. No.</td>
    <td spry:sort="oem_cat_no" width='80'>OEM<br />
    Cat. No.</td>
    <td width='300'>Description</td>
    <td spry:sort="models" width='100'>Models</td>
    <td width='45'>UOM</td>
    </tr>
    <tr spry:repeat="dsReagCons">
    <td>{dsReagCons::ddi_cat_no}</td>
    <td>{dsReagCons::oem_cat_no}</td>
    <td>{dsReagCons::desc}</td>
    <td>{dsReagCons::models}</td>
    <td>{dsReagCons::uom}</td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    What am I missing here? Like I said I even tried putting a
    repeat region around the table itself.
    Thanks,
    -- Jim

    Hey,
    Good to have a comm expert on this. Actually I solved the
    problem. It was combination of what I was doing within the template
    and the way the xml file was formed. Also, I had to use a template
    parameter to feed a spry:test filter.
    Thanks for getting back to me anyway.
    -- Jim

Maybe you are looking for

  • How to do this in Crystal Reports

    hi all, i want to fetch the text line from PO to my Crystal Report [Please see Image|http://i264.photobucket.com/albums/ii184/abing430/PLD-Crystal.jpg] i been able to do this in PLD but i cannot do it in Crystal report. regards, Fidel

  • Document/literal  WS w/ multipart attachment on OC4J 10.1.3/10.1.2

    Hi all, I am wondering if OC4J 10.1.3 or 10.1.2 can handle document/literal Web Service with multipart attachment using JAX-RPC API. I have created a prototype which does doc/lit WS with text/plain attachment without any problems on OC4J 10.1.3 DP 4.

  • Database migration to MAXDB and Performance problem during R3load import

    Hi All Experts, We want to migrate our SAP landscape from oracle to MAXDB(SAPDB). we have exported database of size 1.2 TB by using package and table level splitting method in 16 hrs. Now I am importing into MAXDB. But the import is running very slow

  • IPHONE 5 weird screen responses when plugged in

    I noticed recently my IPHONE 5 6.0.2 has started to act weird when plugged in, I am on my third iphone 5, Returned the other two firstly becaue of battery issues and then wifi issues now its crazy when plugged in. It is as if the touch screen has bec

  • DKA790GX post problem

    I have read through the forum to try and find an answer to my problem with no luck. I just purchased and received the DKA790GX along with a Phenom 3.0Ghz x4 and 8 Gigs of 1066 RAM (Kingston). I paid for half the ram, the cpu and mainboard to be teste