Page 1 of 2

Selecting list item to drill down to detail.

Posted: Tue Dec 11, 2012 11:04 pm
by Joe Bohen

I followed the tutorial: http://docs.tiggzi.com/tutorials/buil...

All works well apart from filtering to the selected item (I always return the first job in the list) !

My jobs list is created:
Image

The list click event.

Image

and when I click on an item in the list the local storage item _jobnum is updated and the next page loads and a job is populated. But the job is always the first in the table. I have checked the local storage and the _jobnum exists and is updated on the click event of the list so the issue is in the mapping.
The request parameter is mapped as:

Image

The service request mapping looks like:

Image

Please take a look at this and advice me please.


Selecting list item to drill down to detail.

Posted: Wed Dec 12, 2012 1:42 am
by maxkatz

How does the mapping look for displaying the list?


Selecting list item to drill down to detail.

Posted: Wed Dec 12, 2012 8:46 am
by Joe Bohen

Hi Max,

The request mapping is:

Image


Selecting list item to drill down to detail.

Posted: Wed Dec 12, 2012 12:39 pm
by Kateryna Grynko

Hi Joe,
Could you send the response mapping screenshot please?


Selecting list item to drill down to detail.

Posted: Wed Dec 12, 2012 1:33 pm
by Joe Bohen

Hi Katya,
Here is the mapping thanks.
Joe Image


Selecting list item to drill down to detail.

Posted: Wed Dec 12, 2012 3:22 pm
by Kateryna Grynko

Try to change mapping from "statustxt - Visible" to "statustxt - Text".


Selecting list item to drill down to detail.

Posted: Wed Dec 12, 2012 4:18 pm
by Joe Bohen

Hi Katya,

I had been changing the mappings around and had not noticed that I had mapped to the visible element.

The mapping still doesn't work even when mapped properly. The project is shared to support please check it out.

Regards,
Joe


Selecting list item to drill down to detail.

Posted: Wed Dec 12, 2012 4:53 pm
by Kateryna Grynko

We will test it.


Selecting list item to drill down to detail.

Posted: Thu Dec 13, 2012 9:47 am
by Kateryna Grynko

Hi Joe,

There is a wrong Rest Service "JobDetailService" in your project. You use "jobnum" as a request parameter. Instaed of it add "where" parameter which takes value
{"jobnum": "..."}

Rename "jobnum" to "where" in RESTService, then create a mapping as it's shown below:
Image

Then add following JavaScript code:
Image


Selecting list item to drill down to detail.

Posted: Thu Dec 13, 2012 10:43 am
by Joe Bohen

Hi Katya,

That makes perfect sense, everything works perfectly with the where clause thank you.

Am I missing something as the tutorial does not include this method!

Thank you very much for your support,
Joe