reportchange not working correctly with custom datasource API - React

Answered
Bryan Moore asked on March 13, 2024

when i go to try to filter data normally, with no custom data source, example:
https://jsfiddle.net/flexmonster/w3a7hxs9/

  1. go to "Color", unselect green, apply filter
  2. the reportchange gets triggered -- expected.

 
however, if i use a custom datasource api instead of getData() like in the jsfiddle link (example):

    dataSource: {
      type: "api",
      url: "http://localhost:3400/api/cube",
      index: "fm-product-sales"
    }

doing the same steps does not trigger the reportchange. how can this be triggered using the custom datasource API? it works correctly on my non custom datasource api tables, as well as works correctly for adding/removing fields on my tables with the custom datasource api. just not when trying to filter data of a field like the above steps.

3 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 13, 2024

Hello, Bryan!
 
Thank you for reaching out to us.
 
We agree that reportchange should be triggered when filtering members in custom data source API. Our Dev team will take a closer look at the described case and get back to you with the fix with ETA April 1st.
Our team will notify you about any updates on the matter.
 
Feel free to contact us in case of any other questions.
 
Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 2, 2024

Hello, Bryan!
 
Hope you are having a great week.
 
Our team is happy to inform you that the issue with the reportchange event not being triggered on filtering while using the custom data source API was fixed.
 
The fix is included in 2.9.74 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-74/.
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
 
Please let us know if the fix works well for you.
 
Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 9, 2024

Hello, Bryan!

Hope you are doing well.

Just checking in to ask if the fix for reportchange event in the custom data source API works well.

Looking forward to hearing your feedback.

Kind regards,
Solomiia

Please login or Register to Submit Answer