SAPUI5 Table getting recreated on event
I have a sapui5 treetable getting updated one buttion click event. On button click i am getting data using ajax and want repopulate the existing tree table rendered on first call. I have simulated the issue in below bin . How to avoid recreating the table on button click ?
i tried to check the otable was null before recreating the object but it did not help . Please advise .
Figured out on my own. Initialized table object ouside of the function.