Forum Discussion

JoãoRodrigues's avatar
JoãoRodrigues
New Contributor
2 months ago

How to get cell context?

This is the layout of my CV

I'm using an XFBR in rows (and columns); the rules for each scenario are different; how do I get the context from the columns?
In other words, when the scenario is Budget I want to apply specific rules for that scenario, same thing for Actual. 

This would be the script:

   

Namespace Workspace.__WsNamespacePrefix.__WsAssemblyName.BusinessRule.DashboardStringFunction.REP_ParamHelper
	Public Class MainClass
	       Public Function Main(ByVal si As SessionInfo, ByVal globals As BRGlobals, ByVal api As Object, ByVal args As DashboardStringFunctionArgs) As Object
			Try
                             If args.FunctionName.XFEqualsIgnoreCase("GetAccount") Then 
                                    //Do something
                             End If
		End Function		
	End Class
End Namespace

 

1 Reply

  • chul's avatar
    chul
    Contributor III

    If you're trying to return different accounts based on the scenario in the same row, you can do it using a dynamic calc. This uses account types, but it's the same premise. 

    https://community.onestreamsoftware.com/blog/blog/can-a-member-have-two-or-more-different-account-types/16219