Page 1 of 2
How to do item master-detail view query?
Posted: Tue Jan 14, 2014 5:42 am
by Lau
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.
How to do item master-detail view query?
Posted: Tue Jan 14, 2014 5:53 am
by Igor
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...
How to do item master-detail view query?
Posted: Tue Jan 14, 2014 7:22 am
by Lau
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.
How to do item master-detail view query?
Posted: Tue Jan 14, 2014 10:34 am
by Maryna Brodina
Hello! Could you post "detail" service settings screenshot and mapping screenshot?
How to do item master-detail view query?
Posted: Tue Jan 14, 2014 7:01 pm
by Lau
I am using a queryService now, but I also tried with a readService earlier.
How to do item master-detail view query?
Posted: Tue Jan 14, 2014 7:02 pm
by Lau
How to do item master-detail view query?
Posted: Tue Jan 14, 2014 10:28 pm
by Illya Stepanov
Hi!
Please check additionally.
Your session token is empty, you must make a mapping for it.
How to do item master-detail view query?
Posted: Tue Jan 14, 2014 10:53 pm
by Lau
Hi,
I am not sure I understand.
I have the session variable set on list item click, mapped as follows:
How to do item master-detail view query?
Posted: Tue Jan 14, 2014 11:02 pm
by Illya Stepanov
If 'inrlDlocal' is a session token - it should be mapped to X-Appery-Session-Token.
How to do item master-detail view query?
Posted: Wed Jan 15, 2014 12:38 am
by Lau
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?