Hi,

I'm trying to copy an access point with CApAccessPointItem::CopyFromL(const CApAccessPointItem &aCopyFrom) function.
I'm able to use CApDataHandler::CreateCopyFromL(TUint32 aBaseId) and CApDataHandler::CreateFromDataL(CApAccessPointItem &aApItem) ,but with the first function ( on CApAccessPointItem class ) not.

The code is :
Code:
CCommsDatabase* commDb=CCommsDatabase::NewL();   
CleanupStack::PushL(commDb);
CApSelect* select = CApSelect::NewLC(*commDb,KEApIspTypeAll,EApBearerTypeAll,KEApSortUidAscending);
CApDataHandler* handler=CApDataHandler::NewLC(*commDb);
	
TUint32 id1=7;
TUint32 id2=8;
	
CApAccessPointItem* item1 = CApAccessPointItem::NewLC();
CApAccessPointItem* item2 = CApAccessPointItem::NewLC();
	 
handler->AccessPointDataL(id1,*item1);
handler->AccessPointDataL(id2,*item2);
	 
item1->CopyFromL(*item2 );

TBool e=ETrue;
handler->UpdateAccessPointDataL(*item1,e);
All the capabilities needed are included... I tryed differents kinds of access points (open,wep,wpa) but always the code doesn't work.
Any idea ?

thanks.

Ste