on 07-25-2015 9:46 AM
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.
thanks.
Regards,
Aaron
try
<core:Fragment binding="{path:'
Creator
'}" fragmentName="xxx.fragment.User" type="XML"/>
or
move a contanier one level up and do a binding for controller in the view where you use it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maksim,
Thanks, binding on fragment doesn't work, but wrap the fragment in a container and set the binding path of the container works.
one question though:
where do you find these xml binding syntax? I mean how do you know there's a "binding" attribute available for set binding path?
I run through the documentations, but I can't find anything about it.
Regards,
Aaron
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...
Regards
Andreas
sap.ui.getCore().byId("idInFragment").setModel(oModel);
This will work. Cheers:-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.