Need a special offer?Find out if your project fits.
+

How to identify if apply or cancel button is clicked on fieldlist popup and apply or cancel or remove button is clicked on Calculated values pupup?

Answered
Jyoti asked on January 14, 2020

I want to know which button is clicked in popups displayed in flexmonster tool. Can you please give the details on how to do it?

5 answers

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster January 15, 2020

Hi Jyoti,
 
Thank you for writing to us.
 
As of right now, there are no built-in events to determine which of the buttons in the Field List & Calculated values windows is clicked.
 
Perhaps, you could tell us a little bit more about your use case? Understanding what you are trying to accomplish would help us see what can be done here in order to achieve the desired behavior.
 
Looking forward to hearing back from you.
 
Best regards,
Mykhailo

Public
Jyoti January 15, 2020

Hi Mykhailo,
We have a requirement where if user make changes to the report, then we want to display the icon in the page of the application in which we are using flexmonster tool. 

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 15, 2020

Hello, Jyoti,
 
Thank you for providing more details.
 
Our team would like to kindly recommend you using the reportcomplete or reportchange events in order to track changes of the report.

  • reportcomplete is triggered after the grid/chart was rendered. E.g., the calculated value is added, the field is placed in the current slice, etc. Detailed information about the event by the link: reportcomplete event.
  • reportchange is triggered when a report is changed in the component. The change can be performed by a user or programmatically. The list of API calls which trigger the reportchange event can be found following the link.

Also, please check out an example we prepared for you demonstrating using of such events in order to display the icon after the report is changed.
 
You are welcome to contact us in case additional questions occur.
 
Best regards,
Illia

Public
Jyoti January 16, 2020

Hi Illia,
It does not work with below mentioned scenario
Steps:

  1. Add calculated value
  2. Click on apply of field list popup. This shows column for calculated value in pivot table
  3. Open field list popup. Edit previously added calculated value.
  4. Click on remove button and click on Yes on alert popup. This removes column from report
  5. Now click on cancel of field list popup. The column is removed from table but it does not indicate that something changed in report.
Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 16, 2020

Hello, Jyoti,
 
Thank you for your feedback.
 
In order to track removing of the calculated measure, we suggest using the reportchange event. We have modified the JSFiddle provided earlier in the way it covers the actions you have mentioned.
 
Please let us know if everything works for you.
 
Best regards,
Illia

Please login or Register to Submit Answer