Requirement
Some new custom fields are created on extension of table InventTable.Customer wants to see these custom fields in the item lookup of sales order, transfer order & inventory journals etc.
Steps
- Create the extension of table InventTable and add your custom fields.
- Create the extension of view InventItemIdLookupSimpleView and add your custom fields.
- Create the extension of form InventItemIdLookupSimple and add your custom fields in the GRID of the form.
- Create the extension of class InventItemIdLookupSimple
[code language = “cpp”]
[ExtensionOf(classstr(InventItemIdLookupSimple))]
final class AcxInventItemIdLookup_Extension
{
protected void addStandardFields()
{
List lookupFields1 = lookupFields;
next addStandardFields() ;
lookupFields1.addEnd((fieldNum(InventItemIdLookupSimpleView, AcxItemCode)));// added my custom field
lookupFields = lookupFields1;
}
}
[/code]