First, I used linked screens. The application is a workers comp accident/injury report. The data is such that if you fill out any of it, you are going to fill out nearly all of it. I wasn't sure whether I should have "Write record" set to Y on all of them, just the first one or just the last. Right now I have it on all 4 in the set and it seems to work.
I believe you only need Write Record = "Y" on the
last of the series.
Second, I have 6 pop-up screens that may or may not appear depending on the response to Y/N fields on the one of the 4 linked screens. For example, the main form will ask if there was a witness to the accident. The Y/N field has a process after slot that contains P:(IF @VALUE="Y" THEN EXEC "I*ACCIDENT*WITNESS"). The WITNESS screen pops up right on cue, but does not seem to be updating the record. I have tried it with and without the Write Record parameter and with and without the F2 Save/G:U function key. No combination seems to work.
There are several things that work together to make a subscreen work. It sounds like you need the "S" option on the /PD.I for the subscreen process. Otherwise, the subscreen runs in its own memory space and doesn't update the main screen's record.
I did notice in the documentation that linked screens must all share a common border. The 4 actual linked screens do so, but the pop-ups are smaller and of varying sizes. Could that be my problem?
Not likely. Linked screens will all run in the same window, but popups don't have that limitation. Interesting that you chose linked screens for this - not that it's bad, but an interesting choice. What was the deciding factor that made linked screens work best?