PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Join the forum, it's quick and easy

PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Cursor problem - DSPF

2 posters

Go down

Cursor problem - DSPF   Empty Cursor problem - DSPF

Post  rajkumar400 Sat Dec 25, 2010 2:21 pm

I have a header record ( NORMAL RECORD ) with few input capable fields and subfile records with option field. After selecting the particular subfilr record then next screen will be displyed. After come back to main screen ( which has header + subfile ) the cursor is on the first input field on the header rec. But I want cursor on the oprion field where I have entered the option.

Can you help me?

Raj

rajkumar400

Posts : 59
Join date : 2010-12-25

Back to top Go down

Cursor problem - DSPF   Empty Cursor Problem - DSPF

Post  kushaalrathi Mon Dec 27, 2010 12:32 am

Two ways as far as i Know

One :

Go to display attribute property of display
file and position the cursor on desire fields by
DSPATR(PC).cursor will be set on that field even after
returning back to main screen.

Other option is

There is a keyword CSRLOC(F1 Row C1 Col), you have to
specify the location(which row or column). The system
positions the cursor before the output operation is
performed on the record that is being specified.

kushaalrathi

Posts : 12
Join date : 2010-12-26

Back to top Go down

Cursor problem - DSPF   Empty Re: Cursor problem - DSPF

Post  rajkumar400 Wed Dec 29, 2010 1:41 am

Thanks.

DSPATR(PC) and CSRLOC. When you specify both which one will have a priority?

Is there any other way?

Raj








rajkumar400

Posts : 59
Join date : 2010-12-25

Back to top Go down

Cursor problem - DSPF   Empty Re: Cursor problem - DSPF

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum