Skip to main content
July 10, 2023

v7.4 - Reference to Extender BR from Dashboard Assembly

  • July 10, 2023
  • 3 replies
  • 2 views

Mocking up a Prototype using the new Assembly feature in 7.4, I would like to be able to reference an Extender Business Rule within a Dashboard Assembly file. The scenario is, that I have a custom class (POCRunner) in an Extender file, and want to be able to call functions on that class object, when hitting a button in a Dashboard. I can't seem to find the right combination of assembly name and/or dependencies. The argument to have the custom class in an Extender, is also to be able to utilize a Data Management Sequence to trigger a job, calling the POCRunner class.


FrankDK_0-1688994107161.png

Otherwise open for any other suggestion / approach.

Thanks

3 replies

July 11, 2023

As far as I know you cannot call a custom class directly from a dashboard component.
I generally use the DashboardExtender MainClass strictly as a marshall for the instantiation and management of other purpose built objects.  I don't think Dashboard Assemblies are ready for prime time.  This code compiles and works as a traditional Dashboard Extender (with appropriate namespace) but will not run as an assembly:


RobbSalzmann_0-1689108282586.png


RobbSalzmann_1-1689112207723.png

 

 

 

 

 

 

 



FrankDKAuthor
July 12, 2023

Thanks Robb - I'm with you on the suggested solution. Custom build classes can also sit in their own separate "non-dashboard" file type to make it even more "Visual Studio"'ish experience:


FrankDK_0-1689147971138.png

But, I'm still missing a way to reference the Dashboard Assembly from an normal Extender BR, to be able to run a Data Management Step that calls "some custom code" in my Dashboard Assembly?

Cheers

 

August 16, 2023

Did you get an answer on how to reference the assembly within the dashboard?  I have tried a few things but nothing seems to call the Assembly  within the Dashboard ...still can only ref the biz rule outside of the Dashboard

August 16, 2023

mjordan you can call the assembly and have it run, e.g. like from a button Server Task as shown above.  It runs just like any other Dashboard Extender.  

There does not seem to be a (published) way to reference a dashboard assembly from Business Rules objects. Like you I've tried to get to work, to no avail.