BI Dashboard for ASP.NET Core - How to Access Hidden Field Values
The following example shows how to access the data source field's values when these values are not displayed in the dashboard item. The control gets data when a user clicks the corresponding item.
For example, you need to redirect the user to the specific web page based on the Department
field value when the corresponding item is clicked. In this scenario you can use Underlying and Displayed Data API in the ViewerApiExtension.itemClick event handler. Put the Department
field to the "HIDDEN MEASURES" section and set its summary type to Min
or Max
:
After that, you can call the ItemData.getMeasureValue method to obtain summary values for hidden measures:
var departmentMeasureValue = dataSlice.getMeasureValue(departmentMeasure.id);
var departmentValue = departmentMeasureValue.getValue();
- Dashboard for ASP.NET Core - How to obtain a dashboard item's client data
- Dashboard for ASP.NET Core - How to obtain a dashboard item's underlying data for a clicked visual element
- Dashboard for ASP.NET Core - How to obtain underlying data for the specified dashboard item
(you will be redirected to DevExpress.com to submit your response)