This content has been marked as final. Show 4 replies
Everything looks fine in your prog.
My suggestion is just a trial an error.
Instead of passing (this.contactsGrid.selectedItem.ContactID), try to pass
In your EditItem function , you can access this contact ID as key.ContactId.
I am again saying just a trial and error.
Hope it works.
Thank you for the suggestion, I gave it a shot but got this error:
ReferenceError: Error #1069: Property ContactID not found on Number and there is no default value.
I'm still pulling my hair out, this is alot harder the cf coding. I wonder how many ppl went through this difficulty or I just have not got grib on this flexy yet.
I have tried a similar way in my application and it worked.
This error may have occured coz ContactId is not getting populated. Are you able to see the ID column perfectly populated?
. One more debugging technique is to trace the results or put in alerts for displaying contactID value.This will help you to figure out wjether the value is getting populated in key or not.
private function EditItem(key:Object):void
Alert.show(Key.toString()); //new line
if( key == null )
e = new SelectionEvent("addItem", key);
e = new SelectionEvent("editItem", key);
If this doesnt show any proper output then try to make key as the type of ContactID (i.e string or Int etc)
I tried your suggestion, the contactID was pass, first click did not populate the firstname, last name but company name and some other fields. The second click (same record) populate all fields correctly. The 3rd click happen exactly the same as first click.
Man, I tell you, this is driving me crazzzzy. Have you see any thing like this before?
thanks again for your help.