Page 1 of 1

Hi,How do I get certain info from my db collection into a grid?

Posted: Thu Feb 06, 2014 1:39 pm
by Vaishali Patel

I have a collection of products and I want the description and the unit price into the first two columns of the grid and want this to happen that page is loaded.

I have tried mapping the response from the list the the grid but it just doesnt work


Hi,How do I get certain info from my db collection into a grid?

Posted: Thu Feb 06, 2014 1:53 pm
by Kateryna Grynko

Hi Vaishali,

Please place some components in a grid cells and map a response to them. Then post a screenshot of your mapping.


Hi,How do I get certain info from my db collection into a grid?

Posted: Thu Feb 06, 2014 2:28 pm
by Vaishali Patel

Hi

Please see attached
Image Image


Hi,How do I get certain info from my db collection into a grid?

Posted: Thu Feb 06, 2014 2:32 pm
by Kateryna Grynko

Vaishali,

Looks nice. Map your array itself ($) to a ProductGrid component. This should work.


Hi,How do I get certain info from my db collection into a grid?

Posted: Thu Feb 06, 2014 2:44 pm
by Vaishali Patel

Did that, still get no data on screen

Is to do with events? Image


Hi,How do I get certain info from my db collection into a grid?

Posted: Thu Feb 06, 2014 9:23 pm
by Maryna Brodina

Hello! Looks correct... Could you clarify how do you invoke service, on what event?


Hi,How do I get certain info from my db collection into a grid?

Posted: Thu Feb 06, 2014 9:29 pm
by Vaishali Patel

Hi
I got it working thank you