Let me explain the situation a little more fully
Entities A and B have bidirectional many-to-many relationship.
Entity A has a Presenter and a view, and its presenter contains a SubPresentable of type SimpleSearchJoinStructurePresenter for B
it's analogous to going to Category, selecting a particular category, then for that selected category, going to the "Products" tab and seeing the list of "all products"
except, now, in this analogy, if I click on "add" in the "all products" tab, I want to do a custom fetch to filter the entities that appear in the "search for a product" popup.
when you suggested:
Code: Select all
public void addClicked(final String newItemTitle) {
super.addClicked(newItemTitle);
((CustomCriteriaListGridDataSource)subPresenter.getDisplay.getDataSource()).setCustomCritera(new String[]{"someCriteria"});
I believe you were referring to the adding a new catalog (in this analogy), ie a new main presentable entity, but I want to add a new product to the list of "all products" (in this analogy), ie a new sub presentable entity