In Order Tracker, the OrderHed.BTCustID text box has three “Bill To (Etc)” items in its “Open With…” dropdown menu. Accounting wants me to add Customer Credit Manager to this menu. So far I’ve tried creating a new Context Menu for OrderHed.BTCustID (didn’t work), and I’ve tried adding the following code to Order Tracker’s script editor to copy the context menu for CustID:
There probably is a better way to do this, but this would work for what you are doing. Create the customized context menu OrderHed.BTCustID. Then in customization use this code. The first line is a reference to the control, which I just picked one of the two on the form.
Okay I’ll try that. Here’s the error I’m getting when I try to reference a form control:
Error: CS0103 - line 56 (574) - The name ‘cmbBillToCustID’ does not exist in the current context
What prefix do I need to include to get it to recognize the control?