Forum Discussion

FW's avatar
FW
New Contributor II
12 days ago

Pass through external parameters into dynamic cube view services

Hello,

Is there a way to pass a combo box paramater into a cube view service? I think would be through the Service Factory.

Since the cube view service runs when the cube view is executed and there is no call as XFBRs or Dashboard extenders, Is there a way to pass parameter values into the cube view service business rule?

 

1 Reply

  • I was able to get this to work using args.CustomSubstVars.

    Dim entity As String = Nothing 
    Dim CustomSubstVars As Dictionary(Of String,String) = args.CustomSubstVars 
    For Each var In CustomSubstVars 
       If var.Key = "par_TestBook" Then 
        entity = var.Value 
        End If 
    Next

     

    The service is being called 3 times whenever I run the CubeView, and CustomSubstVars is empty the first 2 calls. On the 3rd call I am able to get a value for entity, which gives me the context to create the rows.