Forum Discussion

GorkemSenol's avatar
GorkemSenol
New Contributor III
10 months ago

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...
  • RobbSalzmann's avatar
    10 months 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: