Kami Dar
Posts: 0
Joined: Tue Feb 26, 2013 5:55 pm

How do I pass paramaters without name-value pairs

I'm trying to pass a variable to a detail page where the url is in the format: http://www.example.com/view/123 rather than http://www.example.com/view.html?id=123. I've created the parameter in the Request in the Service. And consider the URL to be http://www.example.com/view but I'm don't know how to get results in the test query when I populate an ID. Advice would be appreciated.

Kami Dar
Posts: 0
Joined: Tue Feb 26, 2013 5:55 pm

How do I pass paramaters without name-value pairs

Thanks for the quick response Max. I changed the URL as you suggested to http://www.example.com/view/{id}. I created a request parameter called "id" in the service. The service test worked when I manually populate an id. I sense I'm close.

I then set the click event of the list page (the landing page) to set the local variable to Variable name: id, Target Component: article_id, Property name: text before navigating to that page; the parameter is not being being registered on the detail page. Any idea what I'm doing wrong?

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

How do I pass paramaters without name-value pairs

Please show in screen shots what you did and what doesn't work.

Kami Dar
Posts: 0
Joined: Tue Feb 26, 2013 5:55 pm

How do I pass paramaters without name-value pairs

I hope this helps. What doesn't work is that on the detail page, there's no data. Previously I had hard-coded the URL and was able to get data.

Thanks,
Kami

Image

Image

Image

Image

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

How do I pass paramaters without name-value pairs

Can you also show mapping for service input?

Kami Dar
Posts: 0
Joined: Tue Feb 26, 2013 5:55 pm

How do I pass paramaters without name-value pairs

I'm afraid I don't know what that means but sounds like it might be what I'm missing. What is the mapping for the service input?

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

How do I pass paramaters without name-value pairs

2nd image, you have Response tab open. What do you have in Request tab.

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

How do I pass paramaters without name-value pairs

You need to map the id in the request -- that id will be inserted into the URL.

Return to “Issues”