Does anynody know if it is possible to merge 2 data sets ?
hello,
let's say we have two XMLDataSet ds1 and ds2 of the same
nature (same data set path), both were loaded, is it possible to
add the data of ds2 to ds1 and have the region updated?
thank you.
It is possible, though you currently have to write code to do
it. I'll file a bug against myself to add some data set APIs to
make this much easier. In the mean time, here's an example of how
you can do it. Hopefully this code doesn't get munged by the forum
server.
--== Kin ==--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Data Set Merging Example</title>
<script language="JavaScript" type="text/javascript"
src="../Spry_P1_4_12-14/includes/xpath.js"></script>
<script language="JavaScript" type="text/javascript"
src="../Spry_P1_4_12-14/includes/SpryData.js"></script>
<script language="JavaScript" type="text/javascript">
// Create a generic data set that will hold all of the data.
var dsAllData = new Spry.Data.DataSet();
// Create a data set that will go out and fetch new data.
var dsDataLoader = new
Spry.Data.XMLDataSet("../Spry_P1_4_12-14/data/employees-01.xml",
"/employees/employee");
// Add an observer to the data set that fetches our data.
// Whenever it loads new data, we want to append it to
// dsAllData.
dsDataLoader.addObserver(function(notificationType, notifier,
data) {
if (notificationType != "onPostLoad")
return;
if (!dsAllData.data)
dsAllData.data = [];
dsAllData.dataHash = {};
// Get the rows from the loader data set.
var newRows = dsDataLoader.getData();
var newRowCount = newRows.length;
var nextID = dsAllData.getRowCount();
// Now run through all of the rows that were fetched
// and update their ds_RowID so that they are unique
// when we insert them into dsAllData. Note we also
// have to update the hash table in dsAllData.
for (var i = 0; i < newRowCount; i++)
var row = newRows
row.ds_RowID = nextID++;
dsAllData.dataHash[nextID] = row;
dsAllData.data.push(row);
// Now call loadData() so we can broadcast to any
// observers of dsAllData that its data has changed.
dsAllData.loadData();
// Since none of the regions in this page depend on
dsDataLoader,
// we need to manually kick off a load.
dsDataLoader.loadData();
</script>
</head>
<body>
<input type="button" value="Append"
onclick="dsDataLoader.loadData();" />
<div spry:region="dsAllData">
<table border="1">
<tr>
<th>ds_RowID</th>
<th>Name</th>
</tr>
<tr spry:repeat="dsAllData">
<td>{ds_RowID}</td>
<td>{firstname} {lastname}</td>
</tr>
</table>
</div>
</body>
</html>
Similar Messages
-
Does anyone know if it is possible to change the display in week view to show all 24 hours per day for those of us that work irregular hours.
Also is it possible to have all of the 'all day' entries showing, not just 3.5 of them.
The app Week Cal HD was the perfect calendar until Apple removed it so could they please offer the same facilities that it offered.Does anyone know if it is possible to change the display in week view to show all 24 hours per day for those of us that work irregular hours.
Also is it possible to have all of the 'all day' entries showing, not just 3.5 of them.
The app Week Cal HD was the perfect calendar until Apple removed it so could they please offer the same facilities that it offered. -
I have a related but different problem... I prefer that the photos/events on my iPhone and iPad be in "date created" order. Does anyone know if this is possible? Apple...please give us some options!!!
This response is a little late as I just read about your problem. I have a 2012 Dodge Charger and a 2012 Chrysler Town and Country and both worked flawlessly with the iPhone 5s my wife and I had. However, we just upgraded to the iPhone 6 and Uconnect will receive calls but you cannot answer them. You can callout successfully, however. the annoyance being the inability to answer incoming calls in the HandsFree mode.
-
I am unable to get my iPhone 4S to connect to any wifi connection, I have reset my phone as well as visitedn my cellular provider without success. Does anyone know how I could possibly get my phone to connect to wifi?
Thanks for the responses, they have been very illuminating!
This is very disappointing from The Carphone Warehouse. If they had mentioned this when I went into their stores, I wouldn't have completed the purchases. I bought two phones at separate outlets and neither of them told me this.
I have been in contact with T-Mobile already as I thought they had sneakily applied a software update that locked the phone. They have denied locking it and suggest that it is something that Apple do. Their solution was a factory reset.
I have a call logged with Apple this afternoon, so will see what they suggest. Hopefully they will give me something that I can take to The Carphone Warehouse or T-Mobile. -
I want to purchase an itunes song that's only available in the UK store. Does anyone know if that's possible?
Perhaps you can find the track through one of the other download stores such as Amazon.
Regards. -
I HAVE PROBLEMS WITH LION 10.7.1 AND THE PRINTER EPSON STYLUS TX515FN, DOES SOMEBODY KNOW IF IT IS POSSIBLE TO BE USED?
Yes it is, you must install the driver. Download the driver from here here:
http://www.latin.epson.com/v4/asp/soporteDrivers.asp?idProducto=C11CA49212 -
does anyone know if it is possible receiving a signature on the quickbooks mobile or if there is an app that i need to dowmload that will allow it i also have go payment it will accept a signature i just need a signature on an invoice so i can email
No one here would be privi to Apple's plans on the matter. Submit your feedback to Apple requesting such a feature:
http://www.apple.com/feedback
In the interim, there is a reminder program for pretty much every need and taste in the App Store. -
I wish to download (and use of course) Creative Cloud on my NAS to be able to have access from various locations using my laptop PC and tablet. Does anybody know whether this is possible? So the programm software on the NAS and operate it from there.
OK, thanks
but EULA ?? what does it stand for? I am pretty new to all this so good to learn something.
ps. backgroud of my request is, that I purchased LR in a box in 2013. The computer where this is on, is at the end of its life and I have no LR box with License or any reference nr's anymore.
Copied to my new Laptop, which maybe is not allowed if I understand you correct, it didn't work.
Pitty, because afterall it is still my legally relatively recent purchased LR version.
I thought to overcome this problem in future by putting it on my NAS. Safe for many years to come.
again any knowlegeable feedback is welcome to me.
Jos -
Have my exchange contacts appear on iCloud. Does anyone know if this is possible?
Hi there,
Just setup iCloud on my IOS 5 iPhone 4S. Loving it so far. One thing I have been unable to do is have my exchange contacts / calendar also appear on iCloud. Does anyone know if this is possible?Fair point Tim
I can't speak for the O/P but for me, i think i'd be happy to "move" then to iCloud rather than Exchange then. This all started from the most trival of things. I wanted Suri to recognise my partner but the "Related People" fields are limited to 3 with Exchange. I need them to be iCloud contacts to get the full list including Brother, Father etc etc
I have follows online guuides to sync to the cloud but they ignore Exchange contacts. I have just tried to add the @me.com account to my Outlook but it failed (perhaps servers busy/down?)
and to answer your question this is a High end HP desktop with Outlook 2010 and Exchange 2007 SP3 connected on a gigabit lan.
I'm assuming that when i get my mobile.me account into Outlook, i can just copy/move them into there and then the sync process will work.? -
Experiencing serious problems with lion, I would like to install snow leopard instead of lion on latest macbook pro MD318 (oct.2011) Does anyone know if this is possible? If so, please tell me how. Will I have to use install-disks of previous model (eg. MC721) ? Or will retail-disks serve?
Thanks stephSnow Leopard is currently running on this MBP 15", late 2011 model, due to my need to run an old version of FileMaker.
A retail disk with 10.6.3 did not work, I restored my previous Snow Leopard install with Disk Utility.
However, it is not the shipped software and is not officially supported on this Mac. Therefore, your advice to troubleshoot Lion is the best option. -
I saw a post on how to load iMovie 6 without deleting iMovie 9 or iLife 11 I can't find the post now does anyone know if this is possible. I do not want risk not being able to reload iMovie 9 it appears that I would have to reload the whole iLife suit
Could have been mine!
Happily this is easily achieved, but it has to be done backwards.
Delete iMovie 9 (just drag it to the trash). Now install iMovie 6 from the iLife 6 install disks.
Now re-install iMovie 9. This automatically moves iMovie 6 into a folder it creates in your Applications folder called iMovie Previous Version.
Now you have them both, and you can have both in the Dock as well.
Alternatively you could try this method, suggested by poster Uitech:
Open a terminal and type "touch /Library/Preferences/com.apple.iLife08.plist"
(No quotes)
Install iMovieHD6 from the iLife 6 install disk.
This works with both Leopard and Snow Leopard Macs. -
Does anyone know whether it is possible to add a Pay Pal button to a community web site I created using IWeb?
If so how does hide the Pay Pal code?
Robert JonesSee this page for info ...
http://www.iwebformusicians.com/Internet-Music-Sell-Distribute/PayPal.html
Other pages in this section show how to set up a sales page and create a shopping cart.
"I may receive some form of compensation, financial or otherwise, from my recommendation or link." -
I have 2 App Store accounts, one from MobileMe time and i want to know if it is possible to merge them as i'm having troubles updating some of my software?
I have to sign in and out between one and the other constantly and i dont know what to do anymore becouse now i can't update software on either, it keeps on poping up "To update this application, sign in to the account you used to purchase it." and im pretty sure im on the right account.Sorry. Apple's policy states that accounts cannot be merged > Frequently asked questions about Apple ID
Contact Apple for assistance > Contacting Apple for support and service -
Do you know if it's possible on an iPad to set the image quality/size or do we just have the one size - the photos I've taken, work out at approx 8 x 6cm @300ppi - not that big!
8cm * (1 in/2.54cm) * 300 dpi = 944 pixels (should be 1280 if this is the back camera)
6cm * (1in/2.54cm) * 300 dpi = 708 pixels (should be 720 if this is the back camera)
The back camera on iPad 2 is 1280x720 = 0.92Mp. No way to increase that. -
Does anyone know what the difference is in the various dates in LR?
Does anyone know what the differences are between the following:
Date Time Original
Date Time Digitalized
Date Time
I understand that Date Time Original is the capture time and that Date Time is capture time except when the image is a copy of another image that was created using Edit In... So, what is Date Time Digitalized?
Thank you.
BrianThe SOL is 4 years in TX and the DOFD is usually the first time it hits 30 days late and is not brought back current
Maybe you are looking for
-
Custom field added by AET is not editable - not added to BOL structure
Hi , We had created a new field using AET in Products Assignment Block of Campaigns as a line item.This is a drop down field. But in WEB UI,this field is being displayed as non-editable dropdown. In AET, we opted Business Object as MKT_CPG and subobj
-
An exception occurred during the call of a business method
An unexpected exception occurred during the call of a business method...Im calling the business object thru the business Delegate.Im calling the business method with an argument as hash table .. And Im using Oracle 9i application server.. Hash table
-
My first gen Ipod went in the wash and now I cannot get wifi on it.
Well my first generation ipod touch accidently went in the wash, and now when its working again I cannot get any wifi on it. I have tried reset the network settings and the ipod my still no luck.
-
Hi, I have my BW dev cltn connect to source system 630 ..now the client 630 has been dropped and it has to be connected to 650...what sholud be my steps...i ahve seen BDLS transaction but can any 1 who has done it b4 guide me. Thanks Prashant
-
Util_File package with multiple users
I am using util_file package to spool data into file . I have two users with different data . I have given access to both the users to execute util_file package . Now how does my stored procedure knows which user's data to take . Thanks,