• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Any examples of "Connect to XML" Data Service usage?

New Here ,
Aug 03, 2010 Aug 03, 2010

Copy link to clipboard

Copied

Hi All,
I'm a novice in Flex and learning with self experimentation. However, I'm at a complete loss when trying to use the code generated by Flex 4's "Connect to XML" Data Services.
I'd like to load a local XML file dynamically into my flex application and fill a combobox with the values fetched from the XML.
Now the Data Service generated nice package and classes to read this XML file, but I'm not sure how to use in to define my combobox's dataprovider.
Not able to figure out how to assign the token to the CallResponder.

Can anyone please point me to an example code that uses this auto generated class and it's methods?

Views

621

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 03, 2010 Aug 03, 2010

Copy link to clipboard

Copied

With the DCD workflow, connecting to all types of services has been made very easy.

After you complete the service introspection and generation using the DCD wizard, switch over to design view and drag and drop a combo box. Now right click on the combo box and click on "Bind to data". It opens a popup window where you can choose which service's result (a getData() method, say) and you can also choose the labelField, which is the data displayed on each ComboBox item.

does this answer your query, or do you still want to know what the generated code is all about ?

balakrishnan v

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 03, 2010 Aug 03, 2010

Copy link to clipboard

Copied

LATEST

Awesome.

Thanks so much Bala. Flash 4 simply rocks! My problem solved in a ziffy!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines