Skip to main content

🧠 Jump to Top in Multi-Value Fields – A Simple Trick to Loop Input

Have you ever faced the challenge of designing a screen with a fixed number of multi-value lines, and wanted the cursor to jump back to the top once the last line is reached?

For a long time, I couldn't find a way to do this. But now I've discovered a simple trick-and I'd like to share it in case someone else has the same need.

🔧 Scenario

Imagine you have a screen like this:


You want the cursor to jump back to the first line when pressing <Enter> or <Down> on the fourth line.

🛠️ How to Implement It

  1. In the Process Before of the MV field, set:
    (P:@REFRESH = -2)
  2. In the Controlling/Dependent Options, press F3 on Control/Dep/Read and enter the following in Process on MV Disp:

  • 4 is the number of maximum MV lines you want.
  • the 1 in /1.1 refers to the StepNo of the field you want to jump back to (in this case, line 1 of field 1).

💬 Final Thought

I just wanted to share this idea with the SB community-thanks to Manu for the inspiration to do this from his last post!

Best regards,
Thomas



------------------------------
Thomas Ludwig
System Builder Developer
Rocket Forum Shared Account
------------------------------