|
From: Peter S. <co...@pe...> - 2007-09-25 13:54:55
|
Hi Roberto,
Remember the Custom SearchDTO tutorial? I've tried this, and I'm using a
custom SearchDTO, but this will never work because of this:
/**
* Saves the search in database
*
* @param searchName
* name that the search will be stored in database
*/
public MetaDataSearchDTO saveSearch() {
// This has been changed in order to work with the search_addon
concept
extractSearchTextsFieldsAndColumnsFromSearchPanels();
MetaDataSearchDTO search = new MetaDataSearchDTO();
search.setMeta_ids(searchFieldArray);
search.setSearch_strings(searchTextArray);
search.setShownColumns(shownColumns);
return search;
// mdr.saveSearch(searchName, searchFieldArray, searchTextArray,
// shownColumns);
}
which is from MetaDataLogViewer.
Reason is that this always return a MetaDataSearchDTO, while it should
return an instance of my custom searchDTO..
This is top prio for me, you have a solution proposal?
regards,
Peter
|