With the FDS 2.01 upgrade the Flex Data Services CRM Example Application will not work. Ths Adobe Devnet article demonstrates FDS data retrieval with ColdFusion. The main application file, companyapp.mxml, will no longer compile.

view plain print about
11 Error found.
2
3Error /cfcrm/companyapp.mxml:256
4Implicit coercion of a value with static type Object to a possibly unrelated type String.<br/><br/>255:     <mx:Binding source="zip.text" destination="company.zip"/>
5256:     <mx:Binding source="companyIndustryCombo.selectedItem" destination="company.industry"/>
6257:


This CRM example has a panel with datagrid on the left which lists companies, and the same view has a detail panel on the right where company information can be entered or updated, as well as an employees tab where employees per company can be added, updated, or removed.

When the application loads the company detail panel on the right has a combobox for Company Industry, which itself has a binding to the industry property in the Company class for the currently viewed company.

Flex CRM App

The error shown above is in the mx:Binding tag on line 256. It regards the conversion of an Object, companyIndustryCombo.selectedItem, to a String, company.industry. Flex 2.0 must have silently performed this downcasting automatically since the error above did not occur in Flex 2.0, but does occur with 2.01.

[More]