Lau
Posts: 0
Joined: Tue Jan 14, 2014 5:42 am

How to do item master-detail view query?

I have a list of items, and want it so that when you click it shows the details.

I have the collection and list working well.
For the list item, i have an event on click to set localstorage variable with item ID.
Then I have an event to change to detail page.

On detail page i have a DB query service where I do a read query where objectID = localstorage itemID.

This doesnt seem to be working however.

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

How to do item master-detail view query?

Hello,

All steps are correct, You need to invoke query service on page show/load and map response to some elements.

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

Lau
Posts: 0
Joined: Tue Jan 14, 2014 5:42 am

How to do item master-detail view query?

Yes I have it set to invoke the query service on load and mapped the values to the corresponding labels but it is not working.

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

How to do item master-detail view query?

Hello! Could you post "detail" service settings screenshot and mapping screenshot?

Lau
Posts: 0
Joined: Tue Jan 14, 2014 5:42 am

How to do item master-detail view query?

I am using a queryService now, but I also tried with a readService earlier.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to do item master-detail view query?

Hi!

Please check additionally.
Your session token is empty, you must make a mapping for it.

Lau
Posts: 0
Joined: Tue Jan 14, 2014 5:42 am

How to do item master-detail view query?

Hi,

I am not sure I understand.

I have the session variable set on list item click, mapped as follows:
Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to do item master-detail view query?

If 'inrlDlocal' is a session token - it should be mapped to X-Appery-Session-Token.

Lau
Posts: 0
Joined: Tue Jan 14, 2014 5:42 am

How to do item master-detail view query?

Hi Illya,

I have set up the detail as such to map the inrlDlocal as a session token:

or should it somehow be mapped on the list page click item instead of the detail page?
Image

Return to “Issues”