CallAgencyApplet
You can use the CallAgencyApplet
rule to call a method that is contained in an agency-defined applet. The method called can be anything you want, so this rule gives you great flexibility in personalizing the interface. Note that you must first add the assembly that contains the applet to the Enhancement directory and update AgencyPersonalization.config so that Infor Operations and Regulations can find the applet.
See AgencyPersonalization.config.
CallAgencyApplet
takes two parameters: the moniker of the applet and the method that you want to call. The moniker is based on the namespace defined in AgencyPersonalization.config, such as IPS.AgencyTest.AgencyApplet
. If this assembly includes a method called TestMethod
that you want to call when a button is clicked, you can add this rule to the button’s ClickRuleId
property:
CallAgencyApplet(IPS.AgencyTest.AgencyApplet, TestMethod)
CallAgencyApplet
. In that case you would enter CallAgencyApplet
in the ClickRuleId field, and then enter the parameters separately in the ServerRuleParameter field. Buttons are the only controls that have ServerRuleParameter properties, so for all other controls you must enter the parameters along with the rule.
To call an existing rule along with an agency method, enter the name of the rule after the method. For example, to add TestMethod
to a button property that already has an OnSave
rule, you would enter this:
CallAgencyApplet(Hansen8.AgencyTest.AgencyApplet, TestMethod, OnSave)
Infor Operations and Regulations will run the agency method first, and will then execute the OnSave
rule if the agency method returns a success.