How to reflect data changes back to the external XML

Hi,
In one of my application,
I use data for (any of) my Flex component from an external XML (thru a HTTPService) request & a Java backend function provides the XML data.
I bind the HTTPService result to XMLListCollection & I supply this data for the dataprovider for my component.
So, if I make any data changes (by adding / creating new items ) in the component, it will be reflected in the XMLListCollection (resulting in adding / modifying new nodes)
My Question is how to make these data changes reflect back in the external XML?
- Sen

Well not necessarily. While binding directly to the service in view is fast is
also not very clean and reusable. Try to put your data inside model classes,
view binds to those classes instead of the service. Also use a custom class to
wrap your service and that gives you flexibility to change server properties or
make 2 different calls with the same service. You need to write code yourself
but in the end it will be easier to adjust changes. So when you load data you
actually populate the model instead of bringing data straight to the view. This
code usually gets executed inside a command class. So to be more specific:
CustomService
- var HTTPService
function getData
-- in here you have the service calling the get data method on the service
function setData
-- in here you have the service calling the save data on the server
View
var model:DataModel
- controls binds to the model and display data from model
- when click on save or whatever gesture you use for saving you dispatch an
event with the new data.
You  should use some MVC framework to do this for you..
When event is dispatched the framework will create a command class instance and
run it ...
GetSaveCommand
- var service:CustomService
service.saveData(event.Data)
service.getData()
function result()
function fault() - for the success or fault of the service call ...
you can perform additional data transformation here id needed or employ the use
of other class to do that if necessary ...
Hope this makes sense. It is more work involved as you can see.
Or you can go with 2 HTTPService instance in the view ...
C

