BAQCombo holds previous value on new record

I created a BAQCombo that pulls the data correct but when I create a new record or clear, it keeps the previous value. I think I need a event. Thanks for any steering.

If you’re willing to work with code:
Try the Customization > Wizards > Form Event Wizard > After ToolClick event
image

Then put a

MessageBox.Show(args.Tool.Key);

inside the event handler. Save the customization, reload, then it will show you what the Tool you use is called and how you can address it in the code.
This can help catching the event that occurs when creating a new record and/or clear the form.

OK, so it shows up on the SaveTool and ClearTool! This is helpful, Manuel, thank you.

Awesome. So what you could do is the following:

// inside the AfterToolClick event handler method
if (args.Tool != null)
{
   if (args.Tool.Key != null)
   {
      if (args.Tool.Key.Equals("SaveTool") || args.Tool.Key.Equals("ClearTool"))
      {
         // set BAQCombo to something
      }
   }
}