Sean Kelley
Posts: 0
Joined: Thu Oct 11, 2012 2:25 pm

creating dynamic pages

I am wondering how to create dynamic page ids in web app. I have a rest populated list on page A. On click, the list item navigates to page B, which invokes a service call to appery database to return data mapped to page elements.

Right now the page B is the same id no matter what data is being requested. I would like each click on page A to point me to a new page id. In this case, b-uniqueid etc so that the final web app displays the url: .../b-uniqueid.html

How would I go about this?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

creating dynamic pages

Hello! It's not allowed by jqm unfortunately.

Sean Kelley
Posts: 0
Joined: Thu Oct 11, 2012 2:25 pm

creating dynamic pages

How would I go about creating shareable content from my database results? As I said, right now I use page A input value (record id) to run service to return the database record results which are displayed on page B. How do I change my approach to create mechanism so that I can share or email a unique link to that result page?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

creating dynamic pages

Hello! You can pass parameters to page B through GET parameters and on that page on Success event get all parameters and use them to invoke the service. URL will look like this http://appery.io/app/view/xxxxxxxxxxx...

Zhong Liu
Posts: 0
Joined: Tue Jun 17, 2014 3:27 am

creating dynamic pages

Hi Maryna

But I can not find the 'Success' event on page, I can find 'load' event instead, could you please show me with a snapshot of screen, thank you.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

creating dynamic pages

Hello Zhong,

The events Success, Complete and Error you can only add on services. First you should add the service on the page, and then you'll see them. More info here: http://devcenter.appery.io/documentat...

Zhong Liu
Posts: 0
Joined: Tue Jun 17, 2014 3:27 am

creating dynamic pages

Hi Evgene,

What I want to do is to get the parameter pass to a page on url like appery.io/app/view/xxxxxxxx/b.html?id=xxxx. if I put a service on this page, can I get the parameters on page url?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

creating dynamic pages

Hi Zhong,

Yeap, you can navigate to the page with certain URL parameters with following JS code:

pre

//Note1: you need replace "Screen2" with your page name.
//Note2: in "data" section you need specify parameters that's you need.
Apperyio.navigateTo("Screen2", { data : { 'paremeter1': '123', 'parameter2': '456' } });

/pre

Also you can get these parameters from url with following code:

pre

var search = location.search;
alert(search);

/pre

Regards

Return to “Issues”