Skip to Content
0
Jun 19, 2020 at 03:25 AM

call multiple odata and set in one table

1435 Views

Hi expert ,

I want to read the data from odata and manipulate the data and set to table to show the result .

This is my imagination.

************************************************************************************

OModel1.read("EntitySet1" , { success : function (odata1) {

loop odata1 ⇒ process①

OModel2.read("EnitySet2 (odata1)" , { success : function (odata2){

manipulate the data of odata 2 and odata 1 . process②

endloop}

});

Table.setProperty (odata2.value , odata1.value);} }); ⇒ process③

************************************************************************************

When I read Omodel2 , the result data can't out and loop again the odata1 . after the looping , do the process③ and then ②.

so the data can't shown correctly .

How to do to get the data of Process② before table set property.

I set use batch value true or false . There is no changes in read operation .

Best Regards,

Phyo