Skip to main content

Account Info Customization

Developer : A. Zuhri Utama

Sponsor : PT. Reka Estu Digital

Jira Ticket : IDEMPIERE-6533 - Register Account Info As Form

Description :

Added new feature to allow customization of Account Info window with custom plugin for enhancement or modification of default account info.

How To :

to customize Account Info, you need to create or use your own plugin. copy default account info window from org.adempiere.webui.acct.WAcctViewer class to your plugin, ex. com.company.form.WCustomAcctViewer and register the new form using FormFactory.

example of FormFactory :

package org.idempiere.custom.acct;

import org.adempiere.webui.acct.WAcctViewer;
import org.adempiere.webui.factory.IFormFactory;
import org.adempiere.webui.panel.ADForm;

public class FormFactory implements IFormFactory
{

@Override
public ADForm newFormInstance(String formName) {
if (WAcctViewer.class.getName().equals(formName))
return new WCustomAcctViewer();
return null;
}

}

test the plugin by register your plugin on server.product launch then click the Account Info on views widget dashboard.


Source: Wiki