You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

people code function in scroll insertrow,delete row?

3 replies [Last post]
kavnaidu's picture
User offline. Last seen 11 years 35 weeks ago. Offline
Joined: 02/25/2009
Posts: 1

people code function in scroll insertrow,delete row?

Ashar's picture
User offline. Last seen 4 years 35 weeks ago. Offline
Joined: 03/26/2008
Posts: 227
Re: people code function in scroll insertrow,delete row?

What is your question?

Lepa's picture
User offline. Last seen 2 years 2 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: people code function in scroll insertrow,delete row?

kavnaidu, we might be able to help if we can read your mind ;) - Please try editing your post and provide us with more information on what you are trying to ask.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

abhi10aug's picture
User offline. Last seen 5 years 23 weeks ago. Offline
Joined: 06/11/2008
Posts: 10
Re: people code function in scroll insertrow,delete row?

You can treat the scroll as a rowset and use following two functions.
Go to PeopleCode API Reference> Rowset class > Built in functions and read about following.

1) DeleteRow :
Syntax : DeleteRow(n)
Example :

  
     For &I = &RS2.ActiveRowCount To 1 Step -1
     If None(&CHECK_SEQ) Then
     &RS2.DeleteRow(&I);
     End-If;
      End-For;
      

2) InsertRow:
Syntax : InsertRow(n)
Example :

   &ROWSET.InsertRow(2);