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

Similar Messages

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

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

  • RsProcessingAborted Cannot read the next data row for the dataset rsErrorReadingNextDataRow

    This is a pretty generic exception.  I thought I would post this note as my searches for a solution were not very helpful.
    In my case the error was due to a recurring deadlock due to a missing database option for Read Committed Snapshot on this new subscriber database.
    Turning on Verbose Logging revealed: System.Data.SqlClient.SqlException: Transaction (Process ID 89) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    Adding this to RsReportServer.Config (remove comments) did the trick.
    <!--  <system.diagnostics> -->
    <!--      <switches>
    -->
    <!--          <add name="DefaultTraceSwitch" value="4" />
    -->
    <!--      </switches>
    --> 
    <!--   </system.diagnostics> -->
    ...Ray

    Turning on Verbose Logging revealed: System.Data.SqlClient.SqlException: Transaction (Process ID 89) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    Adding this to RsReportServer.Config (remove comments) did the trick.
    <!--  <system.diagnostics>
    -->
    <!--      <switches>
     -->
    <!--          <add name="DefaultTraceSwitch" value="4" />
    -->
    <!--      </switches>
     --> 
    <!--   </system.diagnostics>
    -->
    ...Ray

  • Cannot read the next data row for the data set

    Hi,
    My report runs fine when I view in VS, data shows fine when I run the query in the data window, but when I publish it to the server, I get the above error. I am running SQL server 2005 RTM and I have re-deployed the entire solution.
    Any ideas?

    Hi All,
    Upon investigation found that there was an issue with converting varchar value to datatime datatype in Stored Procedure and that is why report was throwing error.
    I ran same report in BIDS and got clear error message
    An error has occurred during report processing. (rsProcessingAborted)
    Cannot read the next data row for the dataset xxx. (rsErrorReadingNextDataRow)
    The conversion of a varchar datatype to a datetime datatype resulted in an out-of-range value
    Once I corrected this, It is working fine.
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • 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

  • GROUP BY in SPRY DATASET

    Hi,
    how can I set a GROUP BY in my Spry-Dataset? I got lots of <city> tags that sometimes contain the same city. And I dont want them all to be shown in the list only 1 time.
    Thanks for help,
    Denis

    DenisCGN wrote:
    :-) this is where I always look at. But understand nothing :-)
    It starts already here: function( ds, row, index ) where do I find ds? row? index? In the filter you showed me yesterday, it was written like that, too.
    the ds, row, and index are arguements of the function. Its basically in the information that Spry sends to your filter function that you can use to filter rows in your database.
    ds, is a reference to the current dataset that will have the filter applied,
    row, is a reference to the current row of your dataset that the filter is checking.
    index, is the current row number that is getting filtered.
    You can use these values to compile your own custom filter, as i did in example posted above. It uses the row variable to check for data in the current filtered row, and decided based on the information of that row, if the filter function should return the row, or remove the row ( return nothing );
    This is only one of the points. the other point is, that I dont know what to look for, when I need help. This filter thing from yesterday, is, nice, works only half, and brings me to the next frontier, like that GROUP BY thing, and that the dropdown fields are closed.
    There are a few points to look for information, when i first started, i used allot code from the examples. And searched the Spry API for information. And bought a few books on JavaScript. ( Spry got me hooked on JavaScript ). The Spry Docs is basically the base source of information. It links to almost everything you need. For more about data sets I would really suggest reading the articles that are bundled with Spry.
    These pages are bookmarked by me:
    http://labs.adobe.com/technologies/spry/docs.html
    http://labs.adobe.com/technologies/spry/articles/data_api/index.html
    http://labs.adobe.com/technologies/spry/samples/
    http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html
    http://labs.adobe.com/technologies/spry/articles/best_practices/index.html
    http://labs.adobe.com/technologies/spry/widgets/widgets.html
    When i got more used to Spry and JavaScript in I got most of my knowledge by analising all functions in side of Spry, all methods and functions properties, understanding how things work, and why things work. So i can provide better solutions for problems.
    When I got one, I got 3 new problems. Thats not so in PHP.
    An other thing is, that the german characters arent displayed right. and and and and...
    :-) I got to have a coffee now...
    Denis
    set column types to HTML, make sure you have the correct iso set for your XML and page. If you page is "iso-8859-15" make sure your XML and data is that as well. The same counts for UTF-8 and other encodings.

  • 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

  • Html tags not parsing in spry dataset

    Hello you all,
    I have a liitle master detail page setup which works perfectly except that the data that is pulled from a database and parsed by a spry dataset is not parsing the html tags. I am seeing things like <p></p><br/> etc. on the page. Can any one help with this.
    Message was edited by: jahflasher

    Set the columtype to HTML on the affecting row:
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/dataset.html#setcolumntype

  • What advantages do Spry datasets have over database datasets

    I have been studying the Spry Dataset and have found it terribly difficult to understand what use it is.
    Can anyone explain why I should use it rather than using a database?
    On the face of it, Databases are much easier to construct and access, so why use an alternative system.
    From what I understand, I have to create a basic database table on an HTML page before I can attampt to create a spry dataset.
    Or even use the dataset of a database to create a Spry dataset. I appreciate that there are other methods.
    There are lots of articles telling one how to use it, but none stating what it is for and why one should use it - at least, none that I can find.
    Where are the advantages of this system, or are you all using it just for technologies sake?
    Or is it just an Adobe thing?

    whatalotofrubbish wrote:
    I have been studying the Spry Dataset and have found it terribly difficult to understand what use it is.
    Can anyone explain why I should use it rather than using a database?
    On the face of it, Databases are much easier to construct and access, so why use an alternative system.
    From what I understand, I have to create a basic database table on an HTML page before I can attampt to create a spry dataset.
    Or even use the dataset of a database to create a Spry dataset. I appreciate that there are other methods.
    There are lots of articles telling one how to use it, but none stating what it is for and why one should use it - at least, none that I can find.
    Where are the advantages of this system, or are you all using it just for technologies sake?
    Or is it just an Adobe thing?
    Hello,
    There are big difference between Datasets and databases. While I disagree with your point that Databases are easier to construct instead of Datasets. I understand your point. You should not see Datasets and databases as rivals of each others but more of a extension of each other. You use a database to store all your data and contents. When you execute a query on your database your will get a result set, or dataset. This usually the place when Spry could come in. You have data output from your database, now you just place it static on your page. Nothing wrong with that. But if you wish to create a interactive page it will usually require you to build allot of round trips to your server to present your data in different ways.
    With Spry these round trips can be handled on the client side. Once your users have received your data for the Spry Data Set there are allot things they can do with it, and usually faster than doing round trips to the server. For example your can sort and filter data sets, display information in a master and detail layout or even create different page states using the same data with out having to reload the page. This will create a more seamless experience for the user.
    For example our company is currently developing a search result page based on Spry Datasets. On the server side we have our database clusters that out the data for a search query. But this is usually 200+ result rows. In a traditional static website it would take a while for the user to digg through all results. Either by navigating to a next page, or filtering the dataset using forms.
    With Spry we now have our result set outputted as JSON (one of the formats Spry supports as data source for the Spry Data Set) we download it all to the client. And that is all they need. All sorting, filtering and pagination is done client side. So no more round trips to the server ( less server stress, and its faster ).
    I could go on about for hours but I hope this will give a general point of usages. If not take a look at the Spry demos. Which use Spry Data to create rich and interactive pages, and just imagine how you would have done that using traditional techniques and how long it would take you to build that.
    http://labs.adobe.com/technologies/spry/demos/

  • Spry Dataset and XML problem

    I think this problem is a result of my lack of knowledge regarding XML but hope someone can help set me straight.  I am using Spry datasets in several web pages all accessing HTML pages with data in tables format.  These work great.
    I would like to use XML files for some other data on another site I am working on and while the Spry Dataset wizard allows me to call the XML file the information I get in the Row Element panel and the Data Preview panel appear to have nothing to do with the XML file I am accessing.  I am expecting a list of US states and instead get a heading called Types with Default and Override as the two indented lines beneath type.
    I have tried several other xml files that I have created or downloaded as samples from the web and always get the same headings.
    I am trying to insert into a plain vanilla HTML page.
    What am I doing wrong? I have attached the XML file I am using
    Hope someone can help.
    Cheers
    les

    You cannot do cross domain requests with Ajax, you will need to use a server side transporter / proxy to get the file for you.
    Heres a nice proxy for PHP:
    http://webreflection.blogspot.com/2009/05/php-full-proxy-work-in-progress.html

  • Thickbox/jquery kills my spry dataset

    I've been working with a spry dataset on a project that I've
    recently added Thickbox to. Once I've added the 2 required js
    script files to the header, the dataset stopped displaying any
    data.I found a detailed thread about this very problem in the
    forums, but all the combinations of adding an observer to my spry
    dataset haven't helped at all. Here is the code of the latest
    attempt - anyone see where I went wrong?

    The main reason can be that Thickbox is triggered before the
    dataset is
    fully loaded:
    You can try this:
    1.- Open thickbox.js, Copy the content include in the
    function attached to
    "$(document).ready" (lines 14 to 16):
    tb_init('a.thickbox, area.thickbox, input.thickbox');//pass
    where to apply
    thickbox
    imgLoader = new Image();// preload image
    imgLoader.src = tb_pathToImage;
    2.- Comment the whole function, because we'll trigger it
    using Spry
    3.- Now, go to the main document where you defined the
    observer:
    This is your current code:
    <script>
    function myRegionCallback(notificationState, notifier, data)
    if (notificationType == "onPreUpdate")
    alert(regionID + " is starting an update!");
    else if (notificationType == "onPostUpdate")
    alert(regionID + " is done updating!");
    </script>
    <link href="css/thickbox.css" rel="stylesheet"
    type="text/css" />
    <script type="text/javascript">
    <!--
    var dsCalendar = new
    Spry.Data.XMLDataSet("DNUdata.php?epoch=<?php echo
    $epoch
    ?>",
    "root/row",{sortOnLoad:"app_time",sortOrderOnLoad:"ascending",useCache:false,loa
    dInterval:1500});
    //-->
    Spry.Data.Region.addObserver("ddetail", MyRegionCallback);
    </script>
    4.- We can simplify things a bit; Since we are only
    interested in the moment
    when the region is finished, we'll replace the callback
    function with an
    region observer object:
    <link href="css/thickbox.css" rel="stylesheet"
    type="text/css" />
    <script type="text/javascript">
    <!--
    var dsCalendar = new
    Spry.Data.XMLDataSet("DNUdata.php?epoch=<?php echo
    $epoch
    ?>",
    "root/row",{sortOnLoad:"app_time",sortOrderOnLoad:"ascending",useCache:false,loa
    dInterval:1500});
    //create the observer
    TB_Observer= new Object()
    TB_Observer.onPostUpdate = function()
    //we can launch the thickbox
    tb_init('a.thickbox, area.thickbox, input.thickbox');//pass
    where to apply
    thickbox
    imgLoader = new Image();// preload image
    imgLoader.src = tb_pathToImage;
    Spry.Data.Region.addObserver("ddetail", TB_Observer);
    //-->
    </script>
    HTH
    Andres Cayon
    Spain Adobe Dreamweaver User Group
    http://www.dwug.es
    "rlcigars" <[email protected]> escribió
    en el mensaje de noticias
    news:[email protected]...
    > I've been working with a spry dataset on a project that
    I've recently
    > added
    > Thickbox to. Once I've added the 2 required js script
    files to the header,
    > the
    > dataset stopped displaying any data.I found a detailed
    thread about this
    > very
    > problem in the forums, but all the combinations of
    adding an observer to
    > my
    > spry dataset haven't helped at all. Here is the code of
    the latest
    > attempt -
    > anyone see where I went wrong?
    >
    > <!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>Untitled Document</title>
    > <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    > <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    > <script src="scripts/jquery.js"
    type="text/javascript"></script>
    > <script src="scripts/thickbox.js"
    type="text/javascript"></script>
    > <script>
    > ...
    > function myRegionCallback(notificationState, notifier,
    data)
    > {
    > if (notificationType == "onPreUpdate")
    > alert(regionID + " is starting an update!");
    > else if (notificationType == "onPostUpdate")
    > alert(regionID + " is done updating!");
    > }
    >
    > </script>
    >
    >
    > <link href="css/thickbox.css" rel="stylesheet"
    type="text/css" />
    > <script type="text/javascript">
    > <!--
    > var dsCalendar = new
    Spry.Data.XMLDataSet("DNUdata.php?epoch=<?php echo
    > $epoch
    > ?>",
    >
    "root/row",{sortOnLoad:"app_time",sortOrderOnLoad:"ascending",useCache:false,loa
    > dInterval:1500});
    > //-->
    > Spry.Data.Region.addObserver("ddetail",
    MyRegionCallback);
    >
    > </script>
    >
    >
    > </head>
    >
    > <body>
    > <div id="ddetail" spry:region="dsCalendar">
    > <table width="982">
    > <tr>
    > <th width="169"><div
    align="left">Company</div></th>
    > <th width="140"><div
    align="left">Appointment Date</div></th>
    > <th width="127"><div
    align="left">Appointment Time</div></th>
    > <th width="153"><div
    align="left">Number</div></th>
    > <th width="70"><div align="left">Caller
    ID</div></th>
    > <th width="108"><div align="left">Last
    Called</div></th>
    > <th>edit</th>
    > </tr>
    > <tr spry:repeat="dsCalendar">
    > <td>{company}</td>
    > <td>{app_date}</td>
    > <td>{app_time}</td>
    > <td>{number}</td>
    > <td>{clid}</td>
    > <td>{last_called}</td>
    > <td><a
    href="DNUsingledetail.php?id={id}">edit</a></td>
    > </tr>
    > </table>
    > </div>
    >

  • 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

  • Datapump : How to append data in an existing table

    Hello Everyone,
    We are new to Datapump.
    We try to extract data from one user/schema and to append it into another user/schema.
    First we tried Tt use the parameter table_exists_action=append during the importation but we receive this error (but the rows are appended):
    ORA-39152: Table "XXXXX"."YYYYY_ZZZ" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
    Which I don't expect since the utility have been told to, indeed, append data.
    Next we tried to use CONTENT=DATA_ONLY on exportation and importation but the importation never end.
    How can we append data into a table's user/schema without having an error?
    Best regards.
    Carl

    IGNORE=Y during the import.it does the same operation. if the table already exists,it ignores and proceed with importing/appending data to the tables. same way, they do have indexes=n and constraints=n option.
    both export/import have equivalent options for fitering to our requirement and datapump has one step above classic import in which you can filter upto metadata object as well.

  • Append data into the file in application server

    Hi Friends,
    I have an issue where i have a job which has three different stepst for same program. If i run the job the program will create a file in the application server and append the other two steps in the same file without overwriting the file or creating a new file.
    My problem is like its creating three different files in application server for that particular job since it has three steps . Its not appending into one particular file .
    I am using the FM 'Z_INTERFACE_FILE_WRITE' where i have used the pi_append in the exportng parameter . ITs working when i specify the file in local system. It is appending correctly when i run the report normally to apppend into local system.
    But when i schedule a job to append the file in application server its creating three different files.
    Kindly help me if anyone is aware of this issue
    Thanks in advance
    Kishore

    Hi,
    Please use open dataset to write and append files.Please check the logic of Z FM which you are using .
    To open and write into a file  use
    OPEN DATASET FNAME FOR OUTPUT.
    To append data into existing file use
    OPEN DATASET FNAME FOR APPENDING.
    To write into file:
    v_file = file path on application server
      OPEN DATASET v_file FOR output.
      IF sy-subrc NE 0.
    write:/ 'error opening file'.
      ELSE.
       TRANSFER data TO v_file.
      ENDIF.
    CLOSE DATASET v_file.
    For appending :
    OPEN DATASET v_file fOR APPENDING.(file is opened for appending data  position is set to the end of the file).
    Thanks and Regards,
    P.Bharadwaj

