6

What is the real world usage of the "dependents" aggregation in SAPUI5.

This was added in version 1.9. What problem does it solve? I couldn't find much documentation in the SCN site on this.

hirse
  • 2,394
  • 1
  • 22
  • 24
c_y
  • 540
  • 3
  • 9
  • 16

1 Answers1

16

It's to connect otherwise 'orphan' UI elements so they can partake of the databinding available to e.g. a view. It's especially relevant when you instantiate a dialog, e.g. from a fragment, in a view's controller. The dialog won't automatically have the models that are set on the view available to it ... but if you make the dialog a dependent of the view, it will.

See "Using Dialogs Defined As Fragments" for more info.

qmacro
  • 3,025
  • 23
  • 33