# \[object Object\] error in flex4

**URL:** <https://forum.kirupa.com/t/object-object-error-in-flex4/320189>\
**Category:** web dev\
**Created:** [March 16, 2011, 7:35am UTC](https://forum.kirupa.com/t/object-object-error-in-flex4/320189 "2011-03-16T07:35:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kreuel](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kreuel](https://forum.kirupa.com/u/kreuel)\
**Post date:** [March 16, 2011, 7:35am UTC](https://forum.kirupa.com/t/object-object-error-in-flex4/320189/1 "2011-03-16T07:35:35Z")

</div>

hi everyone, im a newbie in programming and developing a simple application in flex4 with coldfusion as my back end and MYQSl as my database.

```
im trying to output my database information in a text input field in flex by using remoteObject(cfc). im getting an error [object Object] but when i bind it to a dataGrid it works fine. every information regarding this will be greatly appriciated. thnx

```

sample code:

\<fx:Declarations\>  
\<mx:RemoteObject id=“myService” destination=“ColdFusion”  
source=“newVirtualJaialai”  
result=“resultHandler(event)”/\>  
\</fx:Declarations\>

\<mx:Button label=“Get Data” initialize=“myService.getBranchName()” x=“50” y=“50”/\>

```
&lt;mx:DataGrid dataProvider="{myData}" id="dataGrid" /&gt;
&lt;mx:FormItem label="Username:" &gt;
    &lt;s:TextInput id="username" {myData}/&gt;        
    &lt;s:Label /&gt;
&lt;/mx:FormItem&gt;
```
