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
GorkemSenol
2 years agoNew Contributor III
How to call a dashboard extender function from a Spreadsheet type BR?
Hi,
I have a Spreadsheet BR that creates a tableview and I want a certain dashboard extender function to be triggered when they submit the data from the tableview(spreadsheet)
I think this is the...
- 2 years ago
Here's how I do it:
Create a public class in your Dashboard extender with a/some public methods:Note the namespace, class name, and method name(s) you want to use elsewhere
In your spreadsheet rule's Properties, add a reference to your dashboard extender's namespace, quirky, just the part after the last dot:
Now you can code to the class and its methods in your spreadsheet rule. Import the full namespace of the extender rule, and then reference the class by its name. Instantiate it to use its methods:
RobbSalzmann
2 years agoValued Contributor II
Here's how I do it:
Create a public class in your Dashboard extender with a/some public methods:
Note the namespace, class name, and method name(s) you want to use elsewhere
In your spreadsheet rule's Properties, add a reference to your dashboard extender's namespace, quirky, just the part after the last dot:
Now you can code to the class and its methods in your spreadsheet rule. Import the full namespace of the extender rule, and then reference the class by its name. Instantiate it to use its methods:
- GorkemSenol2 years agoNew Contributor III
Hi Robb,
This is gold, thanks a lot.
Do you think I can reference to the MainClass in the Extender Rule rather than ExtraFunctions in your example? I guess that is creating a problem for me since MainClass is also being used in the Spreadsheet rule right?
- RobbSalzmann2 years agoValued Contributor II
GorkemSenol yes. Access MainClass the same way.
Reference the rule your MainClass is in and then instantiate and use it.
Related Content
- 7 months ago
- 4 months ago