Partially saved cases in completion report

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
Qureshi
Posts: 3
Joined: December 3rd, 2019, 5:17 am

Partially saved cases in completion report

Post by Qureshi »

Hello everyone,
If I have selected " Option>Allow partial save " in an android application then how can I count partially saved cases in a completion report?
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Partially saved cases in completion report

Post by aaronw »

Take a look at the ispartial function: https://www.csprousers.org/help/CSPro/i ... ction.html

From a menu application you'll loop over an external dictionary (e.g., HOUSEHOLD_DICT) and increment either the partial or complete count based on the result of ispartial:
numeric partial_count = 0;
numeric complete_count = 0;

forcase HOUSEHOLD_DICT do

    if ispartial
(HOUSEHOLD_DICT) then
        inc
(partial_count);
   
else
        inc
(complete_count);
   
endif;

enddo;
Post Reply