Hi - I am a bit rusty subfile-wise and was hoping to find an example of a page at a time subfile that provides position to and blank line input capability on the user's request to add records to the file. I'm particularly curious about the paging concerns involved. What can I say...It's been a while. Thanks in advance.
Software/Hardware used:
ASKED:
October 22, 2012 6:05 PM
UPDATED:
October 22, 2012 6:28 PM
…to add records to the file.
Is the expectation that users will be “adding a record” or “adding records” through the subfile? Is this the intended primary data entry method? Will the entire record be shown? Will there be an option code, e.g., ‘Option 1=Create’?
Tom
Hi Tom… To answer your question…Yes, the expectation is that the user will be adding records via the blank lines provided. This (rather convoluted) program I am being asked to convert to page at a time was initially coded as a load all. Before it began experiencing issues because of the 9999 limit, the load subfile routine was coded to write to the subfile and after exiting the input data file read/write loop it would check for either the NO records loaded condition or whether the user had requested via F6 key to add records. If either condition found true, it would load 10 blank lines to the subfile for data entry. What is happening now however, is that the data file has grown considerably. The user is presented with the maxed out subfile and immediately presses F6 to ADD. Without getting too into the admittedly bizarre sequence of events…. because we check for the 9999 condition , pressing F6 is no longer able to comply with the request to add blank lines.
The current screen does show the field values needed for content entry to the data file.
When doing an ’1=Create’ in the past I’ve kept that line as part of the subfile control record, with a 1 in the option field and a value (or values) in the primary field(s) directing the program to an entry screen/routine.