SAPUI5: can not access `sortItemData` in the sap.m.P13nSortPanel at update event. -


i want collect sortitemdata in sap.m.p13nsortpanel object on update time.

so wrote following function:

_onupdatesortitem: function(oevent) {         var parameters = oevent.getparameters();         var osortitemdata = oevent.getparameter("sortitemdata");         if (osortitemdata) {             this._osorter[parameters.key] = {                 scolumnkey: osortitemdata.getcolumnkey(),                 soperation: osortitemdata.getoperation()             };         }     }, 

and bound onupdate handler. problem osortitemdata undefined while if use function onaddsortitem event works fine.

after checking code of sap.m.p13nsortpanel fires event, assume did not bind sortitems aggregation. please have @ explored example well. there can see panel uses 2 aggregations, items , sortitems.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -