There are two parts: heads and details in the contents of a page: the head is mainly some query conditions and the fields from the previous page; the detailed content division displays a series of records inquiry according to the conditions - additionally, each record has Some fields can be edited and added on this page. The general such page will also have some content that checks editing or adding, when we edit a certain field, click the "Check" function, usually check the cursor is the first part of the detailed part. Record a field or page header. But if you record very much in the details, we check when we check it (), don't know which field of the record just edited or added. The following statement can be easily positioned before the checking processing class page turns.
/ / Judgment whether the cursor is in the detailed part (getList_Start_Index is more than zero, in the field)
IF (Integer.Parseint (NYUURYOKUFORM.GETLIST_START_INDEX ())> 0) {
NYUURYOKUFORM.SETFOCUS_NAME (NYUURYOKUFORM.GETFOCUS_NAME () " "
NYURYOKUFORM.GETLIST_START_INDEX ());
} else {
NYURYOKUFORM.SETFOCUS_NAME (NYUURYOKUFORM.GETFOCUS_NAME ());
}
Req.setttribute ("Webvo", Resultvo;
// Turn. Setforwardstring (Req, "Success");