on 01-24-2018 1:48 PM
Hey folks,
I have Multireferenceeditor where I open a reference search which I need to preconfigure somewhat. It has an attribute "catalogVersion" and I want to search only for the predefined Catalogversion I'm giving it to the context. actually I'm using the following code to open the referencesearch:
@Override
public void openReferenceAdvancedSearch(final Collection currentlySelected)
{
final TypeAwareSelectionContext typeAwareSelectionContext = new TypeAwareSelectionContext(null,
Lists.newArrayList(currentlySelected));
typeAwareSelectionContext.setTypeCode("CavokMedia");
typeAwareSelectionContext.setMultiSelect(true);
typeAwareSelectionContext.addParameter(TypeAwareSelectionContext.SEARCH_CTX_PARAM, getReferenceSearchContextMap());
getEditorContext().getParameters().forEach((key, value) -> typeAwareSelectionContext.addParameter(key, value));
sendOutput("premReferenceSearchCtx", typeAwareSelectionContext);
}
Is there any way to send some CatalogVersion parameter for the search?
Or is there any possibility to manipulate the ReferenceListBox?
I made my multireferenceeditor displaying different itemtype then the ReferenceEditor has. From CavokMedias (which is just a relation between the Products and the CavokMedias) to CavokMedia (which are the medias itself). So is there any way to give the items inside the list their own listener so that if I click on an item some custom code will be triggered?
Is there any method? Cause I cant find anything for customizing the ReferenceListBox except this:
@Override
public void updateReferencesListBoxModel(final String textQuery)
{
final SearchQueryData searchQueryData = buildSearchQuery(textQuery, typeCode, pageSize);
pageable = getReferenceEditorSearchFacade().search(searchQueryData);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.