Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Selecting list item to drill down to detail.

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Selecting list item to drill down to detail.

How does the mapping look for displaying the list?

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Selecting list item to drill down to detail.

Hi Max,

The request mapping is:

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Selecting list item to drill down to detail.

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

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Selecting list item to drill down to detail.

Hi Katya,
Here is the mapping thanks.
Joe Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Selecting list item to drill down to detail.

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

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Selecting list item to drill down to detail.

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Selecting list item to drill down to detail.

We will test it.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Selecting list item to drill down to detail.

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

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Selecting list item to drill down to detail.

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

Return to “Issues”