i am having a bit of an issue with what i am trying to do. i have a display screen that searches for records, once found it populates them into a subfile in a second display screen. That part works great, i have a option field that allows a user to select a record in the subfile. Once selected i open a third display screen that shows detailed information about that record as well as allows for updating. I am using a readc to detect what record has been selected, it populates the values from the sub field correctly but i cant seem to chain correctly to gather the detailed information pertaining to the correct selection. It simply shows the last record in the subfiles details.
in my physical file i have it keyed by actno, in my logical i have it keyed by zip and actno.
i know i need to chain back to the main file to get the rest of the detail data that corresponds to each record.
in my physical file i have it keyed by actno, in my logical i have it keyed by zip and actno.
PHP Code:
begsr
readc subfile;
dow not %eof;
chain (zip:actno) logicalfile;
if %found(logicalfile);
exfmt scrn3 (update)
update
endif;
readc subfile;
enddo;
Comment