Control - Accept this case

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
leulae
Posts: 46
Joined: December 16th, 2016, 5:51 am

Control - Accept this case

Post by leulae »

Dear All,

When editing a case at last it ask “Accept this case”, if press “NO” it goes to the place where it was.

I need to change the behavior to, -> when press “NO”, -> to exit from the data Entry.

Can anyone suggest me a solution please?

Need to do this in android as well PC

Thank you all

Leulae
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Control - Accept this case

Post by aaronw »

When you say "exit from the data Entry" which of the following describes the desired behavior:
1. Exit from data entry and return to the case listing
2. Close the CSEntry application
leulae
Posts: 46
Joined: December 16th, 2016, 5:51 am

Re: Control - Accept this case

Post by leulae »

Thanks,

Option 2, Close the CSEntry application

Leulae
aaronw wrote:When you say "exit from the data Entry" which of the following describes the desired behavior:
1. Exit from data entry and return to the case listing
2. Close the CSEntry application
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Control - Accept this case

Post by aaronw »

Unfortunately, I don't believe this is possible. However, I tried to get as close to the desired behavior as I could.

First, turn off "Confirm end-of-case" under Data Entry Options.

The following will work on Windows. However, on Android you will be left at the "Entry Applications" menu.
numeric result = accept("Accept this case?", "Yes", "No");

if result = 2 then
    stop(1);
endif;
If you are closing CSentry, so you can open another application this might make sense:
numeric result = accept("Accept this case?", "Yes", "No");

if result = 2 then
    if getos() = 10 then
        // Windows
        stop(1);
    else
        // Android
        execsystem("browse:https://www.census.gov", stop);
    endif;
endif;
Now on Android the behavior will be:
  • 1. Close current case and go to "Entry Application" menu
    2. Minimize CSEntry
    3. Open the browser (replace with an app that makes sense)
leulae
Posts: 46
Joined: December 16th, 2016, 5:51 am

Re: Control - Accept this case

Post by leulae »

Thanks aaronw

I will try.

Leulae
Post Reply