Hi All!
I tried to set value to a document property type multiselectlookup from an another in M-Files eventhandler AfterCheckInChanges method.
If the source hasonly one item:
Dim oSingleLU
Set oSingleLU = oApprovedTV.GetValueAsLookup()
oNewApproved.TypedValue.SetValue MFDatatypeMultiSelectLookup, CLng(oSingleLU.Item)
It works correctly.
But if it has more than one items I tried to add it as a multiselectlookup and I get an error message: type mismatch.
On the target and source document proepríties type are same: MultiselectLookup.
Dim oMultiLUs
Set oMultiLUs = oApprovedTV.GetValueAsLookups()
oNewApproved.TypedValue.SetValue MFDatatypeMultiSelectLookup, oMultiLUs
What is wrong in the script?
Anybody has information to correct this script?
Thanks:
Kornél
