How to use information from JSONPStore on segments resolution
Hi, all.
I need to use information from a JSONP Store to resolve segments, but it seems that I am missing some important step. The steps I am following were taken from http://dev.day.com/docs/en/cq/current/developing/client_context_detail.html, but I have to confess that I got lost at some point.
Here are the steps:
- From a Geometrixx page (eg.: http://localhost:4502/content/geometrixx/en/products/triangle.html) I edited the client context (from sideckick Display Client Context > Edit that opens the page http://localhost:4502/etc/clientcontext/default/content.html).
- Then I did a drag & drop of a JSONP Store component into the Client Context, and configured the URL of a custom JSONP service I developed, but for illustrating the apimania URL is also fine (http://api.wipmania.com/jsonp?callback=${callback}).
- The value on the Client Context page is displayed as expected (see the “South America” on the control on the left on the image below).
[img]client-context-editing.png[/img]
- Now, when I open the page, the information displayed on the JSONPStore is not equal to the information that was displayed on the client context edit (see that there's a "No Address/Continent" instead of the "South America").for the continent is blank.
[img]client-context-on-page.png[/img]
I do believe (maybe it's even obvious) that I am missing something before the last step. Should I have some code to load/refresh the information of the JSONP store on the page, or to register this store? Where can I find a sample?
Once this information is loaded, I think I'll be able to use that to resolve my segments. But now I am stuck on this phase.
Any help will be greatly appreciated.