Page 1 of 2

How do I pass paramaters without name-value pairs

Posted: Tue Feb 26, 2013 5:55 pm
by Kami Dar

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.


How do I pass paramaters without name-value pairs

Posted: Tue Feb 26, 2013 5:59 pm
by maxkatz

How do I pass paramaters without name-value pairs

Posted: Tue Feb 26, 2013 6:44 pm
by Kami Dar

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?


How do I pass paramaters without name-value pairs

Posted: Tue Feb 26, 2013 6:46 pm
by maxkatz

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


How do I pass paramaters without name-value pairs

Posted: Tue Feb 26, 2013 7:03 pm
by Kami Dar

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


How do I pass paramaters without name-value pairs

Posted: Tue Feb 26, 2013 7:07 pm
by maxkatz

Can you also show mapping for service input?


How do I pass paramaters without name-value pairs

Posted: Tue Feb 26, 2013 7:17 pm
by Kami Dar

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?


How do I pass paramaters without name-value pairs

Posted: Tue Feb 26, 2013 7:21 pm
by maxkatz

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


How do I pass paramaters without name-value pairs

Posted: Tue Feb 26, 2013 7:28 pm
by Kami Dar

How do I pass paramaters without name-value pairs

Posted: Tue Feb 26, 2013 7:30 pm
by maxkatz

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