- Insert bushbutton in main page destination :peoplecode,record :recname, fieldname: fldname(ex:code)
write peoplecode domodal code in code field fieldchange event - DoModal(Page.SP_SEC_PNL, "SAMPLE 2NDARY PAGE ", 111, 111);
- Domodal:Use the DoModal function to display a secondary page. Secondary pages are modal, meaning that the user must dismiss the secondary page before continuing work in the page from which the secondary page was called.
Note:Domodel can display only single page. to display entire component use DoModelcomponent. - In secondary page if you dont have any ok or cancel button use push button in secondary page write code Endmodal (1) in field change event.
EndModal(returnvalue):
Use the EndModal function to close a currently open secondary page. It is required only for secondary pages
that do not have OK and Cancel buttons. If the secondary page has OK and Cancel buttons, then the function
for exiting the page is built in and no PeopleCode is required.
The following statement acts as an OK button:.
EndModal(1);
The following statement acts as a Cancel button:
EndModal(0);
No comments:
Post a Comment