Rochdi Badis · Jun 27, 2021

Call client method %OnAfterCreate page

Hi Guys,


how can I call a client method inside %OnAfterCreate method?



Product version: Caché 2014.1
0 91
Discussion (2)1
Log in or sign up to continue

The %OnAfterCreatePage() method takes place after an instance of your page has been created on the server, but before it gets sent to the client, so it's really intended for server-side stuff.

Maybe instead you should be using the onloadHandler() method. That one runs on the client just before the page is displayed.