Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 81102

Double clicking a Chart JS datapoint runs the resulting microflow twice

$
0
0

I'm using an On Click Datapoint Microflow in Chart JS. It opens a popup page. If I click on it once, it works fine. If I double click, the popup opens twice.  I've tried

  1. Save a non-persistent object with a datetime stamp, associated with the object you are working with for every click. In the onclick MF check whether there is already such a non-persistent object. Depending on the time interval between the two clicks you can act accordingly as stated here: https://forum.mendixcloud.com/link/questions/7748 Result: no change
  2. Set the default button trigger to double-click. This worked for me in another context but there is no such option in Chart JS. Result: not available
  3. Set a blocking progress bar. This also worked for me in a different context but Chart JS doesn't have this option. Result: not available
  4. Perform a blocking Show message action at the beginning of the microflow. Result: Two blocking messages.
  5. Use the Delay action from Community Commons set to 1000 milliseconds in combination with solution 1. Result: Popup forms take longer to open and they both open at the same time

I think Solution 1 should have worked, especially in combination with Solution 5, but it seems the microflows from both clicks are being executed at the same time and the non-persistent objects are not being updated until the end.

I found the following related posts:

https://forum.mendixcloud.com/link/questions/7748 

https://forum.mendixcloud.com/link/questions/15542

Is there something else I should try?


Viewing all articles
Browse latest Browse all 81102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>