on 04-17-2019 3:10 PM
hello,
I am trying to attach a models to a view, but it is not getting an absolute path and therefore not showing the output
how do I fix this??
XML
<IconTabFilter id="fltComments" text="Comments" icon="sap-icon://comment" key="Comments" iconColor="Critical">
<content>
<FeedListItem text="{spCom>SPcomment}" icon="sap-icon://personnel-view" info="{spCom>appLvl}" sender="{spCom>userName}"/>
</content>
</IconTabFilter>
JS
oModel.read(comments, {
success: function (oData, response) {
if (oData.results !== "undefined" || oData.results !== null) {
var UsageModel = new sap.ui.model.json.JSONModel({
"spData": oData.results
});
that.getView().setModel(UsageModel, "spCom");
}
},
error: function (error) {
var message = "Error";
sap.m.MessageBox.show(message, sap.m.MessageBox.Icon.ERROR, "Error");
}
});
UI5 Diagnosis
regards
Siddharth
Siddharth what does your Odata call return can you please attach that screen shots also? If your feed list items are multiple which normally is then you should use List as parent control of this item with items binded via absolute path as aggregation. Then in feed you can refer via relative path as done here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome back nabheet, missed you in the activity feed 😛
Mahesh Kumar Palavalli feeling is mutual bro... Management stuff kills me:)
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.