| Ultrashock Forums
• Runtime binding XMLConnector to DataSet |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
|
|
2004-02-18
#2 |
||
|
|
|
2004-02-19
#3 |
||
|
Binding
No real luck yet! But, my location was not quite right and should have been: srcEndPoint.location = "trips/trip"; This at least gets the data into the DataSet, but it goes in as a string (XML) rather than as an array. So I can't access the dataSet. It's frustrating enough to make me want to change jobs, right now... I cannot find anything anywhere to help. The MM help files are all very well, but they don't take you through a proper and useful example from start to finish, if you want to script it. I think I need to apply a custom formatter of some sort, but try following the help files to make it work! Impossible... Matt |
|
|
|
2004-02-19
#4 |
||
|
Hi Again Matt, I have resolved my problem and may be able to help you out. In my situation I have used the component inspector to bind components. Then change the URL address (actually add var to php call) and trigger the xml connector. It all updates automatically. As you are binding your components with actionscript only you may need to use the ComponentMixins class which will enable you to use the refreshDestinations or refreshFromSources methods which update all bindings from a source or to a destination. You may need to include the DataBindingClasses SWC from your Classes Library into your .fla Library if not present to enable the class code to compile. Hope this helps. |
|
|
|
2004-02-19
#5 |
||
|
Hello chap, You wouldn't believe it, but that's exactly what I was just working on! Exactly the very same thing - visually bind the DataSet to the XMLConnector, because as you say, we both know it works. Then change the URL to the Connector... I haven't fully tested this yet, but I think it's probably the way to go - the more I think about it the more I like it. The DataSet can sit on _level0 with all my script and everything that needs to can be bound to from anywhere else. I just need to make sure that I can get to the right data from myXML within the DataSet. Let me know how you get on with this - you're dataGrid should be pretty good now? I'm going to work on this method over the next few days to test a few scenarios, and I'll let you know how it goes on this thread. Nice work fella... it's good to have some feedback from someone! ;-) |
|
|
|
2004-02-22
#6 |
||
|
Hi quest4, Do you know how to extract a complete XML file out of a DataSet object? I'm beginning to make some progress with all of the bindings, but I'd like to be able to export a complete XMl file rather than a deltapacket... any ideas? Cheers, Matt |
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


5 comments
| 964 views


Linear Mode
I am having great difficulty trying to get Datagrid to refresh to bound xml connector during runtime also. Not much info at MM or elsewhere on net for this issue.
I have set up listener on the bound xml connector which broadcasts when connector receives new data from URL + trigger, but still unsuccessful in updating bound components.
Have also tried Binding.execute() without any success.
Anyone have any ideas? Any help will be much appreciated.