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

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

Cursor problem - DSPF

View previous topic View next topic Go down

Cursor problem - DSPF

Post  rajkumar400 on 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

View user profile

Back to top Go down

Cursor Problem - DSPF

Post  kushaalrathi on 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

View user profile

Back to top Go down

Re: Cursor problem - DSPF

Post  rajkumar400 on 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

View user profile

Back to top Go down

Re: Cursor problem - DSPF

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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