To add a custom lookup to a control on a standard form, please follow these steps
- Create a new class that could be a generic sales order utility class, or ideally a form extension class (see previous recipe for this).
- The first example is to make the sales order create dialog using a lookup form. As standard (in the November release), the lookup only contains the account number and account. This example binds the custom lookup to the customer account's lookup event, as follows:
/// <summary> /// Override the customer lookup on the sales order create /// dialog in order to use a lookup ...