Hello,
I am attempting to create a form from a coldfusion data service that I connected to in Flash Builder 4. However, I keep getting this error 1120:Access of Undefined Property getCORNER_REPORTS_Doc on line 17. I have searched high and low and cannot find a solution, any help would be greatly appreciated!
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:corner_reports_docservice="services.corner_reports_docservice.*" xmlns:valueObjects="valueObjects.*">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
protected function button_clickHandler(event:MouseEvent):void
{
getCORNER_REPORTS_DocResult.token = cORNER_REPORTS_DocService.getCORNER_REPORTS_Doc(test.text);
}
]]>
</fx:Script>
<fx:Declarations>
<s:CallResponder id="getCORNER_REPORTS_DocResult" result = "getCORNER_REPORTS_Doc = getCORNER_REPORTS_DocResult.lastResult[0]
as CORNER_REPORTS_Doc"/>
<corner_reports_docservice:CORNER_REPORTS_DocService id="cORNER_REPORTS_DocService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
<valueObjects:CORNER_REPORTS_Doc id="cORNER_REPORTS_Doc"/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:TextInput x="43" y="51" id="test" width="165" height="33"/>
<s:Button x="293" y="50" label="Search" width="101" height="38" id="button" click="button_clickHandler(event)"/>
<mx:Form x="45" y="132">
<mx:FormItem label="SURVEYOR">
<mx:Text id="sURVEYORText" text="{cORNER_REPORTS_Doc.SURVEYOR}"/>
</mx:FormItem>
<mx:FormItem label="TOWNSHIP_RANGE">
<mx:Text id="tOWNSHIP_RANGEText" text="{cORNER_REPORTS_Doc.TOWNSHIP_RANGE}"/>
</mx:FormItem>
</mx:Form>
</s:Application>
North America
Europe, Middle East and Africa
Asia Pacific