Skip to main content
July 17, 2024
Solved

Consolidation

  • July 17, 2024
  • 2 replies
  • 0 views

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

Best answer by T_Kress

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


T_Kress_0-1721267392940.png

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.

 

 

2 replies

T_KressAnswer
July 18, 2024

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


T_Kress_0-1721267392940.png

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.

 

 

August 29, 2024

Teresa,

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

Thanks,

Kurt

 

December 2, 2024

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.


jmohl_0-1733171262433.png