Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cursor in Module Pool

Former Member
0 Likes
738

Hi Experts,

I hav 2 fields in my screen.

in valdiations, if i got error in any of these 2 flds, the cursor going to the 1st field.

How to put the cursor at error field.

Thanks

Chandra

5 REPLIES 5
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
703

Hi,

Try this before populating the message.

SET CURSOR FIELD 'TABLE-FIELD'.

Read only

0 Likes
703

Hi ,

Try using SET CURSOR command.

Read only

Former Member
0 Likes
703

Hi,

In the PBO you have to set the cursor.

Here is the code.

PROCESS BEFORE OUTPUT.

SET CURSOR FIELD <FIELDNAME (CAPITAL)>.

If you want to set the cursor after Error message.

After the Error message.

SET CURSOR FIELD <FIELDNAME (CAPITAL)>. ( But afer the Error message the fields will be input disable mode. Unless you use FIELD keyword )

Hope this will help you.

Regards,

Smart Varghese

Read only

Former Member
0 Likes
703

use set curser command and write the field name there on which you want curser

Read only

Former Member
0 Likes
703

Hi,

suppose u get err in the second field , clear the field value and in PBO check which field is initial and set the cursor to that field as suggested by others, pls mark the thread as answered once u get clarity.