JointLantic

setcursorpos peoplecode peoplesoft

setcursorpos peoplecode peoplesoft

SetCursorPos PeopleCode PeopleSoft Using the SetCursorPos to place the focus in a specific field anywhere in the current component. To transfer to a page outside the current component, use Transfer.

SetCursorPos(Page.pagename, scrollpath, target_row, [recordname.]fieldname)

where scroll path is: [RECORD.level1_recname, level1_row, [RECORD.level2_recname, level2_row, ]] RECORD.target_recname

To prevent ambiguous references, you can use SCROLL. scrollname, where scrollname is the same as the scroll level’s primary record name.

peoplesoft setcursorpos level 1

This peoplecode for setcursorpos of field in scroll area or grid level 1

The page name is Page_name

The Record.field is  TS_TBL.DESCR254_5

The row number of the row in which you want to place the cursor is 1.

SetCursorPos(Page.Page_name, TS_TBL.DESCR254_5, 1);

SetCursorPos(Page.Page_name, TS_TBL.DESCR254_5, currentrownumber());

More Example of peoplesoft setcursorpos level 1

setcursorpos peoplecode level 2

 

Page Name : TS_TRC_BOSSAPPV

Record Level 1 = TS_TRC_TRAN

Row of level 1 = 1

Record level 2 = TS_TRC_FILE

Row of level 2 = 1

SetCursorPos(Page.TS_TRC_BOSSAPPV, Record.TS_TRC_TRAN, 1, Record.TS_TRC_FILE, 1, TS_TRC_FILE.ATTACHUSERFILE);

 

Exit mobile version