odata - Loading model/service contents before table is shown on the screen -
odata - Loading model/service contents before table is shown on the screen -
i have complex problem in supposed info service before screen gets loaded. using odatamodel in application. want is, want populate info service , show in table in 1 of columns while other columns of table should have info static json.
i trying create 1 table , tie info service want setting table invisible don't want create utilize of table. purpose of creating table have info service loaded , purpose of setting invisible not show users things of no use. got know that, unless , until table rendered on screen, don't info model.
how can achieved? help appreciated.
thanks
have @ illustration : http://jsbin.com/qilaf/2/edit?js,console,output
i have used local json model instead of odata model, if @ console, shows programme flow (and model loaded prior table rendering):
controller.loaddata() - info loaded view.createcontent() - table created (not yet rendered) controller.oninit() - table rendered view.onafterrendering() - renderedon sidenote, not advice loading model view, that's matter of style/taste, illustration simply intended show creation/loading of model totally independent creation/rendering of ui controls
odata sapui5
Comments
Post a Comment