Robert6548600
Posts: 0
Joined: Sun Jan 05, 2014 12:52 am

Linking a list to database record

I have my list tag being populated from the database, but how do I link it to show a detail page for one record?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Linking a list to database record

Hello Robert,

Please clarify what do you mean here:
[quote:]how do I link it to show a detail page for one record? [/quote]

Robert6548600
Posts: 0
Joined: Sun Jan 05, 2014 12:52 am

Linking a list to database record

ok, I have it displaying a list from a database... for example businesses
when I click a business name in the list, I want to navigate to another page which will display all the information from the database for that business such as telephone, address, description and so on. Hope that makes sense :/

Robert6548600
Posts: 0
Joined: Sun Jan 05, 2014 12:52 am

Linking a list to database record

Hi Alena,
Thought this was working but after adding an extra record it displays the details for the first record event clicking the second. The pulling of the images also pulls all photos and not just the one with id from database.

Image Image

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Linking a list to database record

Hi,

  1. When you click list item does it stored correct object id to localStorage variable?

  2. when you invoke service for detail page does it request with correct id which is getting from localStorage variable.

    You can debug app and check data in localStorage and service request parameters.

    http://docs.appery.io/documentation/d...

Robert6548600
Posts: 0
Joined: Sun Jan 05, 2014 12:52 am

Linking a list to database record

cant figure it out to be honest...

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Linking a list to database record

Robert, what did you try and what does not work? If all the photos are retrieved on details page check to make sure the request is correct. Probably the request is incorrect (http://docs.appery.io/documentation/b...)

Robert6548600
Posts: 0
Joined: Sun Jan 05, 2014 12:52 am

Linking a list to database record

It's not mainly the photos, more the club information. It is always showing club mono even when clicking on egljntine inn.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Linking a list to database record

What event do you use on the details page? It should be Page Show event.

Return to “Issues”