The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

jmohl's avatar
jmohl
New Contributor III
1 year ago
Solved

Syntax for calling a Finance Custom Calculate Service

Hello,

I am working in an 8.5 application and want to utilize Finance Custom Calculate services within a dashboard. My service factory is enabled at the Dashboard Maintenance Unit level of detail. I am trying to launch the custom calculate function via a dashboard button.

Does anyone have example syntax for this? I figured OneStream would release documentation externally for this but was unable to locate any. Thanks!

 

  • Hi, this is how you can set up your button:

    {Workspace.CallCustomFinanceBR_WS.CallCustomFinanceBR_MU.WSMU}{CustomCalculate}{}

    In my example, this is how I set up my Service Factory, which returns the Custom Finance BR "FinanceBR":

    Case Is = WsAssemblyServiceType.FinanceCustomCalculate
        Return New FinanceBR()

    I chose to reference the service factory on the Workspace Maintenance Unit (WSMU), but you could just as well put it on the Maintenance Unit (MU):

    CallCustomFinanceBR_AS.ServiceFactory

     

3 Replies

  • Henning's avatar
    Henning
    Icon for OneStream Employee rankOneStream Employee

    Hi, this is how you can set up your button:

    {Workspace.CallCustomFinanceBR_WS.CallCustomFinanceBR_MU.WSMU}{CustomCalculate}{}

    In my example, this is how I set up my Service Factory, which returns the Custom Finance BR "FinanceBR":

    Case Is = WsAssemblyServiceType.FinanceCustomCalculate
        Return New FinanceBR()

    I chose to reference the service factory on the Workspace Maintenance Unit (WSMU), but you could just as well put it on the Maintenance Unit (MU):

    CallCustomFinanceBR_AS.ServiceFactory

     

    • WernerN's avatar
      WernerN
      Contributor II

      Thank you as always Henning. Another step forward in using Assembly Rules. 

  • jmohl's avatar
    jmohl
    New Contributor III

    I was able to figure it out (at least partially). You have to call a data management sequence from the button (similar to a standard dashboard). Workspace arguments are passed on data management sequence.

    If service factory is enabled at the workspace level: Workspace.WorkspaceName.DashMaintUnitName.WS

    When enabled at the DMU level: Workspace.WorkspaceName.DashMaintUnitName.WSMU