Page 1 of 1

show function in modify mode

Posted: April 5th, 2014, 9:19 am
by Keith Tomlin
Hi - this is linked a bit to my post yesterday. I have an application where I want interviewers to be able to return to an existing household case, identify individuals within the household who have a specific interview status, and be directed to the existing records for those individuals. The interview status of the individuals is held in a roster which comes at the beginning of the application. I've inserted a form (called a return form) between the roster and the individual's records. The return form is only accessed when the interviewer returns to a case i.e. demode()=modify. On the return form I'd like to ideally be able to produce a show list which selects those individuals with a specific interview status from the roster on the previous form. Where I am struggling is that the show list does not appear at all when I place the logic in the postproc of an item on the return form, even though the return form is placed after the roster that the show list would be using. If I use the accept function in the postproc of the field on the return form (i.e. "Do you want to return to a woman's record to continue interviewing?" then this appears no problem, but the show logic placed after the accept function (if accept=Yes) still does not function, and the user is instead taken directly to the first individual record. Is this problem arising because I am in "modify" mode? I'm puzzled because the same process works fine in add mode.

Any help/advice, as always, very gratefully received.

Thanks

Keith

Re: show function in modify mode

Posted: April 8th, 2014, 2:55 pm
by Gregory Martin
The show function won't appear if there are no items to show in the list. So for whatever reason, your list isn't being populated, and show is returning automatically with a return code of 0.

In modify mode, how do you get to the return form? Do you skip to it or do you advance to it? If you skip to it, and you're in system controlled mode, then the data on your roster will be skipped and likely won't appear in your show statement. Try advancing to the return form instead.