on 03-03-2014 11:19 AM
Hello All,
I have created an application where i am displaying the HANA table data in tabular format using sap.ui.model.odata.ODataModel and sap.ui.table.Table
What needs to be done or triggered to reload the table display from HTML page, as soon as there is a change in the table data.
I am updating the table data using another call (using XSJS) from the same HTML screen.
Thanks
Ramesh
Hi Ramesh,
I'm going through kinda same scenario as yours. I am curious to know how are you updating the Hana table, is that a odata update call again, or do we have a way to do it?
Suggestions from anybody is welcome.
Thanks,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use setTimeout in javascript to check if the data is changed every 5 seconds:
Kind regards,
Wouter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the timeout, do a call to a function. In that function you can update your model. If you are using bindings in your table, then the table will change when you update your model.
Model <-> table
You can use the following to load your new data:
oModel.read('/Products(1)',null,null,true, function(oData, oResponse){
alert("Read successful: " + JSON.stringify(oData));
},function(){
alert("Read failed");});
Documentation/AdvancedTopics/DataBinding/ODataWrite – SAPUI5 Wiki (TIP CORE User Interface)
Kind regards,
Wouter
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.