Forum Discussion

OS_Love's avatar
OS_Love
New Contributor III
5 months ago

Consolidation

I have created a literal value parameter  for entity that I want to refer in my finance rules for calculation.

 

Can someone share me a code where I can look up values from a parameter I set instead of running a  E#Root.base or something.

Running a E#Root.base where txt1='value' is not an option .

 

Thanks

  • If you go into a Finance BR and type this in the filter box:

    You will find sample code to do that which is this:

    Dim sValue As String = BRApi.Dashboards.Parameters.GetLiteralParameterValue(si, isSystemLevel, workspaceIDIfNotInName, combinedWsAndParamName)

    That should do it.

     

     

  • T_Kress's avatar
    T_Kress
    Contributor III

    If you go into a Finance BR and type this in the filter box:

    You will find sample code to do that which is this:

    Dim sValue As String = BRApi.Dashboards.Parameters.GetLiteralParameterValue(si, isSystemLevel, workspaceIDIfNotInName, combinedWsAndParamName)

    That should do it.

     

     

    • KurtMayer's avatar
      KurtMayer
      Contributor

      Teresa,

      Can you give an example of what a "combinedWsAndParamName" string would look like?

      Thanks,

      Kurt

       

  • jmohl's avatar
    jmohl
    New Contributor II

    For the "WorkspaceIdIfNotInName" argument, try using args.PrimaryDashboard.WorkspaceId (unless you need to cross workspaces, in which case you'd have to retrieve a different workspace Id). Then you can pass your literal value parameter name into the "combinedWsAndParamName" argument.