Re: List Controls Not Working After Updating Alpha Software Version
When I upgraded to 5221, the reports on all of my components that used list Controls and then CurrentListFilter('list1') for reports broke and were not honoring the BASE filters of the list, just the filters via a search by the user after the list was opened. So... if the list was opened filtered to one job, for example, before it was opened, and then user did report, it showed ALL the jobs. Selwyn sent me this code to put in the client side event OnRenderComplete to take care of that issue, which meant I had to do it on hundreds of components.... BUT anyway, I don't think my base filters for the list control itself were breaking like yours, but maybe some were and I didn't notice because I put that code in and it fixed that too?
Selwyn said this was fixed in a pre-release after the 5221 one, but I didn't want to get the pre release and risk other things breaking.
Since your question seems to relate to base filters on a list control, I thought you might see if this code Selwyn sent helps you...
When I upgraded to 5221, the reports on all of my components that used list Controls and then CurrentListFilter('list1') for reports broke and were not honoring the BASE filters of the list, just the filters via a search by the user after the list was opened. So... if the list was opened filtered to one job, for example, before it was opened, and then user did report, it showed ALL the jobs. Selwyn sent me this code to put in the client side event OnRenderComplete to take care of that issue, which meant I had to do it on hundreds of components.... BUT anyway, I don't think my base filters for the list control itself were breaking like yours, but maybe some were and I didn't notice because I put that code in and it fixed that too?
Selwyn said this was fixed in a pre-release after the 5221 one, but I didn't want to get the pre release and risk other things breaking.
Since your question seems to relate to base filters on a list control, I thought you might see if this code Selwyn sent helps you...
Code:
//Reports were only recognizing filters from Search on the list control, but NOT filters set //before component was opened!!! Put this code in client side OnRenderComplete {dialog.object}.listFilterOrder = function(listId) { var mode = 'filter' //mode can also be 'userFilter' which does not include the base filter if(typeof arguments[1] != 'undefined') mode = arguments[1]; var obj = {filter: '', order: '', parameters: ''}; var lObj = this.getControl(listId); if(lObj) { if(mode == 'filter') { obj.filter = lObj._state.whereClause; obj.parameters = lObj._state.whereParameters; if(typeof lObj.childLists != 'undefined') { } } else { obj.filter = lObj._state.filter; obj.parameters = lObj._state.filterParameters; } obj.order = lObj._state.order; } return obj; }
Comment