on 08-21-2006 4:27 PM
Hi all,
I have created my own Search component, I have put it in new Search Component Set with standard_search_input component and now I want to display my component only after "Show Options" is clicked. Now I can see it always, independently on Show/Hide Option.
Is it possible?
Thanks,
Iva
Hi Iva,
here a coding example for how to retrieve the 'show otions info' within method 'setSearchParamsMap':
/**
Get back the interchange map from parent search dialog control.
Relevant information can be read out (eg. display of options state).
@see com.sapportals.wcm.control.util.search.ISearchComponent#setSearchParamsMap(com.sapportals.wcm.control.util.search.SearchParamsMap)
*/
public void setSearchParamsMap(SearchParamsMap map) {
// info about just searched
if (map.containsKey(SearchParamConst.PARAM_JUST_SEARCHED)) {
// search hast just been executed, might be helpfull to know
boolean justSearched = ((Boolean)map.get(SearchParamConst.PARAM_JUST_SEARCHED)).booleanValue();
}
// advanced mode
if (map.containsKey(SearchParamConst.PARAM_DISPLAY_SEARCH_OPTIONS)) {
// flag that states if search options are display or not
boolean advanced = ((Boolean)map.get(SearchParamConst.PARAM_DISPLAY_SEARCH_OPTIONS)).booleanValue();
this.persMap.put("CBX",new Boolean(advanced).toString());
}
}
This is also in the "Developing a Search Component for KM Search iView" example of Thilo Brandt:
Regards Matthias Röbig-Landau
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.