If they are truly the same data, you should prevent them from being
added twice.
If they are clones/copies, then you can always delete the uid before
copying it. However if you use strongly-typed classes instead of
dynamic objects you shouldn't have this problem provided you clone them
using
Alex:
Thanks,
I edited the code :
private function addFromTopDG():void {
var obj:Object = ObjectUtil.copy(fromDG.selectedItem);
obj.mx_internal_uid = UIDUtil.createUID();
(toDG.dataProvider as ArrayCollection).addItem(obj);
obj = null;
}
this way can change the uid,
you said I can
.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ju Aedis
Sent: Thursday, April 12, 2007 12:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [flexcoders] mx_internal_uid Problem in Add Data
Alex:
Thanks,
I edited the code :
private function addFromTopDG():void {
var
3 matches
Mail list logo