Forum Discussion
Mustafa_A
4 years agoContributor II
Hi ckattookaran
I tried setting up a combo box. I'm a bit lost on this. Would you please share any examples that might be out there?
ckattookaran
4 years agoVIP
I wrote a blog post on this a while back. However, that was a while ago when Multi-Select was not a thing.
Multi-Member selection in Cube View - CPM Insights
Now for this one, create an XFBR and call it in place for Entity. XFBR(YourRule, GetMemberSelection, DimType=Entity,Members=[|!yourentityparam!|])
Private Function GetMemberSelection(ByVal si As SessionInfo, ByVal globals As BRGlobals, ByVal args As DashboardStringFunctionArgs) As String
Try
Dim strMbrs As String = args.NameValuePairs.XFGetValue("Members")
Dim strDimType As String = args.NameValuePairs.XFGetValue("DimType")
Dim retValue As String = ""
If Not String.IsNullOrEmpty(strMbrs)
Dim mbrList As List(Of String) = strMbrs.Split(",").Select(Function(x) x.Trim).toList()
retValue = $"E#{String.Join(", E#", mbrList)}"
Else
If strDimType.StartsWith("E")
retValue = "E#None"
End If
End If
Return retValue
Catch ex As Exception
Throw ErrorHandler.LogWrite(si, New XFException(si, ex))
End Try
End Function
I'll try to create a follow-up to the previous post, hopefully by this weekend.
Related Content
- 3 years ago
- 6 months ago