Page 1 of 3

Each row of mapped data creates new grid

Posted: Mon Mar 12, 2012 7:23 pm
by David K

Hi -

I am using Rest service to tie to a mobile backend, and the data comes back fine, works great, very cool... But, I have mapped the data to a grid control, and for each row of data, it creates a new grid instead of adding rows to the single grid...

What am I doing wrong?

thanks,

David


Each row of mapped data creates new grid

Posted: Mon Mar 12, 2012 7:27 pm
by maxkatz

Can you attach a screen shot service mapping?


Each row of mapped data creates new grid

Posted: Mon Mar 12, 2012 7:32 pm
by David K

Each row of mapped data creates new grid

Posted: Mon Mar 12, 2012 7:34 pm
by David K

Each row of mapped data creates new grid

Posted: Mon Mar 12, 2012 8:34 pm
by David K

hi, I figure you all are working on this...

but, btw, data is using parse... not sure if something in the response is goofing up the grid? should I try something else?

thanks,

David


Each row of mapped data creates new grid

Posted: Mon Mar 12, 2012 8:37 pm
by maxkatz

That's actually the correct markup. It's done this way becuase of how the visual editor works. Doing it row based - it's not easy to know which rows you would like to iterate over, and what rows should be rendered as it is (and what is shown between them).


Each row of mapped data creates new grid

Posted: Mon Mar 12, 2012 8:52 pm
by David K

So, you can't actually map data to a grid? How do I map rows of data to a grid so it doesn't make multiple grids? This seems like an obvious example to have for users...

I assumed I have to tell each column what to map to and I assumed I map to the grid as well... so what do I need to remove to make it work?


Each row of mapped data creates new grid

Posted: Mon Mar 12, 2012 8:57 pm
by David K

I don't think you understood the issue in the first place, I literally have (5) rows of data, and for each row of data it spews out (1) grid, thus I have (5) redundant grids, when this thing should just give me (1) grid with 5 rows...


Each row of mapped data creates new grid

Posted: Mon Mar 12, 2012 9:02 pm
by David K

This is a problem... can you please explain how I map to a grid then?


Each row of mapped data creates new grid

Posted: Mon Mar 12, 2012 9:09 pm
by maxkatz

You can easily map data to a grid, most of our tutorials show how to do that: http://help.gotiggr.com/getting-started. Instead of generating:

code
<table>
<tr><&#47;tr>
&#46;&#46;&#46;
&#46;&#46;&#46;
<tr><&#47;tr>
<&#47;table>
/code

you get:

code
<table>
<&#47;table>
&#46;&#46;&#46;
&#46;&#46;&#46;
<table>
<&#47;table>
/code