Re: Updating screen rows in INPUT ARRAY
Posted in 1996
On 1 Apr 1996, Richard Spitz wrote: } Dear fellow Informixers, } } I need a solution for the following problem in I-4GL (4.1x): } } We have an INPUT ARRAY session where some fields cannot be updated } within this session, because they must be the same for all rows with } a common date. Currently we let the user update these fields by pressing } "F9", which calls a function with an INPUT statement to edit these } values. On return, the new values are displayed to the current row } only. } } How can I change the code so all rows for that date are updated on the } screen? I've done this in other programs by embedding the INPUT ARRAY } in a WHILE loop, exiting the INPUT array session, updating the data } and loop back into the INPUT array. The problem is putting the cursor } back to the row that was just being processed, and the kludgy solution } to this (working with a NOENTRY field/NEXT field combination) was not } liked by the users. } } Is there any other way to update rows within an INPUT array session? } } Regards, Richard } -- } +----------------------------+-------------------------------------------+ } | Dr. Richard Spitz | INTERNET: spitz@ana.med.uni-muenchen.de | } | EDV-Gruppe Anaesthesie | Tel : +49-89-7095-3413 | } | Klinikum Grosshadern | FAX : +49-89-7095-8886 | } | 81366 Munich, Germany | | } +----------------------------+-------------------------------------------+ } Two things might be important to remember here. You should be able to display your changed data without leaving the input array. You need to preserve your cursor location(s) as they were before your displays and keep track of which screen rows were displayed at the point of our F9. While a little complicated it should be fairly easy. What I don't know about is what happens to those rows which you do not re-display at that time. After the update you describe, will they display properly as you scroll up or down to them? Good luck -- Con Woodall Colorado St. U.; Veterinary Teach. Hosp.; Ft. Collins CO 80523, USofA; 970-491-1244 FAX 970-491-1205 cwoodall@vth1.vth.colostate.edu --