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

dialog option

Answered
dror asked on December 1, 2021

when i press on a cell and the detail dialog will get open how i can add a field without press on the fields toolbar  and manage it from the json report in myreact app ? 
 
 

1 answer

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster December 2, 2021

Hello, Dror,
 
Thank you for writing to us.
 
You can pre-define the necessary fields for the drill-through view (a window that opens when you press on a cell). The fields should be set in the Slice object of your report. For example,

slice: {
drillThrough: [
"Country",
"Category",
"Color",
"Price"
]
}

Please check the following JSFiddle illustrating this approach: https://jsfiddle.net/flexmonster/ra6cbgoq/ (line 11 of the JavaScript code).
Kindly note that you can choose the fields in the drill-through view directly from the UI. In the Detail window, there's a button that opens the Fields. You can find it in the top right corner of the grid.
 
We hope it helps. You are welcome to write to us in case further questions arise.
 
Kind regards,
Nadia

Please login or Register to Submit Answer