Page 1 of 2

Linking a list to database record

Posted: Sun Jan 05, 2014 12:52 am
by Robert6548600

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


Linking a list to database record

Posted: Sun Jan 05, 2014 1:06 am
by Alena Prykhodko

Hello Robert,

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


Linking a list to database record

Posted: Sun Jan 05, 2014 1:13 am
by Robert6548600

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 :/


Linking a list to database record

Posted: Sun Jan 05, 2014 1:47 am
by Alena Prykhodko

Linking a list to database record

Posted: Sun Jan 05, 2014 2:01 pm
by Robert6548600

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


Linking a list to database record

Posted: Sun Jan 05, 2014 2:28 pm
by Igor

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...


Linking a list to database record

Posted: Sun Jan 05, 2014 4:02 pm
by Robert6548600

cant figure it out to be honest...


Linking a list to database record

Posted: Sun Jan 05, 2014 4:38 pm
by Alena Prykhodko

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...)


Linking a list to database record

Posted: Sun Jan 05, 2014 5:28 pm
by Robert6548600

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


Linking a list to database record

Posted: Sun Jan 05, 2014 5:36 pm
by Alena Prykhodko

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