Highlighted
Absent Member.
Absent Member.
525 views

[archive] Msg-Finish-Entry at version 6.0

[Migrated content. Thread originally posted on 03 July 2003]

In a Grid, when we are in Entry Mode, leaving the cell, we want to move the cursor to the next cell.
We used (version 5.2) in Msg-Finish-Entry event :
MODIFY Form1-Gd-1, CURSOR-X ..., CURSOR-Y ...
We upgrade to version 6.0 and it?s not working properly.

e.g.
Cell X 1, Y 2 Value ="AA"
Cell X 2, Y 2 Value = spaces

Form1-Gd-1-Ev-Msg-Finish-Entry.
MOVE SPACES TO PRT DFT
MODIFY Form1-Gd-1, X 1, Y 2
INQUIRE Form1-Gd-1, CELL-DATA IN PRT (PRT = "AA")
MODIFY Form1-Gd-1, CURSOR-X 2, CURSOR-Y 2
MODIFY Form1-Gd-1, X 2, Y 2
INQUIRE Form1-Gd-1, CELL-DATA IN DFT (DFT = "AA" instead of spaces)
IF DFT = SPACES
MODIFY Form1-Gd-1, X 2, Y 2, CELL-DATA "BB"
END-IF.

As a result:
Cell X 1, Y 2 Value = "AA"
Cell X 2, Y 2 Value = "AA" instead of "BB"
If we place the "MODIFY Form1-Gd-1, CURSOR-X ..." at the end of routine it works, but it isn?t what we need.

In "User Interface Programming" chapter "5.10.2 Grid: Special Properties" quote:
CURSOR-X (numeric)
....
Note that you may MODIFY this property during a MSG-VALIDATE event to direct where the cursor should go after the user finishes an entry into a cell.
...
If you move the cursor in response to other events while the user is in entry mode, the results can be confusing.

We tried MSG-VALIDATE event, but it is activated when leaving grid.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.