Adding plugin in a menu

To add Plugin in Local Menu

  • Under Tools > Local Menu
  • Choose the Control Name where a Local menu need to be added.
  • Control Type: Plugin
  • Select the Plugin in Control
  • Under Arguments, provide the form name FormName=PluginAddEditDebtor; mentioned inside plugin code
    public List<PluginControl> RegisterControls()
    {
    	var ctrls = new List<PluginControl>();
    	ctrls.Add(new PluginControl() { UniqueName = "PluginAddEditDebtor", PageType = typeof(FormPage), AllowMultipleOpen = true, PageHeader = "Debtor Add/Edit" });
    	return ctrls;
    }

To add Plugin in Main Menu

  • Under Tools > Main Menu
  • Select Menu location
  • Control Type : Plugin
  • Select Plugin in Control
  • Under Arguments, provide the form name FormName=DebtorPluginPage; mentioned inside plugin code
    public List<PluginControl> RegisterControls()
    {
    	var ctrls = new List<PluginControl>();
    	ctrls.Add(new PluginControl() { UniqueName = "DebtorPluginPage", PageType = typeof(GridPage), AllowMultipleOpen = false, PageHeader = "Plugin Debtors" });
    	return ctrls;
    }

To pass a selected row to the user control

  • Add an argument SourceType=UseCurrentRecord