on 03-17-2018 4:31 PM
Hello,
i try to create a Master/Detail View with oData v4.
The Problem is that when i edit a element on a the detailview (for Example the Name). The list on MasterView is not refreshed.
So ein bind it on my Masterview:
<List items="{som>/Users}" >
<StandardListItemtype="Navigation"title="{som>UserName}"description="{som>FirstName} {som>LastName}"press="onItemPress" />
</List>
"som" is the Root-Point for my Odata service.
So i do the binding on my Detailview.
this.getView().bindElement({
path : this.getBindPath(sId),
model: "som"
});
<fLayout:SimpleForm>
<fLayout:content>
<Label text="{i18n>settings.user.username}" />
<Input value="{som>UserName}" />
</fLayout:content>
</fLayout:SimpleForm>
By this i can refresh the list in Masterview:
this.getView().getModel("som").refresh();
But i have to do int manually. How can i attach this to an on change event?
hi florian,
After editing the name in detail .you are calling the master list odata service right?.instead of binding this.getView().getModel("som").refresh();.try to call the master list id and set the model directly to that elementid
sap.ui.getCore().byId("Listid").setModel(Modelname,"som");
Regards,
Drushya
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 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.