kabrams
Posts: 0
Joined: Mon Nov 18, 2013 2:05 am

Using list service to build favorite products page

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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Using list service to build favorite products page

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.

Return to “Issues”