Skip to Content
0

SAPUI5 SimpleForm Odata binding

Sep 29, 2017 at 10:15 AM

225

avatar image
Former Member

Hi Everyone,

I Have A SAPUI5 Applikation with a Simple Form. The Form has 3 labels and 3 inputs, and i bound it with the following code to a Odata Service.

    var oNodeHeader = sap.ui.getCore().byId("nodeHeader")	
    oNodeHeader.bindElement({
	path : "/NodeHeaderSet('"+pname+"')",
    });	

This is able to read Data into the inputfields.

Now i have the following problems:

1.) I want to refresh the Data (read it again from the System):

When I Use

oNodeHeader.getElementBinding().refresh(true);   

The new Data is loaded but not Displayed.

2.) How can I submit the Data from the inputs back to the SAP System (Using the Update method of the Gateway service)?

Greetings Jan Schmidt

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Joseph BERTHE Sep 29, 2017 at 03:37 PM
0

Hello,

For your second question, try using sumbitChange from your OData Model.

Regards

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Sep 29, 2017 at 02:47 PM
0

Hello,

can you share your app ? this is not clear to make a comment

Share
10 |10000 characters needed characters left characters exceeded