Control - Accept this case

Discussions about creating CAPI applications to run on Android devices
leulae
Posts: 36
Joined: December 16th, 2016, 5:51 am

Control - Accept this case

Postby leulae » February 5th, 2018, 12:43 am

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: 77
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Control - Accept this case

Postby aaronw » February 5th, 2018, 3:17 pm

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: 36
Joined: December 16th, 2016, 5:51 am

Re: Control - Accept this case

Postby leulae » February 6th, 2018, 11:35 am

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: 77
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Control - Accept this case

Postby aaronw » February 6th, 2018, 3:31 pm

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: 36
Joined: December 16th, 2016, 5:51 am

Re: Control - Accept this case

Postby leulae » February 7th, 2018, 1:27 am

Thanks aaronw

I will try.

Leulae


Return to “Android”