Move command error

Discussions about CSEntry
Post Reply
Ish

Move command error

Post by Ish »

I keep getting this error Entry Message E91188 Unable to 'reenter DOC' -target-item-field is a skipped field {in var COV post proc}

I am designing a CAPI data entry application, that asks the if there is any insurance Q2. If there is the program skips to an insurance form to question COV further down . After the insurance form is complete it tries to go back up to DOC. This is when I'm getting the error.

My code is
PROC COV
move DOC;
josh
Posts: 2403
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Move command error

Post by josh »

You cannot move to a field that was previously skipped. You need to structure your application in such a way that you don't skip the field DOC or so that you move to a field other than DOC (one that was not skipped).

You are probably best off putting the insurance section immediately after Q2 (is there any insurance) and then skipping over the insurance section if there is no coverage. The order of fields on your form would be:

-Q2 (is coverage)
-insurance question 1
-insurance question 2
-insurance question 3
...
- DOC (non-insurance question)
...

Then in your logic you would have:

PROC Q2
if Q2 = 0 then
// no insurance - skip insurance questions
skip to DOC;
endif;

In general trying to jump back and forth in a form is problematic. If you can keep a linear flow with skips in it your application will be much easier to build.
Post Reply