Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-18-2005, 06:22 PM   #1
THPRD
Registered User
 
Join Date: Nov 2005
Posts: 1
Default Shared Objects Problem on handheld device

I'm wrapping a project for our maintenance department that will allow them to collect information about tasks performed (mowing, watering, etc) on a handheld device. When reconnected at a PC, the application uploads an xml object (saved as a shared object) to our webserver for processing.

Everything works great when the application is tested with the handheld connected to the PC. However, calls to write to a shared object while the handheld is disconnected are ignored or don't run (no error or anything appears in the flash movie). Is this is a limitation of the sharedObject function, or is it related to the device(dell axim x51/30) itself?

Here is the code that I use to save an entry to the object:

uploadXML = SharedObject.getLocal("uploadXML");//from file on pda
uploadXML_xml = uploadXML.data.uploadXML_xml;
savedWork = uploadXML_xml.createElement("savedTask");
uploadXML_xml.firstChild.appendChild(savedWork);
uploadXML_xml.firstChild.lastChild.attributes.work Date = taskDate;
uploadXML_xml.firstChild.lastChild.attributes.star tTime = startTime;
uploadXML_xml.firstChild.lastChild.attributes.endT ime = endTime;
uploadXML_xml.firstChild.lastChild.attributes.task Completed = taskCompleted;
uploadXML_xml.firstChild.lastChild.attributes.trav elTime = travelTime;
uploadXML_xml.firstChild.lastChild.attributes.task ID = jobID;
uploadXML_xml.firstChild.lastChild.attributes.rout eNumber = routeNumber;
uploadXML_xml.firstChild.lastChild.attributes.prop ID = propNum;
uploadXML_xml.firstChild.lastChild.attributes.empn um = empID;

uploadXML.data.uploadXML_xml = uploadXML_xml;
uploadXML.flush();

Again, this works without a hitch if the handheld is connected to the PC, so I'm at a loss as to why no connection=no writing to object. Any help would be greatly appreciated!

Ethan
THPRD is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared Objects, visibility preperty vard3000 ActionScript 2.0 0 03-10-2005 06:08 PM
shared objects :) lovely til ActionScript 1.0 (and below) 2 02-27-2005 11:33 AM
:confused: Shared objects amongst multiple flash movies neildevine ActionScript 2.0 2 02-22-2005 09:54 PM
Shared Objects Other than text fields? nappy101 ActionScript 1.0 (and below) 1 08-29-2002 11:40 AM
Shared Objects for user history SpiderJerusalem ActionScript 1.0 (and below) 2 08-13-2002 03:21 PM


All times are GMT. The time now is 07:52 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.