cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a dashboard extender funtion from another rule?

AndreaF
Contributor

How do I call a function that exist in a dashboard extender business rule for another dashboard extender business rule and how do I pass the all the required arguments?

1 ACCEPTED SOLUTION

AndreaF
Contributor

Let say you are working on the dashboard extender rule B and you need to call a function defined in the rule A (eg.PLP_SolutionHelper). You have to first of all add the dashboard extender rule A to the reference assemblies of the rule B:

pic1.png

In the rule B, you then have to:
⦁ Create a new "dashboard extender" object
⦁ Define the arguments
⦁ Pack them into a DashboardExtenderArgs object
⦁ Call the desider function and pass the arguments

This is an example of how the dashboard extender business rule is called from a button:
{PLP_SolutionHelper}{DeleteRegisterOrRegisterPlan}{tRegisterID=All, deleteType=1}

This is an example of how it could be transposed to be called from another dashboard extender rule:

pic2.png

View solution in original post

1 REPLY 1

AndreaF
Contributor

Let say you are working on the dashboard extender rule B and you need to call a function defined in the rule A (eg.PLP_SolutionHelper). You have to first of all add the dashboard extender rule A to the reference assemblies of the rule B:

pic1.png

In the rule B, you then have to:
⦁ Create a new "dashboard extender" object
⦁ Define the arguments
⦁ Pack them into a DashboardExtenderArgs object
⦁ Call the desider function and pass the arguments

This is an example of how the dashboard extender business rule is called from a button:
{PLP_SolutionHelper}{DeleteRegisterOrRegisterPlan}{tRegisterID=All, deleteType=1}

This is an example of how it could be transposed to be called from another dashboard extender rule:

pic2.png