Maybe you are looking for

  • Problem on my ovi store in nokia x2 01

    Hi nokia, can you help me with this app ? I can't open my ovi and mail application on my x2 01. How can i ease this problem ?

  • How can I reset an older desktop Mac to original settings?

    Hello everybody!  I'm hoping I can get some help with this question.  Bear with me as I have no idea what I'm doing with computers... My boyfriend has an older Mac desktop computer.  As far as I understand, he purchased it used from someone else. It

  • INTERNAL.HTTP_RESP_STATUS_CODE_NOT_OK  503

    Hi, We are facing an unusual error in XI. All our scenaros are showing same error. <SAP:Error> <SAP:Category>XIServer</SAP:Category> <SAP:Code>INTERNAL.HTTP_RESP_STATUS_CODE_NOT_OK </SAP:Code> <SAP:P1>503 </SAP:P1> <SAP:P2>Service Unavailable</SAP:P2

  • Why do the upgrades from OS X 10.3.6 to OS X 10.6.8 keep my computer freezing?

    Hi, I understand that I should get some Apple Hardware Tests to solve freezing applications problems I already had before upgrading to Lion to Leopard to mountain lion. I do not succeed to follow the directions I've been provided i.e. turn off the co

  • Form XML Schema/Documentation

    Does anyone know where i might find documentation that describes the XML for a form that is used via LoadBatchActions?  I am doing some things that the Screen Painter doesn't support, and wanted to have a reference handy. THanks.