uwe jandt 21.Apr.10 05:20 AM a Web browser LC LSXAll ReleasesAll Platforms
Hi all,
I want to use my "lsx data pump" to update person docs in the names.nsf (phone number etc).
key field is the fullname - but:
In the source the fullname is single value, just the first fullname value (CN=John Doe/OU=hisOU/==hisOrg)
the problem is: Not to overwrite the person doc fullname (MV) with this single value.
So is there a way to use Connection.Update(fldLstRecord) to update a data set (notes doc) but without updating the (necessary) key field?
I tried it like this (see comment in the code)
=======================================================
Dim consession As New LCSession
Dim tgtCon As New LCConnection ("notes")
Dim srcCon As LCConnection
Dim fldLstRecordsrc As New LCFieldList (1, LCFIELDF_TRUNC_DATA + LCFIELDF_TRUNC_PREC)
Dim fldLstRecordtgt As New LCFieldList (1, LCFIELDF_TRUNC_DATA + LCFIELDF_TRUNC_PREC)
Dim keySearch As New LCField(LCTYPE_TEXT,1)
.....
Set keySearch = fldLstRecordsrc.Lookup("Fullname")
keySearch.Flags = LCFIELDF_KEY OR LCFIELDF_NO_UPDATE '--- here I try to make the key field non updatable
count2 = tgtCon.Update(fldLstRecordtgt) '--- but when I do that, this code returns 0 and makes no update at all ...
=======================================================
When I turn off the LCFIELDF_NO_UPDATE flag, it updates, but also the fullname field.