I am in data-centric hell and want out

I am trying to learn how to work with the new FB 4 data-centric features. So, I have a s:List using TileLayout, I call my ColdFusion service and the product list gets populated. So far so good.
Now, because it’s a big list, I want to filter the data by categories listed in a ComboBox (in Flex 3 projects I have created, my data provider for the list was an ArrayCollection which I could apply filters to, no problems). My question:
What do I filter? When I use the data-centric thing, I can’t figure out exactly what the data provider for the list is, so I can filter that. In fact, ‘dataProvider’ is nowhere to be seen in the generated code. When I trace(myList.dataProvider), it comes up as ‘mx.collections::AsyncListView no list’. I am completely lost here.
Any ideas? If anyone knows of a tutorial that covers something similar, I would love to know about it – I have not been able to find one.
Best regards,
Carlos

Hey David,
I have been playing with this DCD for days because I wanted to use it in an actual little project for one of my sites. I learned one thing: the lastResult can be different, depending on what component one is binding to. In the examples you provided, you were using a DataGrid, which ends up with an ArrayCollection as the dataProvider; I have been using a List, whose dataProvider is some ******* thing I could not figure out – for example, I was never able to make it show up in the debugger.
I looked at Tour de Flex, which was updated just a few days ago. The RemoteObject examples I found there use plain old mx:RemoteObject to access data; I did not see any using a DCD-generated service. That makes me wonder why, if this DCD is so great, it is not being used in the latest showcase.
I recreated the same little project, this time using s:RemoteObject to create a service that can be called from any component – that took me less than an hour; so far, it’s being called from 2 different components, each one calling one of the two methods the CFC defines so far. Everything works just as well, maybe faster than in the original project, and I am able to use the debugger to see what is going on.
Now, instead of 5 huge value object AS files, I have two much smaller ones. The new debug SWF is 109 KB, the first one 138 KB – that’s 26% bigger.
So, since I am not into masochism, I will be completing the project using my service. Right now, from my point of view, DCD is OK for prototyping/preliminary testing; it’s fun and very dazzling, but useless.
Thank you for all the help; if you learn of any good stuff about DCD, please post again and let us know.
Best regards,
Carlos

