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
OSEmployee1007
OneStream Employee
2 years agoWorkspace Assembly - Call functions from Finance or Connector business rules
Hi Everyone, has anyone already tried to reference a Workspace Assembly business rule from a Finance or a Connector business rule?
I have a business rule that is packaged to an Assembly in a Worksp...
- 2 years ago
Assemblies are referenced by importing the namespace
Imports Workspace.__WsNamespacePrefix.__WsAssemblyName.DashboardExtender.TXM_Merger_SolutionHelperThen to use it:
Dim merger_SolutionHelper as new TXM_Merger_SolutionHelper.MainClassAlso, don't use the implementation namespace (TXM_Merger_SolutionHelper) as a variable name. It will cause issues.
- 2 years ago
Thank you very much RobbSalzmann , I got this to work using a super simple test example. Hope this helps the other possible audience. I am running this on 8.1.
I created a new blank workspace, maintenance unit and assembly:
With a simple file to write something into the error log:
Then I created an Extender rule to execute this using the following properties:
When I run this...
...the message appears as expected 🙂
RobbSalzmann
2 years agoValued Contributor II
The code is compiling and working. The issue is none of your assembly seems to be public. post the code and I can help.
Oscar
1 year agoContributor
Hi Robb!
Hoping to get some guidance on how to accomplish the following. I am working with OneStream Financial Close PV840-SV100.
We basically need to embed Dashboard 0000_Frame_RCM (sits under OFC Workspace) into a customized dashboard that sits under the Default Workspace. We have to execute OnLoadMainDashboard to set the many parameters required. I created a dependency but the code below is returns an error. Could you please shed some light into how to execute OnLoadMainDashboard(). Thank YoU!!!!!!!!
- RobbSalzmann1 year agoValued Contributor II
Hi Oscar
A couple of things...This is an old thread. Please start a new one to get better visibility.
Your namespace statement should not end with a semicolon.
The classname is MainDashboard, so your instantiation should be more along the lines of:
Dim oPHelper as New Workspace.OFC.RCM.Dashboards.MainDashboard(si, args, "OnLoadMainDashboard")Your MainDashboard class declaration is not correct. it should look more like:
internal class MainDashboard : DashboardEvent { public MainDashboard(DashboardEventArgs eventArgs) : base(eventArgs) { // Constructor body } }
I can't see the Workspace.OFC.RCM.Dashboards.MainDashboard class constructor in your screeshots so this is as close as i can get for now.
Please start a new thread to continue.
Thanks!
Related Content
- 9 months ago
- 2 years ago