CraigInDallas
Posts: 0
Joined: Wed Oct 10, 2012 10:23 am

Coding in the desert on an array with no name, It would feel good to come out of the rain.

Note sure haw to parse this into a dropdown.

My json result from a rest call for available years comes back with an array that by default wants to load as one record, rather than parse into multiple entries. Any thoughts?

The json results look like:
[2013,2012,2011,2010,2009,2008,2007,2006,2005,2004,2003,2002,2001,2000,1999,1998,1997,1996,1995,1994,1993,1992,1991,1990]

I think the problem is that the array has no labels for itself or the values.

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

Coding in the desert on an array with no name, It would feel good to come out of the rain.

When you test your service, click Populate Response Structure button. It will automatically create the JSON response (it worked for me).

CraigInDallas
Posts: 0
Joined: Wed Oct 10, 2012 10:23 am

Coding in the desert on an array with no name, It would feel good to come out of the rain.

Thats is what I did. However when I am in the data mapping tool I have nothing to point to the group level.

Image

Image

Image

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

Coding in the desert on an array with no name, It would feel good to come out of the rain.

Add a . (period) as a sub element and them map it a component inside a grid:

Image

Return to “Issues”