Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Need help but not sure what title to give.

I have a database with information on various clubs in my area.

I've set up a page that has buttons with all the days of the week on.
Once a day has been clicked a new page loads displaying all the Clubs that are open on that day.

I did this using a Database query {"Day":"Monday"} and having a list with a label in it and mapping $ to mobilelistitem and 'NightClubName' to the label.

The above is working fine.

So I have a list of clubs that are open on the selected day. Now I'm wanting to create a page which will display information about the club once the club has been tapped on.

Can anybody help me with this?

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

Need help but not sure what title to give.

Hi Joe,

That's not a hard to implement.

Please follow the solution below:

1 Create new page and call it like "clubDetails".

2 In "clubs" list on your second page you need to add other label.
2.1 Give it name "itemId". http://prntscr.com/4e52j4/direct
2.2 Make in invisible. http://prntscr.com/4e53k5/direct

3 Add "click" event handler on clubs list item with action "Set local storage" and make following settings: http://prntscr.com/4e55io/direct

4 Add one more "click" event handler to this list item with action "navigate to page" and select page from 1st step.

5 Open page from 1st step and add "read" service datasource.

6 Open mapping for this datasource. Navigate to "request" parameters and make link from "clubId" LSV to the "_id" request parameter. http://prntscr.com/4e58t2/direct

7 Make other mapping you need(to show user information about club).

That's all.

Also you can read this tutorial to understand how to implement it in more details: http://devcenter.appery.io/tutorials/...

Regards.

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Need help but not sure what title to give.

Cheers Yurii!

It's worked. I understand the way it has worked now and will be able to apply it to future pages.

Thank you

Return to “Issues”