Skip to Content
avatar image
Former Member

SAPUI5 SimpleForm Odata binding

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 29, 2017 at 03:37 PM

    Hello,

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

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 29, 2017 at 02:47 PM

    Hello,

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

    Add comment
    10|10000 characters needed characters exceeded