close page with java action

0
dears, i need to java action with two input parameters 1- page name. 2-object. this java action will close the page (1) with associated object (2). 
asked
1 answers
1

Hi Emad,

Could you explain why you want to do this? 

Sending a close page feedback can be don via runtime API

https://apidocs.rnd.mendix.com/8/runtime/com/mendix/webui/FeedbackHelper.html#addCloseCallerFeedback(com.mendix.systemwideinterfaces.core.IContext)

Though the close action only uses the order of the stack. You can only close the last item, and not change the history.

The new 8.14 release enables to close multiple items https://docs.mendix.com/refguide/close-page

There are some options to hack the browser history. But this is a supported API and could have some implication of the client state, now or in the future. https://developer.mozilla.org/en-US/docs/Web/API/History_API

Cheers,

Andries

 

 

answered