on 10-23-2015 1:37 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
Thanks for the reply. That did work for me. However, just out of curiosity, i got another way to get it. Do you have any idea, what the difference is? below is my piece of code.
var a=this.getView().byId("sortPanelID")
var conditions = a._getConditions().
a._getConditions() gives met an array of column key and condition. Any inputs?
Thanks,
Manoj
Please Try:oEvent.getSource()._getConditions()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj,
Will this help? https://jsbin.com/moyaqomefa/edit?html,output
refered from : https://github.com/SAP/openui5/issues/605
Thanks,
Karthik A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.