on 07-08-2015 7:01 AM
Hi Experts,
I have a requirement that I have an Icontab bar whose headings are coming from one entity and then inside the icon tab bar i have made a text area, whose value should come from another entity.
I have binded items of icontab bar to one entity so now headings are coming.
But how to bind the content based on the key.
Thanks Mansi
Any idea anyone how to do this in xml view, binding one control conditionally for different icon tab bars.???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
may be IconTabBar will be single and you need to bind different entities to IconTabFilter.
like this,
<IconTabBar applyContentPadding="false"
select="select" expandable="true" expanded="true" id="idIconTabBarNoIcons" >
<items>
<IconTabFilter >
<content>
<Text text="{EntityText1}"/>
</content>
</IconTabFilter>
<IconTabFilter >
<content>
<Text text="{EntityText2}"/>
</content>
</IconTabFilter>
</items>
</IconTabBar>
Thanks for reply.
Maksim my requirement is I am showing Document Id in header and based on those Id's I have to show text in Text Area.
In Select event I am looping on my array of documents, then i match document key's with the selected key and then if match is found i am setting the value in text area.
It is giving me no error infact after set if i try to getvalue() it is showing there but in the screen that value is not reflecting. what could be the reason.
select:function(oEvent)
{
var sKey = oEvent.getParameter("selectedKey"),
oFilter;
for (var i=0;i<this._notes.length;i++)
{
if (sKey === this._notes[i].DocumentKey)
{
this.getView().byId("textArea").setValue(this._notes[i].LongText);
}
}
}
@Dennis : ya entity means property here.... the entityset that we refer to
Thanks
Mansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Dennis...
Its a great help. But my views are XML.
Could you please help me out with the way to do this binding there.
<IconTabBar applyContentPadding="false"
select="select" expandable="true" expanded="true" id="idIconTabBarNoIcons" items="{/Entity1}">
<items>
<IconTabFilter text="{DocumentText_Text}" key="{DocumentText}">
<content>
<TextArea rows="10" id="textArea"/>
</content>
</IconTabFilter>
</items>
</IconTabBar>
This is the code for my Icon tab bar. How to go about with this??
Mansi Dixit wrote:
Thanks Dennis...
Its a great help. But my views are XML.
Could you please help me out with the way to do this binding there.
<IconTabBar applyContentPadding="false"
select="select" expandable="true" expanded="true" id="idIconTabBarNoIcons" items="{/Entity1}">
<items>
<IconTabFilter text="{DocumentText_Text}" key="{DocumentText}">
<content>
<TextArea rows="10" id="textArea" value="{value}" />
</content>
</IconTabFilter>
</items>
</IconTabBar>
This is the code for my Icon tab bar. How to go about with this??
See value in bold.
can you elaborate on "entity"? are you referring to property in a model?
Thanks
-D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can do filter on the binding in icon tab bar select event handler
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.