Hi this is the code ..which is causing the problem...
<?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" > <mx:Script> <![CDATA[ import mx.core.Container; import mx.core.IUIComponent; import mx.core.UIComponent; import mx.controls.DataGrid; import mx.controls.TextArea; import mx.controls.Alert; import components.EditText; public var myTextInput:EditText = new EditText; private function getText():void{ main(this.parentDocument).myDatagrid.editable = true; var dataGrid:DataGrid = main(this.parentDocument).myDatagrid; var selectedObject:Object = dataGrid.selectedItem; main(this.parentApplication).addChild(myTextInput); myTextInput.empCode.text = selectedObject.empcode.toString(); myTextInput.empName.text = selectedObject.empname.toString(); myTextInput.empAge.text = selectedObject.empage.toString(); myTextInput.selectedObject = selectedObject; myTextInput.x = 550; myTextInput.y = 105; } ]]> </mx:Script> <mx:Button id="myBtn" width="76" label="Edit" click="getText()" x="350" y="250"/> </mx:HBox> On Mon, Sep 8, 2008 at 3:11 PM, <mx:AnandVardhan/> <[EMAIL PROTECTED]>wrote: > > Dont paste your files here .. Please just add the piece of code which > you might causing problem. > > Anand > > On Sep 8, 1:47 pm, "bhavya gowda" <[EMAIL PROTECTED]> wrote: > > Here is my Code...Plz explain it ...why the button is showing as > > [object][object]...if i trt to edit the same ro w for the 2nd time.... > > > > On Mon, Sep 8, 2008 at 11:29 AM, HISSAM <[EMAIL PROTECTED]> > wrote: > > > where is source code??please give snippet of the function called at > edit > > > button > > > > > -- > > > ----------------------------- > > > Warm Regards, > > > HISSAM, > > > Soft Engg, > > > iThinkLabs Pvt Ltd. > > > India. > > > website:http://www.ithink-labs.com > > >http://www.yureekah.com > > > ------------------------------ > > > > > > > > main.mxml > > 5KViewDownload > > > > ButtonRenderer.mxml > > 2KViewDownload > > > > style.css > > 1KViewDownload > > > > EditText.mxml > > 1KViewDownload > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---