Similar Messages

  • How do I change back to the older version of Leopard?

    Hi,
    Unfortunately since I installed Snow Lepard, I have been having a few issues. Thumbnails will no longer show in XDCAM Transfer and I cannot make QT my default for all video formats - when I try it simply reverts to real player and will only play sound.
    The worst problem however is the fact that I have just recorded 30 minutes of footage and when I put the SXS card in my Macbook's Express Card Slot, the screen goes dark and it tells me I need to restart the machine. How am I meant to get the footage from the card?
    As this is an integral part of my business, it would be wise for me to change back to the old version, until Sony finds a fix. How am I best able to do this?
    Thanks

    Hi,
    "The worst problem however is the fact that I have just recorded 30 minutes of footage and when I put the SXS card in my Macbook's Express Card Slot, *the screen goes dark and it tells me I need to restart the machine.* How am I meant to get the footage from the card?"
    That is referred to as a, "kernel panic". Often caused by software/hardware issues, RAM, incompatible drivers, etc. Read here: How to Resolve Kernel Panics
    *"As this is an integral part of my business, it would be wise for me to change back to the old version, until Sony finds a fix. How am I best able to do this?"*
    Back up important data and do an Erase and Install for 10.5
    http://support.apple.com/kb/HT1544
    Carolyn

  • HT204088 For some reason I am in the US store, how do I change back to the Australian App Store?

    FOr some reason I am in the US App Store, how do I change back to the Australian App Store on my iPad as I can't make purchases? It keeps telling me my account is not with the US store and to change to the Australian store.

    Settings > iTunes & App Stores > tap your Apple ID: > View Apple ID > Country/Region
    If you find that it is set to the correct region, log out of your iTunes Store account, restart your iPad, and sign into your account again.
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • Change Apple ID country,then change back, all the data of apps store is gone

    Use iPhone 5s change Apple ID country,then change back, all the data of apps store is gone,the apps I uninstall but buy before if I want to buy before,I need to buy again!Is there any way that I can fix it? Thank you!

    Apple ID is only valid for purchases in the Swiss iTunes Store.
    The issue is that your credit or debit card credentials must be associated with the same country where you reside.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article

  • I'm trying to download a song on the iTunes app but some how I'm in the US store, how do I change back to the Australian store?

    I'm trying to download a song on the iTunes app but some how I'm in the US store, how do I change back to the Australian store?

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3. Tap on your Apple ID
    4.Tap "View Apple ID"
    5. Enter your user name and password.
    6. Tap "Country/Region."
    7. Tap "Change Country/Region"
    8. Select the country/region where you are located.
    9. Tap "Done".
    Note: If the change doesn't take effect, sign out of account and sign in again.

  • I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • I've just found the keyboard shortcut in Garageband for 'copy region' had changed from cmdC to ctrlC. I went to Preferences and clicked Restore Defaults for shortcuts. Now its altC . How can I get it back to the original commands.

    I've just found the keyboard shortcut in Garageband for 'copy region' had changed from cmdC to ctrlC. I went to Preferences and clicked Restore Defaults for shortcuts. Now its altC . How can I get it back to the original commands.

    When I use find file http://www.macupdate.com/app/mac/30073/find-file (which does tend to find files that "Finder" can't), it's not coming up with any other itunes library files that have been modified in the past week, which I know it would have been - unfortunately, I don't have a very recent backup of the hard drive.  It would be a few months old so it wouldn't have the complete library on it....any ideas?  I'm wondering if restarting the computer might help but have been afraid to do so in case it would make it harder to recover anything...I was looking at this thread https://discussions.apple.com/thread/4211589?start=0&tstart=0 in the hopes that it might have a helpful suggestion but it's definitely a different scenario.

  • After receiving a Generator error and prompt to restart. I restarted Photoshop and the app disappeared off my computer. How do I get it back. The cloud widget says it is all up to date?

    After receiving a Generator error and prompt to restart. I restarted Photoshop and the app disappeared off my computer. How do I get it back. The cloud widget says it is all up to date?

    CC desktop lists applications as "Up to Date" when they are not
    -http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html

  • For some reason I am ending up in the Spanish App Store. How do I change back to the US store?

    For some reason I am ending up in the Spanish App Store. How do I change back to the US store?

    What device are is this happening on....
    GB

  • The outer surrounding frame has changed to a weird looking green colour. How do I get it back to the way it was?

    The outer surrounding frame has changed to a weird looking green colour. How do I get it back to the way it was?

    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages

  • My phone was stolen, I have moved it in lost mode,but I can see that whoever has it,is changing phone name and can use it until I activate lost mode again.Can I do it permanently? How can I cancel ICloud back for the stolen phone,it blocks Cloud memory?

    My phone was stolen, I have moved it in lost mode,but I can see that whoever has it,is changing phone name and can use it until I activate lost mode again.Can I do it permanently? How can I cancel ICloud back for the stolen phone, as I cannot delete the stolen phone backup (says that backup is being in use) and this is keeping memory occupied in the Cloud and I cannot back-up the other devices.

    http://support.apple.com/kb/ht2526

  • HT5467 how do you change back to the south african store from the american store on your settings??

    how do you change back to the south african store from the american store on your settings??

    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region...change here.

  • TS3274 I was just moving some of my apps around and the background changed to an x-ray look  ,,,  I don't think  I touched anything ,,, How do I get it back to the original ????

    I was just moving some of my apps around and the background changed to an x-ray look ,,, I don’t think  I touched anything ,,, How do I get it back to the original ????

    Settings>General>Accessibility>Invert Color>Off

  • My Reader11.0.07 is showing a dark grey background today. Why? How to change back to the original white.

    My Reader11.0.07 is showing a dark grey background today. Why? How to change back to the original white.

    I have no idea what you are asking; can you post a screenshot of what you see: https://forums.adobe.com/thread/1070933

  • I wanted to purchase an item on my iPad and I was redirected to the US store, now I don't know how to change back to the Tanzania store, which is the store my account is linked to.how do I change back?

    I wanted to purchase an item on my iPad and I was redirected to the US store, now I don't know how to change back to the Tanzania store, which is the store my account is linked to.how do I change back?

    Change your country on iPhone, iPad, or iPod touch
    Tap iTunes Store, App Store, or iBooks Store.
    At the bottom of the Featured page, tap Sign In.
    If you're already signed in, skip to step 5.
    Tap Use Existing Apple ID.
    Enter your Apple ID and password and tap OK.
    Tap your Apple ID.
    Tap View Apple ID or View Account.
    Tap Country/Region.
    Tap Change Country or Region.
    Tap the Store menu and tap your country.
    Tap Next.
    Review the Terms and Conditions and Apple Privacy Policy.
    Tap Agree if you agree to the terms and conditions.
    In the prompt that appears, tap Agree.
    Select a payment method and enter your payment information.
    Enter your billing address and tap Next.
    http://support.apple.com/kb/ht6119

Maybe you are looking for

  • What's wrong! about MySQL C APIs

    #include <mysql/mysql.h> #include <stdio.h> int main() MYSQL mysql; mysql_init(&mysql); mysql_options(&mysql,MYSQL_READ_DEFAULT_GROUP,"your_prog_name"); if (!mysql_real_connect(&mysql,"host","user","passwd","database",0,NULL,0)) fprintf(stderr, "Fail

  • Ipod unknown error - does not update

    I got my battery changed on my ipod, and then I reinstalled the ipod software, but every time I try to upload songs onto it, it keeps saying: Attempting to copy to the disk failed. An unknown error occurred (-69). Has anyone else encounted this? PLEA

  • [JDev 10.1.2] Compare JSTL var attribute with sessionScoped bean attribute

    I'm new to JSTL. I'm looking for a way in JDev 10.1.2 to compare a sessionScope bean attribute (sessionScope.User.Username) and a JSTL attribute variable. For this purpose I've developed the following code: +<%@ taglib uri="http://java.sun.com/jstl/c

  • Hom System Copy ECC 5.0 HPUX from PA-RISC to Itanium

    Hi gurus, I want to replace an old PA-risc server (rp5470) with a new Itanium server (rx6600) even in HPUX operative system where is installed a central instance of NW04 Ecc 5.0. It is possibile to procede with a simple Homogeneus System Copy, changi

  • How to read some images from file system with webdynpro for abap?

    Hi,experts, I want to finish webdynpro for abap program to read some photos from file system. I may make MIMES in the webdynpro component and create photos in the MIMES, but my boss doesn't agree with me using this way. He wish me read these photos f