ERROR: Spry.Data.XMLDataSet.setDataFromDoc() failed to create dataSet
Hi (sorry for my english in advance!!!)
I´m trying to get some XML from a servlet but I get this
error message:
"Spry.Data.XMLDataSet.setDataFromDoc() failed to create
dataSet ''for 'transacciones/tx' -
http://170.14.46.119:8080/struts-ajax/xml.do"
Here´s my code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<title>Prueba Spry</title>
<script type="text/javascript"
src="include/xpath.js"></script>
<script type="text/javascript"
src="include/SpryData.js"></script>
<!-- Crear el dataset -->
<script type="text/javascript">
var dsTx = new Spry.Data.XMLDataSet("
http://170.14.46.119:8080/struts-ajax/xml.do",
"/transacciones/tx");
dsTx.setColumnType("ingreso", "number");
dsTx.setColumnType("egreso", "number");
</script>
</head>
<body>
<div id="Transacciones" spry:region="dsTx">
<table id="tabla_tx" class="main">
<tr>
<th>Fecha</th>
<th>Referencia</th>
<th onclick="dsTx.sort('parade');">Para/De</th>
<th
onclick="dsTx.sort('categoria');">Categoría</th>
<th onclick="dsTx.sort('ingreso');">Ingreso</th>
<th onclick="dsTx.sort('egreso');">Egreso</th>
</tr>
<tr spry:repeat="dsTx">
<td>{fecha}</td>
<td>{referencia}</td>
<td>{parade}</td>
<td>{categoria}</td>
<td>{ingreso}</td>
<td>{egreso}</td>
</tr>
</table>
</div>
</body>
</html>
And here´s the XML generated by the servlet:
<?xml version="1.0" encoding="UTF-8"?>
<transacciones>
<tx id="1">
<fecha>10/06/06</fecha>
<referencia>A1-0023871</referencia>
<parade>CTI S.A.</parade>
<categoria>Telefonía celular</categoria>
<ingreso></ingreso>
<egreso>$350,50</egreso>
</tx>
<tx id="2">
<fecha>10/06/06</fecha>
<referencia>A1-0653782</referencia>
<parade>Garbarino S.A.</parade>
<categoria>Equipamiento</categoria>
<ingreso></ingreso>
<egreso>$1049,00</egreso>
</tx>
<tx id="3">
<fecha>11/06/06</fecha>
<referencia>CI0002</referencia>
<parade>Gomez y Gomez S.A.</parade>
<categoria>Ingresos por ventas</categoria>
<ingreso>$1955,00</ingreso>
<egreso></egreso>
</tx>
</transacciones>
Thanks for your help!!!!!
Pablo
Hi Pablo,
I can't load your url:
http://170.14.46.119:8080/struts-ajax/xml.do
But perhaps it was only meant behind your firewall. In any
case, there are a couple of things to look for:
1. Is your XML valid? You can find out if the browser is
throwing an error because there was something in your XML that it
didn't like. The firefox browser will print an error message in the
JavaScript console if this is the case.
2. Is your server returning the XML as content-type
application/xml or text/xml? If not, then some browsers won't parse
the XML.
--== Kin ==--
Similar Messages
-
Error Spry.Data.XMLDataSet is null or not an object
Hi
I try to use a dataset and a repeat list on a site
But it wont show the list in top. There are two javascript
errors. One of them says Spry.Data.XMLDataSet is null or not an
object
Whats wrongThis one was solved. I copied the files in SpryAsset from a
new one, into the folder on this site. Then the problem was
solved -
Spry.Data.XMLDataSet
Does anyone have resources that will allow
Spry.Data.XMLDataSet to use a variable which has been formatted
into XML.
The getSites returns an XML Packet which is generated by
cfquery.
<cfset getSites =
#Application.Component.HomeworkHotline.getSites()#>
<script type="text/javascript">
var myData = new Spry.Data.XMLDataSet(#Variables.GetSites#,
"Sites/Site");
</script>
Everyytime I view the page I am getting spry:region or
spry:detailregion attribute has no data set.
Suggestions:Yes and I have looked at this example to try and duplicate
it.. At the present time I have the following code:
<cfset getSites =
#Application.Component.HomeworkHotline.GetSites()#>
<script type="text/javascript">
var dsSites = new Spry.Data.XMLDataSet(null, "Sites/Site");
var xmlDocument =
Spry.Utils.stringToXMLDoc("#variables.getSites#");
dsSites.SetDataFromDoc(xmlDocument);
</script>
The getSites produces output like:
<?xml version="1.0"
encoding="UTF-8"?><Sites><Site><ID>9570</ID><NAME>Northern
Indiana Educational Services
Center</NAME></Site></Sites>
Now when I view the page I am getting an error message which
states spry:region or spry:detailregion attribute has no data set.
and then in my table I am getting {ID}{Name} instead of the value
from the datasource. -
The Volume Shadow Copy service initially was running under the context of System, so we thought that ‘System’ doesn’t have permissions to access network shares.
When the Volume Shadow Copy service was running under the context of System, this was the error logged:
“failed with following error code '0x8078014B' (There was a failure in creating a directory on the backup storage location.).”
Which is likely due to not having permissions to write to the network location.
This is a scheduled backup trying to write to a network location, so we changes the service to run under the context of an account that does have permissions to write to the network share.
Then the error changed to this:
“failed with following error code '0x8078006B' (Windows Backup failed to create the shared protection point on the source volumes.).”
HRESULT 0x8078006b
DetailedHRESULT 0x8004230f
ErrorMessage %%2155348075
BackupState 12
VolumesInfo <VolumeInfo><VolumeInfoItem Name="C:" OriginalAccessPath="C:" State="15" HResult="-2139619228" DetailedHResult="0" PreviousState="0" IsCritical="1" IsIncremental="0"
BlockLevel="0" HasFiles="1" HasSystemState="0" IsCompacted="0" IsPruned="0" IsRecreateVhd="0" FullBackupReason="0" DataTransferred="0" NumUnreadableBytes="0" TotalSize="0"
TotalNoOfFiles="0" Flags="1604" BackupTypeDetermined="0" SSBTotalNoOfFiles="0" SSBTotalSizeOnDisk="0" /><VolumeInfoItem Name="D:" OriginalAccessPath="D:" State="15" HResult="-2139619228"
DetailedHResult="0" PreviousState="0" IsCritical="0" IsIncremental="0" BlockLevel="0" HasFiles="1" HasSystemState="0" IsCompacted="0" IsPruned="0" IsRecreateVhd="0"
FullBackupReason="0" DataTransferred="0" NumUnreadableBytes="0" TotalSize="0" TotalNoOfFiles="0" Flags="68" BackupTypeDetermined="0" SSBTotalNoOfFiles="0" SSBTotalSizeOnDisk="0"
/></VolumeInfo>
We aren’t really seeing anything that gives any hint on what the issue is.
Any ideas? Thanks in advance!We are trying to back up folders/files from 2 local drives (C: & D:), both of which have only 10% space used, and 100 GB free.
We are attempting to back the files up to a Remote Shared File (and there is 100+ GB free space out there).
If we try another network location, we receive the exact same error.
This is Windows Server 2012, not running Hyper-V and is a physical server not a VM.
Thank you for the link.
Looking in:
Event Viewer / Application and Service Logs / Microsoft / Windows / Backup / Operational
But it doesn’t seem to give any more details:
Log Name:
Microsoft-Windows-Backup
Source:
Microsoft-Windows-Backup
Date:
7/8/2013 8:00:12 PM
Event ID:
5
Task Category: None
Level:
Error
Keywords:
User:
SYSTEM
Computer:
servername.edu
Description:
The backup operation that started at '2013-07-09T02:00:06.273000000Z' has failed with following error code '0x8078006B' (Windows Backup failed to create the shared protection point on the source volumes.).
Please review the event details for a solution, and then rerun the backup operation once the issue is resolved.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Backup" Guid="{1DB28F2E-8F80-4027-8C5A-A11F7F10F62D}" />
<EventID>5</EventID>
<Version>3</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x4000000000000000</Keywords>
<TimeCreated SystemTime="2013-07-09T02:00:12.872602100Z" />
<EventRecordID>30</EventRecordID>
<Correlation />
<Execution ProcessID="3028" ThreadID="3996" />
<Channel>Microsoft-Windows-Backup</Channel>
<Computer>servername.edu</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data Name="BackupTemplateID">{A421E864-A115-4288-8D12-F4878CF8A248}</Data>
<Data Name="HRESULT">0x8078006b</Data>
<Data Name="DetailedHRESULT">0x8004230f</Data>
<Data Name="ErrorMessage">%%2155348075</Data>
<Data Name="BackupState">12</Data>
<Data Name="BackupTime">2013-07-09T02:00:06.273000000Z</Data>
<Data Name="BackupTarget">\\servername\BACKUP</Data>
<Data Name="NumOfVolumes">2</Data>
<Data Name="VolumesInfo"><VolumeInfo><VolumeInfoItem Name="C:" OriginalAccessPath="C:" State="15" HResult="-2139619228" DetailedHResult="0" PreviousState="0" IsCritical="1" IsIncremental="0" BlockLevel="0" HasFiles="1" HasSystemState="0"
IsCompacted="0" IsPruned="0" IsRecreateVhd="0" FullBackupReason="0" DataTransferred="0" NumUnreadableBytes="0" TotalSize="0" TotalNoOfFiles="0" Flags="1604" BackupTypeDetermined="0" SSBTotalNoOfFiles="0" SSBTotalSizeOnDisk="0" /><VolumeInfoItem
Name="D:" OriginalAccessPath="D:" State="15" HResult="-2139619228" DetailedHResult="0" PreviousState="0" IsCritical="0" IsIncremental="0" BlockLevel="0" HasFiles="1" HasSystemState="0" IsCompacted="0" IsPruned="0" IsRecreateVhd="0" FullBackupReason="0" DataTransferred="0"
NumUnreadableBytes="0" TotalSize="0" TotalNoOfFiles="0" Flags="68" BackupTypeDetermined="0" SSBTotalNoOfFiles="0" SSBTotalSizeOnDisk="0" /></VolumeInfo></Data>
<Data Name="SourceSnapStartTime">2013-07-09T02:00:06.289250300Z</Data>
<Data Name="SourceSnapEndTime">1601-01-01T00:00:00.000000000Z</Data>
<Data Name="PrepareBackupStartTime"><TimesList><Time Time="1601-01-01T00:00:00.000Z" /><Time Time="1601-01-01T00:00:00.000Z" /></TimesList></Data>
<Data Name="PrepareBackupEndTime"><TimesList><Time Time="1601-01-01T00:00:00.000Z" /><Time Time="1601-01-01T00:00:00.000Z" /></TimesList></Data>
<Data Name="BackupWriteStartTime"><TimesList><Time Time="1601-01-01T00:00:00.000Z" /><Time Time="1601-01-01T00:00:00.000Z" /></TimesList></Data>
<Data Name="BackupWriteEndTime"><TimesList><Time Time="1601-01-01T00:00:00.000Z" /><Time Time="1601-01-01T00:00:00.000Z" /></TimesList></Data>
<Data Name="TargetSnapStartTime">1601-01-01T00:00:00.000000000Z</Data>
<Data Name="TargetSnapEndTime">1601-01-01T00:00:00.000000000Z</Data>
<Data Name="DVDFormatStartTime"><TimesList></TimesList></Data>
<Data Name="DVDFormatEndTime"><TimesList></TimesList></Data>
<Data Name="MediaVerifyStartTime"><TimesList></TimesList></Data>
<Data Name="MediaVerifyEndTime"><TimesList></TimesList></Data>
<Data Name="BackupPreviousState">2</Data>
<Data Name="ComponentStatus"><ComponentStatus></ComponentStatus></Data>
<Data Name="ComponentInfo"><ComponentInfo></ComponentInfo></Data>
<Data Name="SSBEnumerateStartTime">1601-01-01T00:00:00.000000000Z</Data>
<Data Name="SSBEnumerateEndTime">1601-01-01T00:00:00.000000000Z</Data>
<Data Name="SSBVhdCreationStartTime">1601-01-01T00:00:00.000000000Z</Data>
<Data Name="SSBVhdCreationEndTime">1601-01-01T00:00:00.000000000Z</Data>
<Data Name="SSBBackupStartTime">1601-01-01T00:00:00.000000000Z</Data>
<Data Name="SSBBackupEndTime">1601-01-01T00:00:00.000000000Z</Data>
<Data Name="SystemStateBackup"><SystemState IsPresent="0" HResult="0" DetailedHResult="0" /></Data>
<Data Name="BMR"><BMR IsPresent="0" HResult="0" DetailedHResult="0" /></Data>
<Data Name="VssFullBackup">false</Data>
<Data Name="UserInputBMR">false</Data>
<Data Name="UserInputSSB">false</Data>
<Data Name="BackupSuccessLogPath">
</Data>
<Data Name="BackupFailureLogPath">
</Data>
<Data Name="EnumerateBackupStartTime"><TimesList><Time Time="1601-01-01T00:00:00.000Z" /><Time Time="1601-01-01T00:00:00.000Z" /></TimesList></Data>
<Data Name="EnumerateBackupEndTime"><TimesList><Time Time="1601-01-01T00:00:00.000Z" /><Time Time="1601-01-01T00:00:00.000Z" /></TimesList></Data>
<Data Name="PruneBackupStartTime"><TimesList><Time Time="1601-01-01T00:00:00.000Z" /><Time Time="1601-01-01T00:00:00.000Z" /></TimesList></Data>
<Data Name="PruneBackupEndTime"><TimesList><Time Time="1601-01-01T00:00:00.000Z" /><Time Time="1601-01-01T00:00:00.000Z" /></TimesList></Data>
<Data Name="BackupFlags">0x9</Data>
<Data Name="ComponentInfoSummary"><ComponentInfoSummary ComponentInfoArrayPresent="1" TotalComponents="0" SucceededComponents="0" /></Data>
</EventData>
</Event> -
Var ds = new Spry.Data.XMLDataSet ...
how many ( var ds = new Spry.Data.XMLDataSet ... ) can be
used simultaneously in the same page? It has some
recommendation?We have some pages that have 8-10 data sets. It seems to
handle it quite well.
Much depends on the amount of data coming into the data sets
and the complexity of the page. You will have to test and see if it
works for you. There is no set limit to the number of data sets.
If your data sets have identical URLS, it will only make a
single call for the data and then it will create the data sets from
that one request.
Does this help?
Thanks,
Don -
I have a website that uses Spry Data XML DataSet to list common pests for the current month. http://www.shspestcontrol.com/
Each month's list of pests is in a separate xml file (e.g. pests-august.xml)
Rather than manually updating the file name each month, can it be setup to automatically change the name
For instance on January 1st, file name changes to pests-january.xml, Feb 1st changes to pests-february.xml. etc.
<script type="text/javascript">
<!--
var dsPests1 = new Spry.Data.XMLDataSet("xml_files/pests-august.xml", "gallery/pests/pest");
//-->
</script>
Any advice if this can be done and if so how to go about doing it would be much appreciated
Thanks, Toni<script>
var dsPests1 = new Spry.Data.XMLDataSet("pests-september.xml", "gallery/pests/pest");
function setPestsFile(){
var months = new Array(13);
months[0] = "january";
months[1] = "february";
months[2] = "march";
months[3] = "april";
months[4] = "may";
months[5] = "june";
months[6] = "july";
months[7] = "august";
months[8] = "september";
months[9] = "october";
months[10] = "november";
months[11] = "december";
var now = new Date();
var monthnumber = now.getMonth();
var monthname = months[monthnumber];
dsPests1.setURL("pests-"+monthname+".xml");
dsPests1.loadData();
window.onload = setPestsFile();
</script> -
If anyone is able to solve this they are a genius (or I am doing something very stupid!)
I am trying to reinstall CS5.5 Master Collection from DVD media on Windows 7 64 bit PC but setup.exe fails due to a msxml3.dll error.
Following a big bundle of recent Windows 7 updates, I started getting 'bad image' msxml3.dll error messages when opening any CS5.5 master collection program (Eg Premiere / Photoshop / Illustrator / Dreamweaver). Following advice on some threads here I tried uninstalling and then using the Adobe CC Cleaner Tool to clean up install, then reinstalling from my original DVD media.
Whenever I try using run setup.exe from installtion disc 1 the installing fails due to 'Missing files'. I have also tried dowloading trial versions and runing setup.exe fro mthe downloaded files but i still get the same message.
I have searched the forum and others have experienced this error but none of the solutions I have found seem to be working for me - as many seem to relate to download installations whereas I am installing from original DVD media (which worked fine before on the same PC)
These are the FATAL messages from the PDApp log
12/11/2014 15:29:27 [FATAL] PIM - Failed to Create XML instance : DOMDocument40 ADXML::initWithXMLPath Error:80040154
12/11/2014 15:29:27 [FATAL] Setup - Could not initialize ADXML object
12/11/2014 15:29:27 [FATAL] Setup - Unable to initialize. Error parsing setup.xml file
The PDApp troubleshooting seems to indicate that this is caused by error in downloads but I am getting it with both original media DVD and downloads.
I have also tried using my logon (which has admin privileges) and under our main admin account - and I get the same errors.
Is a clean install of Windows 7 + CS5.5 my only option?
Any help / info / advice / solutions very much appreciated! I have spent the last 2 days trying to sort this out and seem to be getting nowhere.
Thanks.Thanks for the reply kglad - much appreciated.
I have already tried that option (along with downloading files) as it was one of the solutions mentioned on other threads, but that also failed.
Any other ideas? -
Getting Error in Data Collection - FDPSTP failed due to ORA-23401
Hi All,
I am really new to ATP Setup and after referring to the Metalink notes, I have compelted the setups required to calculate ATP in Sales Order Window.
But when I am submitting the Data Collection which is the last step I guess, the program is ending with Error.
I am getting the error.
FDPSTP failed due to ORA-23401: materialized view "APPS"."MTL_OH_QTYS_SN" does not exist.
And because of this, when I am going to Sales Order to check the ATP, I am getting the error that Try Calculating ATP Again.
Please Help. Project is into a critical stage and I am stuck with this error.
With Regards,
Vishal MajithiaPlease mention the application release.
I am really new to ATP Setup and after referring to the Metalink notes, I have compelted the setups required to calculate ATP in Sales Order Window.What is the document you are referring to?
I am getting the error.
FDPSTP failed due to ORA-23401: materialized view "APPS"."MTL_OH_QTYS_SN" does not exist.Please see if these docs help.
Refresh Snapshot Errors With ORA-12034: Snapshot Log On "BOM"."BOM_SUB_OPERATION_RESOURCES" Younger Than Last Refresh [ID 180705.1]
How to Rebuild Source Snapshots Used in the Data Collection or Planning Data Pull MSCPDP [ID 148584.1]
Thanks,
Hussein -
How to create a category/sucategory list with spry data
I am trying to create a a menu list that looks like this using spry:
Category Name
subcategory1
subcategory2
subcategory3
my mysql query is:
SELECT myp_category_cat.idmnu_cat, myp_category_cat.category_cat, myp_subcat_sct.subcat_sct, myp_subcat_sct.id_sct FROM (myp_category_cat LEFT JOIN myp_subcat_sct ON myp_subcat_sct.idcat_sct=myp_category_cat.id_cat) WHERE myp_category_cat.idmnu_cat=1
i have ben trying to use xpath filtering but i am getting an error. My datasets look like this:
var dsCategories = new Spry.Data.XMLDataSet("myincludes/categories.php", "export/row/category", {sortOnLoad: "category", sortOrderOnLoad: "ascending", distinctOnLoad: true});
var dsList = new Spry.Data.XMLDataSet("myincludes/categories.php", "export/row/subcat");
now i try to combine like this but getting error:
<div spry:region="dsCategories" class="SpotlightAndStacked">
<div spry:repeat="dsCategories dsList" class="SpotlightAndStackedRow">
<div class="SpotlightContainer">
<div class="SpotlightColumn"> {category} {subcat} </div>
</div>
<br style="clear:both; line-height: 0px" />
</div>
</div>
i am now getting a failed to retrieve dataset. Both dataset work perfectly when not combined.You have to declare all your SPRY Datasets in the region:
div spry:region="dsCategories dsList" class="SpotlightAndStacked">
Kevin -
ERROR: spry:region or spry:detailregion attribute has no data set!
here's the basics...
i'm running fusebox for php (if that makes any difference)
i'm also reusing the same gallery for multiple fuseactions,
and using my circuit.xml file to set the var $gallery
depending on which fuseaction has been called.
the photos already exist in a database and full size and
thumbs have already been created by imagemagick
i plan on writing a script that uses imagemagick to get the
dimensions of the imagefiles and saves them to four respective new
columns in my db table (so i hope the problem isn't related to the
height attributes not being set in my xml.... let's hope it's
somthing else, ok?)
i'm creating my datasets like this
quote:
var dsGallery = new Spry.Data.XMLDataSet("/index.php",
"gallery", { method: "POST", postData: "do=m.get<?php echo
$gallery ?>Gallery", headers: { "Content-Type": "text/xml" });
var dsPhotos = new Spry.Data.XMLDataSet("/index.php",
"gallery/photos/photo", { method: "POST", postData:
"do=m.get<?php echo $gallery ?>Gallery", headers: {
"Content-Type": "text/xml"});
the output xml is perfect... here's an example
http://www.inkincnewyork.com/index.php?do=m.getFlashGallery
since i'm reusing the gallery, and have no need for the
dsGalleries related functionality i did this.
using the long way of referencing each piece of data, just to
make sure it's all kosher
quote:
<div id="thumbnails" spry:region="dsPhotos dsGallery">
<div spry:repeat="dsPhotos"
onclick="HandleThumbnailClick('{ds_RowID}');"
onmouseover="GrowThumbnail(this.firstChild,
'{dsPhoto::photo/@thumbwidth}', '{dsPhoto::photo/@thumbheight}');"
onmouseout="ShrinkThumbnail(this.firstChild);"><img
id="tn{ds_RowID}" alt="thumbnail for {dsPhoto::photo/@thumbpath}"
src="{dsGallery::thumbnail/@base}{dsPhoto::photo/@thumbpath}"
width="24" height="24" style="left: 0px; right: 0px;"
/></div>
<p class="ClearAll"></p>
</div>
but i am now getting this error
spry:region or spry:detailregion attribute has no data set!
for each XMLDataSet
anyone have any ideas?A few things I noticed when looking at your sample source
above:
The "Content-Type" should be the type for the post data, not
what you expect to get back. So in your case, you should be using:
"Content-Type": "application/x-www-form-urlencoded";
which is the default type so you don't really have to pass it
to the constructor unless you are posting something other than that
type.
Next, your {ds_RowID} data references are missing the data
set prefix. If you use more than one data set for a given region,
you need to use the prefix to make sure you are getting the
ds_RowID from the correct data set.
The error: "spry:region or spry:detailregion attribute has no
data set!" tells me that the data sets are not defined at the time
Spry first processes the region. Are your data sets being created
in a script tag in the head? Or are you creating them in some
function that gets fired off at a specific time?
--== Kin ==-- -
Spry Data Sets and CFCs?
So, I've got the Spry Data Set working reading an XML file:
http://brad.melendy.com/projects/ajax/spry/test1.cfm
Which seems to work, the ID column sorts on click, all is
well. The actual
file it is reading is located here:
http://brad.melendy.com/projects/webservice/employee.xml
Then, I have it set to read the same data from my CFC in this
version here:
http://brad.melendy.com/projects/ajax/spry/test2.cfm
This isn't working? But I can see the data when I open the
CFC directly in
my browser like this:
http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll
So finally, here is my code on test2.cfm that isn't working?
<!--- START CODE --->
<script src="../../../SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="../../../SpryAssets/SpryData.js"
type="text/javascript"></script>
<script type="text/javascript">
<!--
var ds1 = new
Spry.Data.XMLDataSet("
http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll",
"response/data/row",{sortOnLoad:"id",sortOrderOnLoad:"ascending",distinctOnLoad:true});
//-->
</script>
</head>
<body>
<div spry:region="ds1">
<table>
<tr>
<th spry:sort="id">Id</th>
<th>FirstName</th>
<th>LastName</th>
<th>OfficePhone</th>
</tr>
<tr spry:repeat="ds1" spry:setrow="ds1">
<td>{id}</td>
<td>{firstName}</td>
<td>{lastName}</td>
<td>{officePhone}</td>
</tr>
</table>
<!--- END CODE --->
The two files test1.cfm and test2.cfm are the same except for
the source of
the XMLDataSet which is the static XML document in test1.cfm
and the full
URL to the CFC in test2.cfm.
Thanks for any tips, this is exactly how it is suppose to
work according to
the livedocs but it isn't.
...BradI figured this out, my problem was that although IE was
displaying identical
XML documents from my CFC and employee.xml, the output
produced by the CFC
was not a true xml document. I'm not sure exactly what was
making it fail
to be seen as an xml document, but after updating the code to
use <cfxml>
the document was created properly and then Spry could see the
data and
display it.
"Brad Melendy" <[email protected]> wrote in
message
news:[email protected]...
> So, I've got the Spry Data Set working reading an XML
file:
>
>
http://brad.melendy.com/projects/ajax/spry/test1.cfm
>
> Which seems to work, the ID column sorts on click, all
is well. The
> actual file it is reading is located here:
>
>
http://brad.melendy.com/projects/webservice/employee.xml
>
> Then, I have it set to read the same data from my CFC in
this version
> here:
>
>
http://brad.melendy.com/projects/ajax/spry/test2.cfm
>
> This isn't working? But I can see the data when I open
the CFC directly
> in my browser like this:
>
>
http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll
>
> So finally, here is my code on test2.cfm that isn't
working?
>
> <!--- START CODE --->
> <script src="../../../SpryAssets/xpath.js"
> type="text/javascript"></script>
> <script src="../../../SpryAssets/SpryData.js"
> type="text/javascript"></script>
> <script type="text/javascript">
> <!--
> var ds1 = new
> Spry.Data.XMLDataSet("
http://brad.melendy.com/projects/flex/DataTest4/employees.cfc?method=FindAll",
>
"response/data/row",{sortOnLoad:"id",sortOrderOnLoad:"ascending",distinctOnLoad:true});
> //-->
> </script>
> </head>
>
> <body>
> <div spry:region="ds1">
> <table>
> <tr>
> <th spry:sort="id">Id</th>
> <th>FirstName</th>
> <th>LastName</th>
> <th>OfficePhone</th>
> </tr>
> <tr spry:repeat="ds1" spry:setrow="ds1">
> <td>{id}</td>
> <td>{firstName}</td>
> <td>{lastName}</td>
> <td>{officePhone}</td>
> </tr>
> </table>
> <!--- END CODE --->
>
> The two files test1.cfm and test2.cfm are the same
except for the source
> of the XMLDataSet which is the static XML document in
test1.cfm and the
> full URL to the CFC in test2.cfm.
>
> Thanks for any tips, this is exactly how it is suppose
to work according
> to the livedocs but it isn't.
>
> ...Brad
>
> -
Dreamweaver CS4 Cannot get Spry.Data.NestedXMLDataSet with XML to work
Please help!
I've created a page in Dreamweaver CS4 with a spry dataset. This works great. I've downloaded Spry.Data.NestedXMLDataSet and installed it but I keep getting an error that nested datasets are not supported.
Thoughts solutions.
Thanks,
MI have found the reason that I could not make it work, I did not have the correct JavaScript file installed.
Having made the correction, here is a code that does work but most likely does not have the formatting that you want. I will leave that up to you.
<!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="SpryAssets/SpryNestedXMLDataSet.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
var ds1 = new Spry.Data.XMLDataSet("scoring2.xml", "wcartist/mainartist");
ds1.setColumnType("picture", "html");
ds1.setColumnType("biotext", "html");
ds1.setColumnType("audioplaylist", "html");
var ds2 = new Spry.Data.NestedXMLDataSet(ds1, "videos/videochild");
ds2.setColumnType("videothumb", "html");
ds2.setColumnType("videourl", "html");
//-->
</script>
</head>
<body>
<div class="MasterDetail">
<div spry:region="ds1" class="MasterContainer">
<div class="MasterColumn" spry:repeat="ds1" spry:choose="">
<div spry:when="{ds_CurrentRowNumber} == {ds_RowNumber}" spry:setrow="ds1" spry:select="select" spry:hover="hover" spry:selected="">{artistnamebtn}</div>
<div spry:default="" spry:setrow="ds1" spry:select="select" spry:hover="hover">{artistnamebtn}</div>
</div>
</div>
<div class="DetailContainer">
<div spry:detailregion="ds1">
<div class="DetailColumn">{genre}</div>
<div class="DetailColumn">{picture}</div>
<div class="DetailColumn">{artistnameblock}</div>
<div class="DetailColumn">{biotext}</div>
<div class="DetailColumn">{audiotracklist}</div>
<div class="DetailColumn">{audioplaylist}</div>
</div>
<div spry:region="ds2">
<p> </p>
<p>videos</p>
<div spry:repeat="ds2">
<p>{videoname}</p>
<p>{videothumb}</p>
<p>{videourl}</p>
<p> </p>
</div>
</div>
</div>
<br style="clear:both" />
</div>
</body>
</html> -
Can u have a spry data set Object array.....
Ok this is what i need to do. I need a spry object array to
be created with in a function.
Just like this.....
<!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>Hijax Demo - Notes 1</title>
<script language="JavaScript" type="text/javascript"
src="includes/xpath.js"></script>
<script language="JavaScript" type="text/javascript"
src="includes/SpryData.js"></script>
<script language="JavaScript" type="text/javascript">
* @author nadeerak
function test5(){
funObjects = new Array();
funObjectsObserver = new Array();
funListList = new Array();
x = new Array();
x[0] = "First";
x[1] = "Second";
x[2] = "Third";
x[3] = "Fourth";
for(y in x)
funObjects[x[y]] = new
Spry.Data.XMLDataSet("notes"+y+".xml", "notes/note");
funObjectsObserver[x[y]] = new Object;
funListList[x[y]] = null;
funObjects[x[y]].useCache = false;
funObjects[x[y]].loadData();
funObjectsObserver[x[y]].onDataChanged = function(dataSet,
data)
funListList[x[y]]=funObjects[x[y]].getData();
alert(funListList[x[y]].length);
funObjectsObserver[x[y]].onPreLoad = function(dataSet, data)
alert("preload");
funObjectsObserver[x[y]].onPostLoad = function(dataSet,
data)
funObjects[x[y]].addObserver(funObjectsObserver[x[y]]);
</script>
</head>
<body>
<input type="button" value="button" name="button"
onclick="test5();">
</body>
</html>
i have note0.xml to note6.xml
once the button clicked i need all the alerts to give the
length. But this dyanimically created objects does not load. Why?
Can we do something like this in SPY? like creating a spry
object array........... can we?
The error im getting is after two alerts i get
"funListList[]. is null or not an object " individually it works
very well?
why is this?
To my knowladge the data is not loaded after the second....
Hmmmm how come? im using seperate objects....
PLS ALL SPRY LOVERS help me......Hi,
Check this sample:
http://labs.adobe.com/technologies/spry/samples/DataSetSample.html
Check the source code to see how we build a data set from an
array.
Hope this helps,
Donald Booth
Adobe Spry Team -
Anyoe else seen this? Data displays fine in Firefox and
Safari (of course) but gives three errors when opening in IE Mac or
PC.
Errors thrown are:
Microsoft JScript compilation error: Line 190, Char 89,
Expected ')'
Referring to JS file?
Microsoft JScript runtime error: Line 15,
'Spry.Data.XMLDataSet' is not an object
Code -
var ds2007email = new Spry.Data.XMLDataSet("2007_email.xml",
"emails/email",{sortOnLoad:"bDate",sortOrderOnLoad:"ascending",useCache:false});
Microsoft JScript runtime error: Line 77, Char 2, Object
doesn't support this property or method
Code -
<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Acc1");
//-->
</script>
Setting this up in Dreamweaver CS3. Also got htis when
hand-coding Spry 1.4 prior to DWCS3. Any resolve to this problem is
appreciatedAnyone? Please?
-
I'm having trouble getting the Spry data set to display in my
local testing environment. Can someone glance at my code and give
me some tips? I have the XML file in the same folder as the HTML
page.
<!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>Croxton Gray Commercial Properties, Greenville,
SC - Search Company Listings</title>
<link href="../css/master.css" rel="stylesheet"
type="text/css" />
<script type="text/javascript"
src="../includes/xpath.js"></script>
<script type="text/javascript"
src="../includes/SpryData.js"></script>
<script type="text/javascript">
var dsListings = Spry.Data.XMLDataSet("listings.xml",
"listings/property");
</script>
</head>
<body id="listings">
<div id="wrapper">
<div class="padding10">
<?php include('../php/header.php'); ?>
<p class="date"><?php
echo date('l, F jS, Y');
?></p>
<div id="contentWrapper">
<div id="contentInner">
<div id="contentColumn" spry:region="dsListings">
<table width="100%" border="0" cellspacing="0">
<tr>
<th>Property</th>
<th>Price</th>
<th>Availability</th>
</tr>
<tr spry:repeat="dsListings"
onclick="ds.Listings.setCurrentRow('{ds_RowID}')">
<td>{name}</td>
<td>{price}</td>
<td>{availability}</td>
</tr>
</table>
</div><!-- Closes content column -->
<div id="rightColumn" spry:detailregion="dsListings">
<h2>{name}</h2>
<p>{description}</p>
<p align="center"><img
src="assets/{img}"/></p>
<p><strong>Call</strong>: {contact}
</p>
</div><!-- Closes right column -->
</div><!-- Closes content inner -->
</div><!-- Closes content wrapper -->
Here's the sample XML file I'm testing with. Again, it's
located in the same folder as the HTML page.
<?xml version="1.0" encoding="ISO-8859-1"?>
<listings>
<property>
<name>100 South Main</name>
<price>$100,000</price>
<availability>for sale</availability>
<image>asset_images/sunset.jpg</image>
<description>This is a short description of the
property.</description>
</property>
<property>
<name>100 South Main</name>
<price>$100,000</price>
<availability>for sale</availability>
<image>asset_images/sunset.jpg</image>
<description>This is a short description of the
property.</description>
</property>
<property>
<name>100 South Main</name>
<price>$100,000</price>
<availability>for sale</availability>
<image>asset_images/sunset.jpg</image>
<description>This is a short description of the
property.</description>
</property>
<property>
<name>100 South Main</name>
<price>$100,000</price>
<availability>for sale</availability>
<image>asset_images/sunset.jpg</image>
<description>This is a short description of the
property.</description>
</property>
</listings>
Thanks to whomever takes the time. I really appreciate the
extra set of eyes and any tips!With those 2 changes I mentioned above ... and the fact that
I had to fix the markup because there were missing end tags, which
I was assuming was just a copy paste problem ... it all worked fine
for me. Of course I made sure the includes I used were in the
correct place.
After re-reading your original message above, you never
really mentioned what you are seeing in the browser. Are there any
errors being thrown? Are you seeing data references instead of
values? If you are in need of help, we could diagnose things much
faster if you had an URL we could take a peek at.
Also what platform and browser are you using?
Did you try loading the XML file directly in to your browser
like ZeusChicago suggested? That would instantly tell you if your
server was serving your XML up with the correct content-type or
not.
--== Kin ==--
Maybe you are looking for
-
Drop down menu turning to all caps after clicked in browser
Problem. drop down menu turning to all caps after clicked in browser, instead of staying upper and lower case. Originally, I made the drop downs in fireworks CS3. Then when I work with them in dreameaver CS3. It looks perfect UNTIL ... after clickin
-
How do I make a genius bar appointment?
Bought new iPhone 6 that should arrive around Dec. 5th. I don't have the serial number yet (bought from carrier) but wanted to make a genius bar appointment to transfer info from old to new iPhone. Can I make an appointment without having a serial
-
What is the right 1G RAM upgrade for Aluminium G4 1,25 GHzPowerBook ?
After 6 months of struggle I am ready to throw my PB into trash bin and a buy a powerPC that works. I tried to upgrade RAM from 1G to 1,5G - the older RAMs being 2x512MB Kingston copies and working well but getting slow for multitasking (photo editin
-
FM 'BAPI_SALESORDER_CREATEFROMDAT2'
Hi, I am using the FM BAPI_SALESORDER_CREATEFROMDAT2 to create the sales order. Can anyone let me know in which structure we need to pass the Partner details and Pricing details. Regards, SP
-
SerializedObjectConverter, SQLServer 2005, IMAGE type error
Has anyone had any luck saving a Java object in an IMAGE field in SQL Server 2005? Please note, this works successfully in MySQL 5, SQL Server 2000, and Oracle 9i/10g. I'm only having a problem with this in SQL Server 2005. I'm using the MS JDBC driv