Versions Compared

Key

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

...

  • call button.requestUpdate(true) on ribbon action item
  • call window.requestRibbonRender() on window component.

6.2. listeners

6.2.1 view listener structure

Listeners are methods that will be executed when specified event is fired. Every listener has structure:

...

  • eventname - name of event on which this lisiner is waiting
  • className - class (path + name) which contains listener method
  • beanMethod - name of listener method that should be executed when event is fired
6.2.2 view listener event names
nameusage
onInputChange
Code Block
languagexml
<layoutElement column="2" row="2">
	<component type="input" name="quantity" field="quantity" reference="quantity">
		<option type="alignment" value="right" />
		<listener event="onInputChange" method="someMethod" class="someClass" />
    </component>
</layoutElement>
onSelectedEntityChange
Code Block
languagexml
<layoutElement column="2" row="1">
	<component type="lookup" name="product" reference="product" field="product">
		<option type="column" name="name" fields="name" link="true" />
		<option type="searchable" value="name,number" />
	    <option type="orderable" value="name,number" />
	    <option type="expression" value="#number + ' - ' + #name" />
	    <option type="fieldCode" value="number" />
	    <listener event="onSelectedEntityChange" method="someMethod" class="someClass" />
    </component>
</layoutElement>

For more informations about listeners see 'view listeners section'

Anchor
rowStyleResolvers
rowStyleResolvers

...

Criteria modifiers allow you to modify state of SearchCriteriaBuilder using to fetch component's rows. You can use them to filter out some data for example all entities owned by user other than currently logged in used by given view component to fetch row entities.

Info

Currently row style resolvers criteria modifiers can be used only with grid or lookup component.

...

  • className - class (package path + name) which contains resolver modifier method
  • beanMethod - name of method

For more informations about criteria modifier see 'criteria modifier section'.