Page 1 of 1

Duplicates Report in Menu

Posted: July 14th, 2020, 2:04 am
by Pinalli
Dear Cspro team,
I want to develop a menu that allows the supervisor to check for duplicates in all data synced by Bluetooth to his tablet. After using using fileconcat to concatenate the all data received, I need help on a code to generate duplicate report in the menu program.

Re: Duplicates Report in Menu

Posted: July 14th, 2020, 6:23 am
by josh
In CSPro 7.4 you can use the set access statement (https://www.csprousers.org/help/CSPro/s ... ement.html) to access only the duplicate cases. For example if you do:
set access(MY_DICT, CaseStatus.Duplicate);
then if you do a forcase on the dictionary you will only load the duplicate cases. So you could do something to generate the report:
forcase MY_DICT do
...
enddo;

Re: Duplicates Report in Menu

Posted: July 14th, 2020, 7:43 am
by Pinalli
Thanks Josh