Skip to Content
avatar image
Former Member

help with sap.m.P13nSortPanel

Hi,

I am using a P13nSortPanel and i am binding it to a model to fill the items and the sort items. After the sort panel has been changed by either adding a new row or by changing the items, i am not able to get the complete set of data on the sort panel.

i tried oEvent.mParameters.payload.sort which also didnt get me the complete data.

Please help.


Thanks,

Manoj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 24, 2015 at 05:24 AM

    Hi Manoj,

    If you are using only P13nSortPanel, then try like this -

    oEvent.getSource().getAggregation("sortItems");
    
    

    Check this sample - Plunker, where I am using columns, sort and filter panels and on click of 'OK' in dialog it will alert the first sort item column key and operation. Check the code in App.controller.js - handleClose function. Since, I have used different panels in the dialog. I have used little bit different code, hope you will understand.

    Regards,

    Sai Vellanki.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Manoj,

      Both can be used. But difference will be with ._getConditions() you will get hold of the condition values that are set to the sortItem. With .getAggregation("sortItems")  you will get hold of full item.

      Regards,

      Sai Vellanki.

      Capture.PNG (20.0 kB)
  • Oct 23, 2015 at 12:46 PM

    Hi Manoj,

    Will this help? https://jsbin.com/moyaqomefa/edit?html,output

    refered from : https://github.com/SAP/openui5/issues/605

    Thanks,

    Karthik A

    Add comment
    10|10000 characters needed characters exceeded