Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Duplicate Item key?
If I use strings as item keys, SendItems event generates duplicate item key.
Please find my attached video.
Please find my attached video.
Comments
Also, please confirm the version of your control.
I tried to use numbers as item keys, and it works fine. It fails if I set the keys to alphabetic format. It also fails if I remove the spaces from the keys.
Thanks, Ariel
Here comes the code.
searchCriteria = rpf<
RETR_CRITERIA_RPF$
>
searchPath = rpf<
RETR_DATA_PATH_RPF$
>
jointTable = rpf<
RETR_JOINED_FILE_RPF$
>
validPattern = rpf<
RETR_VALIDATION_RPF$
>
no.of.criteria = dCount( searchCriteria,
@vm
)
old.criteria =
''
for
i =
1
to
no.of.criteria
otherInfo = searchPath<
1
, i> :
@svm
: jointTable<
1
, i> :
@svm
: validPattern<
1
, i>
old.criteria< i> =
1
:
@vm
: searchCriteria<
1
, i> :
@vm
: searchCriteria<
1
, i> :
@vm
:
@vm
:otherInfo
next
i
call
set_property(
@window
:
".OLD_CRITERIA"
,
"OLE.ItemList"
, old.criteria)
I tried to use
old.criteria< i> =
1
:
@vm
: i :
@vm
: searchCriteria<
1
, i> :
@vm
:
@vm
:otherInfo
Thanks,
Ariel
I'm thinking carriage returns or something for example?
I created a simple RDK to look at, please find the attached file.
Thank you, Ariel
At any rate, you are free to download version 4.0.1 RC4 to confirm that it works on your end.
Cheers, Ariel