Page 1 of 1
save of collections in an entity
Posted: Tue Jun 25, 2013 8:16 am
by sushma
I am not sure upon how the collections in an entity are being saved .(for eg : cross sale products / upsale products /productoptions)
for eg : adding list of products to a category .
any collection which is being added to an entity is not being set in the fields property in entity form .
Can anyone please tell how this save is being done .
Re: save of collections in an entity
Posted: Tue Jun 25, 2013 10:14 am
by phillipuniverse
Not sure I understand your question. The methods invoked within AdminBasicEntityController are:
Add:
@RequestMapping(value = "/{id}/{collectionField:.*}/add", method = RequestMethod.POST)
public String addCollectionItem(HttpServletRequest request, HttpServletResponse response, Model model,
@PathVariable Map<String, String> pathVars,
@PathVariable(value="id") String id,
@PathVariable(value="collectionField") String collectionField,
@ModelAttribute(value="entityForm") EntityForm entityForm, BindingResult result) throws Exception {
Update:
@RequestMapping(value = "/{id}/{collectionField:.*}/{collectionItemId}", method = RequestMethod.POST)
public String updateCollectionItem(HttpServletRequest request, HttpServletResponse response, Model model,
@PathVariable Map<String, String> pathVars,
@PathVariable(value="id") String id,
@PathVariable(value="collectionField") String collectionField,
@PathVariable(value="collectionItemId") String collectionItemId,
@ModelAttribute(value="entityForm") EntityForm entityForm, BindingResult result) throws Exception {
Re: save of collections in an entity
Posted: Wed Jun 26, 2013 4:47 am
by sushma
Yes ..you got my question right .. thanks for the reply now 'm able to proceed further on this
Re: save of collections in an entity
Posted: Mon Aug 12, 2013 4:52 am
by goldb328
If i set useForFetch flag at true, the listgrid display only 75 rows even if i scroll down. But if useForFetch flag is set at false, when i scroll down rows are loaded.
Re: save of collections in an entity
Posted: Wed Sep 04, 2013 6:22 am
by Rayna
The Collections feature is used in conjunction with Clipboard to save search results. Important: If your Web browser is set to block pop-ups, you will need to allow pop-ups from NCBI Web pages to use My NCBI to save searches and collections.