Hi,
In my company, we are utilizing flexmonster apis and use chart convertor create highcharts based charts to disable. We even extended the convertor add a few more charts.
Everything worked fine until recently when we provided flat form table option on UI. Once that option is set, grid renders fine, however getData api fails.
See the error below. Is there a fix for this? Or Do flat form and getData don't work together? Please let us know so we can take the necessary action.
Uncaught TypeError: Cannot read property '0' of undefined
at b.Vz (flexmonster.full.js:1492)
at b.iZ (flexmonster.full.js:810)
at b.expand (flexmonster.full.js:810)
at f.load (flexmonster.full.js:851)
at Function.Hc (flexmonster.full.js:899)
at Function.DZ (flexmonster.full.js:899)
at f.getData (flexmonster.full.js:286)
at h.getData (flexmonster.full.js:268)
at k.getData (flexmonster.full.js:2278)
at Object.k.getData (flexmonster.full.js:2289)
Vz
@
flexmonster.full.js:1492
iZ
@
flexmonster.full.js:810
expand
@
flexmonster.full.js:810
load
@
flexmonster.full.js:851
Hc
@
flexmonster.full.js:899
DZ
@
flexmonster.full.js:899
getData
@
flexmonster.full.js:286
getData
@
flexmonster.full.js:268
getData
@
flexmonster.full.js:2278
k.getData
@
flexmonster.full.js:2289
OneExport$PLT$ReactAdvancedComponents$1.../web-src/react-modules/ReactAdvancedComponents/1/react-advanced-components/src/Pivot/flexmonster.highcharts.js.FlexmonsterHighcharts.getData
@
flexmonster.highcharts.js:41
Hello,
Thank you for reporting the issue.
However, our team did not manage to reproduce it on our side.
You are welcome to see the JSFiddle we have prepared while trying to replicate the error: https://jsfiddle.net/flexmonster/54c8mb3r/.
Please modify the provided JSFiddle or prepare a sample where the issue would be reproducible.
It would allow us to investigate the error on our side and provide you with possible solutions or the corresponding fix.
Our team is looking forward to hearing from you.
Kind regards,
Illia
Hey Illia,
I think this might be related to the amount of records. Because we're working with large datasets and they have millions of rows. Once the form is flattened this number increases even further.
Is there a limit on the data size getData method can handle? Have u never received a report on this issue?
Unfortunately, giving you an example might be tricky because it's related to data. However if that's the only way to debug and answer this question, we can try to get an instance running where you can see the example in one of our hosted vms.
Please kindly let me know how we should move with this issue.
Hello,
Thank you for your feedback and for providing the details.
We want to confirm that we have not received similar reports yet.
Therefore, we may need to reproduce this issue on our side to continue our investigation.
For example, you could provide us with temporary access to your environment, as mentioned in your recent email.
Our team is looking forward to hearing from you.
Kind regards,
Illia
Hi Team,
What is final solution here ?
Hello!
Thank you for your question. Currently, getData from a flat view is not supported for custom data source API. Please check the following thread for more details:
https://www.flexmonster.com/question/getdata-api-not-working-for-flat-type-of-flexmonster-grid/
Best Regards,
Maksym