Category / Section
How to get the axis name while dropping any element in AxisElementBuilder?
1 min read
This KB illustrates that how to get axis name while dropping element to axis builder.
Solution:
You can find the axis name while dropping any element in AxisElementBuilder with PivotClient control , by using the following code example.
C#
public Dictionary<string, object> NodeDropped(string action, string dropType, string nodeInfo, string olapReport, string clientReports) { var axisName = nodeInfo.Split(new string[] { "--" }, StringSplitOptions.None)[2]; OlapDataManager DataManager = new OlapDataManager(connectionString); DataManager.SetCurrentReport(Utils.DeserializeOlapReport(olapReport)); DataManager.Reports = olapClientHelper.DeserializedReports(clientReports); return olapClientHelper.GetJsonData(action, DataManager, dropType, nodeInfo); }
VB
Public Function NodeDropped(ByVal action As String, ByVal dropType As String, ByVal nodeInfo As String, ByVal olapReport As String, ByVal clientReports As String) As Dictionary(Of String, Object) Dim axisName = nodeInfo.Split(New String() { "--" }, StringSplitOptions.None)(2) Dim DataManager As OlapDataManager = New OlapDataManager(connectionString) DataManager.SetCurrentReport(Utils.DeserializeOlapReport(olapReport)) DataManager.Reports = olapClientHelper.DeserializedReports(clientReports) Return olapClientHelper.GetJsonData(action, DataManager, dropType, nodeInfo) End Function