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

setReport triggering fieldslistclose

Answered
Eric Morgan asked on January 23, 2019

I'm noticing once I have open and closed the Fields window, subsequent calls of setReport will trigger the fieldslistclose event. Is this by design?

7 answers

Public
Iryna Kulchytska Iryna Kulchytska Flexmonster January 24, 2019

Hi Patrick,
 
Thank you for posting your question to the forum.
 
You are right, subsequent calls of setReport() trigger the fieldslistclose or fieldslistopen event if the Fields window was initialized. This is by design and depends on the configuratorActive report option, which is false by default (the fieldslistclose event is triggered).
 
Could you please let us know if this behavior does not work for your case?
 
Kind regards,
Iryna

Public
Eric Morgan February 6, 2019

Thank you, Iryna,
What I am trying to do is implement a default drillThrough (as per the Fiddle demo) that is not completely eliminated when adding rows and/or columns in the Fields window.
I seek to do the following:

  1. Configure a default drillThrough for my data set, which I have done in my application
  2. Allow the user to add or remove fields from the drillThrough without being affected by adding or removing columns from my report via the Fields list

Any insight is appreciated.

Public
Tanya Gryshko Tanya Gryshko Flexmonster February 6, 2019

Hello, Patrick,
Thank you for your answer.
Please have a look at the following example: https://jsfiddle.net/flexmonster/ra6cbgoq/. There is a default drillThrough defined with "Business Type", "Country" and "Price". If the user removes "Price" and adds "Color", a drillThrough property will store a new value. The next time the user opens the drill through pop-up window, "Business Type", "Country" and "Color" will be shown. Could you please confirm that you are looking for a way to be able to keep the old value of a drillThrough property?
If you want to achieve something different, we kindly ask you to provide more details. Waiting for your reply.
Regards,
Tanya

Public
Eric Morgan February 6, 2019

Tanya,
Thank you for the response. Using the same example: https://jsfiddle.net/flexmonster/ra6cbgoq/, let me explain what I would like to achieve. With the same default drillThrough defined "Business Type", "Country" and "Price", if I add a column for "Total Sum of Quantity" I still want to see old drillThrough as "Business Type", "Country" and "Price".

Public
Tanya Gryshko Tanya Gryshko Flexmonster February 7, 2019

Hello, Patrick,
It looks like we have an issue here.
We will provide a fix in the next minor build (ETA Feb 26th)
Regards,
  Tanya

Public
Eric Morgan February 7, 2019

Tanya,
Thank you for your help and turnaround on this issue.

Public
Iryna Kulchytska Iryna Kulchytska Flexmonster February 27, 2019

Hello Patrick,
 
I'm glad to inform you that the version with the update for you has already been released.
Now, it is possible to set the drillThrough slice property in the global object. That allows pre-configuring the default list of columns that will be shown in the drill-through view.

Please feel free to update the component.

Let us know if everything works fine for you.
 
Kind regards,
Iryna

Please login or Register to Submit Answer