12-01-2022 11:27 AM - last edited on 05-25-2023 05:51 AM by JackLacava
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?
Solved! Go to Solution.
12-01-2022 11:33 AM
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:
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:
12-01-2022 11:33 AM
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:
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: