AL icon indicating copy to clipboard operation
AL copied to clipboard

[Question] ModalPageHandler Close Page with OK

Open OleTeichmann opened this issue 8 years ago • 3 comments

In a Test Codeunit there is a modal call to a Page. I am handling this Page with a ModalPageHandler. In order to execute the Page Logic I need the Page to be closed with OK. Does anybody know how i do that? There is a function called TestPage.OK(), but I do not know how to use it.

OleTeichmann avatar Jul 19 '18 07:07 OleTeichmann

@OleTeichmann should be TestPage.OK.Invoke()

tfenster avatar Jul 19 '18 07:07 tfenster

TestPage.OK.Invoke(), I believe. OK is an action object which you need to invoke, not a function

vytjak avatar Jul 19 '18 07:07 vytjak

@tfenster @vytjak Thanks that works 👍

OleTeichmann avatar Jul 19 '18 07:07 OleTeichmann