ew_SetClientVar not working on modal View page

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sangnandar
User
Posts: 980

ew_SetClientVar not working on modal View page

Post by sangnandar »

This code works ok on non-modal View page:
Page_Render() {
ew_SetClientVar("addAction", "sometext");
Startup script:
$(".ewToolbar").append(ewVar.addAction);

But it fail on modal View page.

Why?
How to make it work?

Thanks.


mobhar
User
Posts: 11660

Post by mobhar »

Since you open the modal dialog for View Page from List Page, then you should put this code:

ew_SetClientVar("addAction", "sometext");

in "Page_Render" server event that belongs to the "List Page" (not in View Page).


sangnandar
User
Posts: 980

Post by sangnandar »

Thanks, that works.


Post Reply