Skip navigation
Currently Being Moderated

1120 Access of Undefined Property Error?

Jun 27, 2011 9:42 AM

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>

 

 

 
Replies
  • Currently Being Moderated
    Jun 27, 2011 8:55 PM   in reply to Emily LaMunyon

    looks like you are trying to set getCORNER_REPORTS_Doc (result = "getCORNER_REPORTS_Doc = getCORNER_REPORTS_DocResult.lastResult[0]

    as CORNER_REPORTS_Doc") but it is not a variable - i'm guessing you meant cORNER_REPORTS_Doc

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points