Hi wmUsers,
I have a scenario where i need to separate certain documents from Doclist. Criteria is based on a field in document which is repeatitive , i need to seperate them. For ex:
Doc[0]:
FieldA:100
FieldB:abc
FieldC:wqeqw
Doc[1]:
FieldA:101
FieldB:abc
FieldC:32qqew
Doc[2]:
FieldA:100
FieldB:fafdaf
FieldC:iuiuii
Doc[3]:
FieldA:102
FieldB:abc
FieldC:wqeqw
Doc[1]:
FieldA:101
FieldB:trttr
FieldC:pipioioi
Result:-------- (Three sets of documents)
First Set:—
Doc1[0]:
FieldA:100
FieldB:abc
FieldC:wqeqw
Doc1[1]:
FieldA:100
FieldB:fafdaf
FieldC:iuiuii
Second Set:—
Doc2[0]:
FieldA:101
FieldB:abc
FieldC:32qqew
Doc2[1]:
FieldA:101
FieldB:trttr
FieldC:pipioioi
Third Set:----
Doc3[0]:
FieldA:102
FieldB:abc
FieldC:wqeqw
Kindly suggest an efficient way to do it. Thanks in advance…
Regards,
Niteesh:)