on 02-19-2014 4:27 PM
This is with reference to a comment I put on DJ's excellent blog on how to mock up Payroll Control App inline with Fiori Apps, here is a link
I was looking on how do you bind Element/Associations to UI Controls in JS views, using JSON Notation, then DJ suggested I put this question as a separate thread so that it might benefit others if they are trying something similar
Here is a snapshot of how DJ has done in XML views
<IconTabFilter
binding="{/cities/0}"
text="{name} ({id})"
icon="sap-icon://group"
design="Horizontal">
</IconTabFilter>
I was trying to do the same in JS views but couldnot get it to work
new sap.m.IconTabFilter({
bindElement:'{/cities/1}',
icon: "sap-icon://notes",
text:"{/name}",
//text:
count: "12",
color:sap.ui.core.IconColor.Critical,
content: new sap.m.Text({
text: "Notes go here ..."
})
}),
I have specified ComplexBinding in the index.html, also tried various options e.g.
association:'{/cities/1}',
aBindings:'{/cities/1}',
Regards
Sandip
bindElement(sPath, mParameters?) : sap.ui.base.ManagedObject
Bind the object to the referenced entity in the model, which is used as the binding context to resolve bound properties or aggregations of the object itself and all of its children relatively to the given path. If a relative binding path is used, this will be applied whenever the parent context changes.
Parameters:
{string} | sPath | the binding path |
{object} | mParameters?, Default: | map of additional parameters for this binding |
Returns:
{sap.ui.base.ManagedObject} | reference to the instance itself |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.