Imagine you have a function build using the SysOperation framework that can be called at different places in the system, and you want to make sure that these calls do not share the same usage data.
In such a case you could create two (or more) MenuItems and override the method lastValueDesignName() of the controller as follows. This will store separate usage data for each MenuItem.
protected IdentifierName lastValueDesignName()
{
IdentifierName ret;
ret = super();
if (this.parmArgs() && this.parmArgs().menuItemName())
{
ret = this.parmArgs().menuItemName();
}
return ret;
}
Imagine you have a function build using the SysOperation framework that can be called at different places in the system, and you want to make sure that these calls do not share the same usage data.
In such a case you could create two (or more) MenuItems and override the method lastValueDesignName() of the controller as follows. This will store separate usage data for each MenuItem.