Page 1 of 1

Control - Accept this case

Posted: February 5th, 2018, 12:43 am
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

Re: Control - Accept this case

Posted: February 5th, 2018, 3:17 pm
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

Re: Control - Accept this case

Posted: February 6th, 2018, 11:35 am
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

Re: Control - Accept this case

Posted: February 6th, 2018, 3:31 pm
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)

Re: Control - Accept this case

Posted: February 7th, 2018, 1:27 am
by leulae
Thanks aaronw

I will try.

Leulae