Page 1 of 1

How to load a page using Javascript instead of selecting

Posted: Fri Jul 18, 2014 1:22 am
by geliz zhang

How to load a page using Javascript instead of selecting event type in designer? I assume there is some function to load a certain page or dialog but can't find it.


How to load a page using Javascript instead of selecting

Posted: Fri Jul 18, 2014 1:27 am
by geliz zhang

I got it. Appery.navigateTo('menuPage', {});

Then, any way to launch a dialog?


How to load a page using Javascript instead of selecting

Posted: Fri Jul 18, 2014 2:28 am
by Yurii Orishchuk

Hi Geliz,

Yes you are right.

To load certain page you can use JS code:

pre

//Note you need to replace "pageName" with your page name.
Apperyio.navigateTo("pageName", {});

/pre

To load certain dialog page you can use JS code:

pre

//Note you need to replace "dialogPageName" with your dialog page name.
Apperyio.navigateTo("dialogPageName", {});

/pre

So as you can see - the code for both cases are the same.

Regards.


How to load a page using Javascript instead of selecting

Posted: Fri Jul 18, 2014 3:25 am
by geliz zhang

Thanks!