Filters for datagrid (non-persistable entity)

0
I'm working on a scenario with non-persistable entities only (data is retrieved from WebServices). I would like to add filter options for a datagrid and I have searched the forum for answers. I thought I could use the Data Grid Search Filters from the App store, but apparently this only works for persistable entities. Is there any best practice regarding this?     Kind regards, John.  
asked
5 answers
2

Hi John,

The widget works in my test project on a microflow-sourced grid. I also tested in 7.12. Perhaps your configuration is incorrect?

https://github.com/tieniber/DataGridColumnSearch/tree/master/test

answered
1

Excellent work Eric, works like a charm!!!

answered
0

Hi Eric,

 

Thanks for your quick response. I don't know what you exactly mean with "configuration is incorrect" as there is not much to configure for the DataGridColumnSearch:

 

Can you give me a direction what might be wrong?

answered
0

Unfortunately the same result:

 

answered
0

hi John, Eric, 

I am trying to do the same- i.e trying to add filters to a entity formed by Datasource MF for Non Persistable Objects. 
I downloded this widget and placed it below the datagrid where i need the filtering. however, This didnt work and my page doesnt load only. 
Attached the Screen Shot of the Error. Need your Help here in resolving this. I am using Mendix 7.23.6

CustomerNDFSD.BillToSite.dataGridColumnSearch1: Error while applying context Error: CustomerNDFSD.BillToSite.dataGridColumnSearch1: Error while applying context TypeError: Cannot read property 'applyContext' of undefined Error: CustomerNDFSD.BillToSite.dataGridColumnSearch1: Error while applying context Error: CustomerNDFSD.BillToSite.dataGridColumnSearch1: Error while applying context TypeError: Cannot read property 'applyContext' of undefined
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:46:58386
    at Object.e.exports.collect (http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:20:26913)
    at Object.e.exports.applyContext (http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:46:58285)
    at E.<computed>.O.passContext (http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:31:7776)
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:52:98907
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:52:98675
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:52:249815
    at i (http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:52:98560)
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:52:249791
    at o (http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:20:26852)CustomerNDFSD.BillToSite.dataGridColumnSearch1: Error while applying context Error: CustomerNDFSD.BillToSite.dataGridColumnSearch1: Error while applying context TypeError: Cannot read property 'applyContext' of undefined Error: CustomerNDFSD.BillToSite.dataGridColumnSearch1: Error while applying context Error: CustomerNDFSD.BillToSite.dataGridColumnSearch1: Error while applying context TypeError: Cannot read property 'applyContext' of undefined
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:46:58386
    at Object.e.exports.collect (http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:20:26913)
    at Object.e.exports.applyContext (http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:46:58285)
    at E.<computed>.O.passContext (http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:31:7776)
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:52:98907
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:52:98675
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:52:249815
    at i (http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:52:98560)
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:52:249791
    at o (http://localhost:8080/mxclientsystem/mxui/mxui.js?637019988712868022:20:26852)

answered