Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To set FilterValueHolder you have to get it from LookupComponent in before render hook, modify it and set id it again

Code Block
themeEclipse
languagejava
linenumberstrue
public void beforeRenderHook(final ViewDefinitionState viewDefinitionState) {
	LookupComponent lookup= (LookupComponent) 
					viewDefinitionState.getComponentByReference("lookupReference");
	FilterValueHolder holder = lookup.getFilterValue();
	holder.put("key", "value");
	lookup.setFilterValue(holder);
}

...