Menu
Download Free Trial

updateData and setReport problems on AngularJS

Answered

All right guys.
First, i am not sure about be a problem to angular component, but here is the scenarios:
 
I have a dynamic server data, so i do some requests based on an external filter and i am trying to update the pivot with the new data. 

setReport()
This method only works 1 time for the pivot. The first time works perfectly, but if i try to repeat this process passing the new data, nothing happens. The data does not change on the pivot and no events are triggered.

updateData()
This method does not work. Worst, when i try to use passing the new data, it cleans the pivot up and doesn’t trigger any error event.

9 answers

Public
Dmytro Zvazhii Flexmonster October 10, 2017

Hello Carlos,
Thank you for your question. We have not managed to reproduce the issue on the latest version of the Flexmonster Pivot Component. Please check if you are using the latest version(Ctrl+alt+i). For now, the latest version is 2.405. If your version is different please update your component to the latest version.
Let us know if everything works fine for you.
Regards,
Dmytro.

Public
Carlos Silva October 10, 2017

Hi Dmytro!
I am already using the 2.405. :/

Public
Dmytro Zvazhii Flexmonster October 10, 2017

Hello Carlos,
Thank you for the update. Could you please provide us with the additional information for reproducing? The code sample will be very helpful. It will allow us to move further in our investigation.
Regards,
Dmytro.

Public
Carlos Silva October 16, 2017

Hello Dmytro, i am working on it right now!

Public
Carlos Silva October 16, 2017

Dmytro, how can i have some licence key to use on my sample? (i’m using pluker http://plnkr.co)

Public
Dmytro Zvazhii Flexmonster October 17, 2017

Hello Carlos,
Here is the license key for your sample: Z7PN-XCE06Z-2H684H-2N0230.
Let us know if everything works fine for you.
Regards,
Dmytro 

Public
Carlos Silva October 17, 2017

Hello Dmytro. I’ve just finished my sample and here goes my considerations:

1 – I’ve figured out that setReport works just fine to my case and there is no problem at this method.
2 – updateData() does not work anyway.

To show the problem, my sample loads mocked data from an external server and put it into memory, so you can set the data by setReport() or updateData(). I’ve created a button for each method and for each http request.

Sample link: http://embed.plnkr.co/4BgxmjuGcwl3EGbq5wG4/

Public
Dmytro Zvazhii Flexmonster October 17, 2017

Hello Carlos,
Thank you for providing us with the sample project. Please note that the updateData button does nothing since the name of the handler method is not correct. It should be "updatePivotData()". However, the most important thing here is the pivot.updateDate call. The correct one here is pivot.updateData({data: ctrl.data}). For such cases, you are welcome to visit our documentation – http://www.flexmonster.com/api/updatedata/. The detailed information with the rich variety of examples for all API methods is available there.
Please let us know if everything works fine for you.
Regards,
Dmytro.

Public
Carlos Silva October 17, 2017

Oh, my bad!
I’ll check this out, thanks for the support 🙂

Please login or Register to Submit Answer