2 Replies Latest reply on Nov 8, 2017 6:00 AM by karnoia RSS
    karnoia Newbie

    How to Refresh only when Data change, not just repeat the number

    Good morning,

     

    I have been fighting for a while with this problem. I have 2 mashups inside a big screen, which share data. In one of them I have a form which gives data to a chart, that is in the other mashup. That part is working perfectly (I had to make some "sharing" services. One that reads and writes on a property, and another one that reads the property and writes on the chart).
    My problem is that I need an event that calls the second service just when the input data has changed.

     

    What I have tried so far:

    - I can't use the autorefresher, the chart keeps getting redraw so that is not an option.

    - Using a service that reads the property of how many values the user have input, but the "ServiceInvokeCompleted" and the "AllDataChanged"  trigger even if the value that it reads is the same (I understand that the first one doesn't work, but for me the alldatachanged should have made it).

    - Using the GetProperties property of the Thing itself, with the "Automatic update values when able" option depending on the DataChange chosen in the properties. This doesn't even fire half of the times that the property changes.

    - Using a parameter on mashup level and use the nameoftheparameterChanged event. It does the same as the second option, keeps refreshing the chart even if the value is still the same.

     

    I have run out of ideas, and the layout has to be like this, with 2 mashups running at the same time because of the computer configuration.

    Regards,
    Josue Nanin