Skip to Content
avatar image
Former Member

How to do element binding in xml fragment in UI5 application

Hi guys,

I've raised a question which is bothering me so much on stackoverflow:

I don't want to copy paste again and reformat again because it's very long, sorry for that.

Any help will be very much appreciated.




Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 27, 2015 at 11:44 AM


    <core:Fragment binding="{path:'Creator'}" fragmentName="xxx.fragment.User" type="XML"/>


    move a contanier one level up and do a binding for controller in the view where you use it

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      <core:Fragment> itself (or sap.ui.core.Fragment) is not a control and has no representation at all in the runtime UI structure. I guess this is why settings on such an element in an XML View are not handled.

      I'll check whether this can be documented explicitly.

      Regarding the "binding" attribute: yeah, this was added two years ago in the XMLView parser, but not documented so far AFAIK. But documentation on how data binding is used in XMLViews has been generally missing and this gap is about to be filled - the documentation is currently in review and I saw that the "Element Binding" section in it will explain this attribute...



  • avatar image
    Former Member
    Jul 25, 2015 at 11:14 AM


    This will work. Cheers:-)

    Add comment
    10|10000 characters needed characters exceeded