Question
Rochdi Badis · Jun 27

Call client method %OnAfterCreate page

Hi Guys,

 

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

 

thanks

Product version: Caché 2014.1
00
1 0 2 51
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.