The Rowset class has a SelectNew method, which is quite similar to the Select method. For example, based on the data entered on a row of a scroll, a new matching row must be inserted within the same scroll. However, there are some cases where inserting within the same scroll might be desirable. If you attempt to do this, PeopleTools will give an error complaining about changing the current program context. PeopleTools doesn’t allow PeopleCode (using the built-in functions/methods InsertRow and DeleteRow) to insert or delete a row on the same scroll within which it is currently running. ![]() ![]() In PeopleCode, when inserting or deleting a row on a scroll, it is required that you perform the action on a parent row of the rowset being inserted/deleted to.
0 Comments
Leave a Reply. |