![]() ![]() Because of this behavior, if you need to perform some update logic and call DoSave() or DoSaveNow() right after returning from your DoModal call (as shown below) you will not be able to return from your modal dialog window using EndModal(1). A value of zero skips SaveEdit and discards buffer changes made in the secondary page (this is the same as clicking the Cancel button). A positive value runs SaveEdit PeopleCode and copies the data (this is the same as clicking the OK button). The EndModal return value is:Ī number value that determines whether the secondary page data is copied back to the parent page. The important difference to understand between EndModal(1) and EndModal(0)is explained in PeopleBooks. In such case, you'll need to supply the EndModal(1) or EndModal(0)commands in the FieldChange PeopleCode for those buttons' component record.field. Similarly, clicking the cancel button will invoke EndModal(0).Īlternatively, you can uncheck the "OK & Cancel buttons" box, and manually place button/hyperlink objects on your page in the App Designer canvas. When you click the OK button, even though there is not PeopleCode behind it that you can see in App Designer, it will invoke the command EndModal(1). If the secondary page that is popped-up has the "OK & Cancel buttons" box checked, as shown below, your page will include OK and Cancel buttons (by default in the bottom left corner of the pop-up page). 48, 9.2.015, 2, PeopleSoft Enterprise CS Common Application Objects, Page. ![]() But when you click the Cancel button on that same modal dialog, your DoSave() and DoSaveNow() will likely work just fine. The idea of the rowset cache is the first user create the cache so that the. When you click the OK button on a PeopleSoft modal dialog and the code that it returns to calls the DoSave() or a DoSaveNow() function, you will very likely experience the "Page Data is Inconsistent with Database" error. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |