Page 2 of 2

Using list service to build favorite products page

Posted: Tue Jul 29, 2014 5:43 pm
by kabrams

Hello, what do you mean by 1.4 repopulate the collection. The population of this collection should begin with a click on the 'faves' button. What service do i need to invoke to get the collection to populate? Same question for 1.5. I tried 2 days but your explanation is vague.


Using list service to build favorite products page

Posted: Wed Jul 30, 2014 3:14 am
by Yurii Orishchuk

Hi Kabrams,

Hope it helps.

pre

1 Change your favorite collection with following way:
1.1 delete userId and productId fields.
1.2 add field "user" with type pointer to user.
1.3 add field "product" with type pointer to product.
1.4 if you have some items in this collection - set fields "user" and "product" for these items.
1.5 add to your "list" service "include" request parameter and set value for this field "user,product"
1.6 use your "favorites" list service to create UI you need.

/pre

Please read more about "pointer" type here http://devcenter.appery.io/documentat...

Regards.