Similar Messages

  • Dear Adobe:  We need more "Data Centric" examples and videos

    Many of my data centric questions are unanswered (for days now).  This tells me that no one in the community knows the answers, which is probably because FlashBuilder 4 and using it against a ColdFusionBuilder 1 server are still so "new".  My customers are not impressed with bandwith sucking flashing, flipping, popping, spinning effects, with help hints. That's "kid stuff".  They only want and care about lightning fast response time, tons of data at their fingertips, and reliability.  They'll add their own images and suffer the bandwidth downside if they choose, but that's up to them.  The things I need to know how to do are very very simple:
    1) Fetch data, into a grid or form (nailed, thanks for the video and examples)
    2) Commit data  changed in the form or grid back to the DB (Not answered)
    3) Create a new record from within the form or grid  (Huh? No video or examples)
    4) Create new form popup windows based on a record selected in a grid (Got it, working good)
    5) Refresh a row in a grid without mucking around with the user's selected row or indexed column (How? Unknown)
    6) Delete a record in a form or a grid and commit the delete to the back end (Again, unknown)
    Basically I need to know CRUD.  Create, Retrieve, Update, Delete
    I'm really struggling with getting the answers to these simple questions. The helps are GREATLY DETAILED but the other side of that same coin is that they give me information overload explaining all the things that CAN be done, when I just need to know the CRUD basics.  Please make some more videos showing CRUD.  FlashBuilder and ColdFusionBuilder are going to be serious candidates for massive data handling only if we can get developers onto this product quickly.
    Massive Data Handling = 200 Tables, 200 fields in each table, 200 indexes, 500 constraints, one third of a billion records total in all tables, and I want to find a specific 4 records, in no more than 4 mouse clicks, and response time of 2 seconds or less.
    Unless I'm being unreasonable, and Adobe products are not the way I should go to achieve these goals.

    Hi Mayank,
    These instructions look fantastic.  They cover the stuff I need to know how to do.   I appreciate your efforts VERY MUCH and am following along dilegently.  I'm trying to transpose your very good and detailed instructions into my own project.   I'm stuck on the following line:
    In your example:
    productService.serviceControl.autoCommit = false;
    I'm transposing it to my project, which should read:
    baa_data_svc.serviceControl.autoCommit = false;
    Because I have a <Declarations> tag of:
        <fx:Declarations>
            <valueObjects:BAA_SBJ id="bAA_SBJ"/>
            <s:CallResponder id="getSBJsResult"/>
            <baa_data_svc:Baa_data_svc
                id="baa_data_svc"
                fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                showBusyCursor="true"/>
        </fx:Declarations>
    When I try to run the project, I get the following error:
    Error: Cannot assign operations into an RPC Service (autoCommit)
    I have tried including and excluding the import:
    import mx.rpc.events.ResultEvent;
    but it makes no difference.
    What am I doing wrong?  I need the autoCommit to be shut off, just like in your example.
    Thanks for your kind help in this matter.

  • I'm disgusted with Verizon right now and want out

    I can't believe what Verizon has done to me over the last couple of months.  It can't even be legal.  I've had Verizon cell phones for 12 years.
    A couple of months ago, I casually called out of curiosity to see how much it would cost to upgrade my phone.  The guy I spoke to, "Kyle," told me if I were to upgrade my Omnia to an Omnia 2, it would cost $70 after an instant rebate and credit I had on my account for a 1 year extension.  I was only casually interested, but he convinced me, and I verbally agreed to a 1 year extension, (My contract was up) for sixty nine dollars and change.  I should have paid it then, but asked him to just bill my account.  Everything was very very clear, and if it wasn't how he explained it to me, I certainly wouldn't have agreed to it.
    My next bill, I got charged $289 for the phone.  I couldn't believe it...  I spent 3 hours (no exaggeration) talking to different customer service guys trying to get this fixed.   They looked in the computer and said there were no notes about the conversation and all said "Sorry, nothing we can do."  I asked to talk to supervisors, and they said they would call me back, and never did.  Importantly, I was also promised an "instant rebate," and not only didn't get it, but didnt get a mail in either!! 
    I was back on the phone the next day, pleading my case to customer service again, for my entire lunch hour, and the best suggestion, at least from the ones that didn't put me on hold indefinitely, was that I could upgrade to the 2 year contract and they would credit my account $125.  So, the verbal contract that I agreed to on the phone was enough to lock me in for a year, but the price they agreed to bill me was not legally binding apparently.   I tried to tell them I never agreed to pay that price, and certainly wouldn't have!!  Nobody cared.  I told them I wanted out, and I wanted to send back the phone, which I didn't need, and had only casual interest in.  I was ignored.
     Stressed out of my mind, and only wanting what was clearly promised to me on the phone, or to simply nullify the contract, I called again that night, and a much friendlier cust service guy told me the same, that I had to upgrade to 2 years, and that they would send me a mail in rebate, and it would knock the price down.  Defeated, I agreed.  I recieved a rebate with an "Invalid purchase date" and am screwed out of that as well.  Here I am with a phone I was ILLEGALLY baited into buying, never wanted for 2 years, and have no recourse whatsoever.
     And of course, now the Droid X comes out... That would have been worth 2 years, but I'm screwed because of a lie, baited with a false price, which was a mistake on their part that I became responsible for against my will ,jerked around for many hours on the phone, and topped off with an invalid rebate.  I am beyond disgusted.. Again, 12 years of patronage, and this is what I get..

    lewisr13 wrote:
    budone wrote:
    natalatalie2 wrote:
    they legally have to record those conversations. call back and tell them you want them to pull the recording. report them to the bbb if they won't and they'll get it resolved for you.
    You dug up a two month post to respond to??? I suspect the OP is long gone. And no, recordings are VZW property and can not be 'Pulled' for a subscriber. Besides recordings from Aug or July I am sure have been recorded over a couple times by now
    Actually 14 months.
    I need to quit living in the past!

  • How i can Catch perticular data from internet and update SAP R/3 data?

    Hi All,
    I want to catch data from internet and want to update those data into SAP R/3 database. So how i can catch those data ?. what will be format of data to update SAP R/3 database?

    Hi,
    You need to create your own BSP pages which would be displayed on internet/HTML.
    Transaction SE80 => Select BSP application.
    Best regards,
    Prashant

  • Difference between Data-centric and Document-centric use

    Hi,
    Can someone suggest what exactly is the difference between Data-centric and Document-centric use and examples if any.
    Thanks in advance.
    Chaitanya

    Maybe it helps if you look at it this way...
    Document centric: document centric use of xml data is data that you always use in its complete form. If you want to use the data, then you always will retrieve it as one entity or you save it as one entity. You are not interested in the xml data / information inside this "package" / document, you are only interested in its total form. Lets say, you have an invoice which can be printed on one sheet of paper. This paper that contains you data, will always be treated in a document driven way, that is, in its total representation: information containted on a sheet of paper (document).
    Data centric. data centric use of xml, is usage of data were the main interest point is focused on only pieces of the total set of xml data within a document. So instead of being interested in the whole invoice, you only are interested in information like "amount of money to be payed" or "invoicenumber".
    Handling of XML data comes with (hidden) costs. Knowing how your data will be used, has to be used, is one of the first steps in designing you environment (and will have an big impact if you choose poorly). For instance, if you know that your data will always be handled (and must be stored) in a document driven way, then it will make sense to store it based on CLOB based XMLType storage. This will garantee best performance retrieval for your xml document. If you now that your xml data has to be stored so that it can be handled in a data centric way, then Object Relational XMLType storage. If conditions are setup properly data retrieval, inserts and updates will be more cost efficient then when based on CLOB XMLType storage.
    There are more differences and "cost markers" when or when not to use CLOB, OR or for instance Binary XML. The first two chapters of the XMLDB Developers Guide for Oracle 11g will give you a good head start making some of those decisions. Be also aware that you probably will have to make compromises. The current state of XML, for example, doesn't have the final solution yet for a uniform storage method.
    Message was edited by:
    Marco Gralike

  • The hard disc of my laptop has crashed and i lost all the data. Now I want to take back up of my I phone and transfer contacts , messages and music back into my laptop , how can I do that. Pl help

    The hard disc of my laptop has crashed and i lost all the data. Now I want to take back up of my I phone and transfer contacts , messages and music etc back into my laptop , how can I do that. Also let me know how I can transfer the contacts into Windows contacts from I phone. Pl help

    Your content will only be where you put it.  It has always been very basic to always maintain a backup copy of your computer.
    You can transfer itunes purchases from your iphone: File>Device>Transfer purchases.
    You can import your pics taken with the iphone as you would with any digital camera.
    You can e-mail the other pics to yourself, they will never be of the original quality.
    You can out a unique contact and calendar entry on the computer.  You should get the option to merge the data when you sync.

  • I have a Iphone 3GS and want to update to the IOS 5, but everytime i try to update my phnoe through ITUNE 10.5.1 its says i have the current version for iphone 4.2.1, how do i get IOS 5, i feel my ipone is so out of date copmared to everyone else's!!

    Hey there
    i have a Iphone 3G, and want to upgrade it to IOS 5, but itunes upgrades say i have the current iphone version 4.2.1. I use ITUNES 10.5.1 which it says on apple is the itunes to download IOS but now what, i eel like iv gone through all the tutorial pages and forums but nothing about not being able to actually pick it up, I feel my phone is way out of date iv tried to restore it to see if it would then pick up a new upload, but still nothing...............Please help me

    Your headline says iPhone 3GS, but your text says 3G.
    iPhone 3G is not compatible with iOS5. 3GS is.

  • I have some long spreadsheets and want to open them at the bottom instead of scrolling down through all the data. How do I do this?

    I have some long spreadsheets and want to go to the bottom to add new data without scrolling down through all the old entries. When I open a table now it goes to the top row and I have almost 300 rows to scroll through. I would like to set the table up to automatically go to the bottom row.

    Zach,
    You have a couple of options. If you use 100% View Zoom, and if you leave a cell selected in the bottom row of the table when you Save and Close the document, it will reopen with that cell in view.
    You could also sort your table in the opposite order and add new rows at the top. Then you wouldn't have to worry about what zoom you use. To insert a row at the top, select a cell in the current top row and press Option-UpArrow. That will add a new blank Top Body Row.
    Jerry

  • I deactivated my apple id and want to add another id to my icloud acc,how can I do this without deleting all my data from my ph?

    There is an option to delete the account, but then it says it will delete all my data, which I dont want to happen.

    When you delete icloud account off your phone it will ask you if you want to keep or delete the data. You will choose to keep and will be ok. The only thing that will reset is photostream, so if that is a concern, back up your pictures.

  • HT204053 I have one icloud id on my mac and want to share with an ipad with a different icloud id.  if I create a new id for both of us will this work?  My concern is losing data on either device.

    I have one icloud id on my mac and want to share photos, calendars, etc with an ipad with a different icloud id.  if I create a new id for both of us will this work?  My concern is losing data on either device. (the mac book pro is new, but has all of the retrieved data from my previous mac book pro)

    You will lose data from whichever was the 2nd to last to sync .
    Don't do it.

  • If I have a repeating event in iCal, can I attach different docs, pdfs, etc., do the events. I am entering lessonplans and want each date to have an attachment.

    If I have a repeating event in iCal, can I attach different docs, pdfs, etc., do the events. I am entering lessonplans and want each date to have an attachment.

    Yes. As you edit each one, you will get a dialog asking whether you want to change all or just the current one.

  • My old computer (a Sony) with my iTunes crashed. I have a new MAC and want to make sure I can keep all of my music (mostly from old CD's that have been lost). I bought iTunes match hoping that would work but it isn't using the data on my phone. HELP!

    My old computer (a Sony) with my iTunes crashed. I have a new MAC and want to make sure I can keep all of my music (mostly from old CD's that have been lost). I bought iTunes match hoping that would work but it isn't using the data on my phone. HELP!

    Since you have purchased a new Mac (which, BTW, is not typed in all capitals) why not buy a Time Capsule <http://www.apple.com/airport-time-capsule/> which is designed specifically to work with OS X and Time Machine?
    You don't say what part of your Sony "crashed." If it was not the HDD it is possible to take the computer apart, put the HDD in an external case, then recover the data off of it (including the music) simply drag-n-drop. If it was the HDD that "crashed" that makes it more difficult.
    If you are able to recover the music from the Sony you can then add it to the iTunes library on the Mac and iTunes Match will then scan, match and upload the tracks to be mirrored in the cloud.

  • My phone was stolen, but I had no data left and so can't locate it till the person who has it tries to use the internet. I backed up all my photos on iCloud, and want to get them on my PC. I installed iCloud onto the PC and still can't find my pictures?

    My phone was stolen, but I had no data left and so can't locate it till the person who has it tries to use the internet. I backed up all my photos on iCloud, and want to get them on my PC. I installed iCloud onto the PC and  followed the instructions and still can't find my pictures, says my photostream folder is empty, but it shows on iCloud that i've used most of my storage which is true, so they must be there somewhere?
    Any ideas? I'd really appreciate the help! Thanks

    Yes, I filed police report, but there is nothing they can do until I get back to them on the tracking. It's been offline. I'm sure the whoever took it can find a way around breaking in the ipad..i really was hoping to get my pictures and videos of my kids back

  • HT1692 I use an iPhone 5, and want to sync my phone calendar and contacts with Outlook 7 calendar and contacts; twpo problems--I now get dozens of new calendars every time, and my calendar will not syncd at all.; meaning that date entries on Outlook do no

    I use an iPhone 5, and want to sync my phone calendar and contacts with Outlook 7 calendar and contacts; two problems--I now get dozens of new calendars every time, and my outlook calendar will not sync at all.; meaning that date entries on Outlook do not come across ot iPhone.

    It is unusual for the calendar to sync and not the contacts in Outlook. I've worked with Outlook for years. You didn't answer what computer OS you are using. If it is Windows, have you tried to reset the sync history in iTunes? Do that by opening iTunes, go to Edit>Preferences>Devices and click on reset sync history. If you have done this and it doesn't help, then we can try and run scanpst.exe on your Outlook file and see if there are any errors. Search your computer for that file, however it normally resides in one of the Microsoft Office folders in the folder Program files. After that, you can see if it will sync.

  • I just purchased a new I phone 5 and want to give my i phone 4 to my grandson so how do I delete all my data?

    i just purchased a new I phone 5 and want to give my grandson my I phone 4. So how do I delete all my apps and other data on my phone ?

    Follow the directions here:
    http://support.apple.com/kb/HT2109

Maybe you are looking for