Easiest way I’ve found is to use the OnCreate behavior. Create that event with a simple row-update to set the value of whatever binding you have set for your combobox.
Thanks…it’s almost there. I tried using property-set but I couldn’t get it to work. Then I tried row-update and that works but only the first time I add a ShipTo; the second time I add a ShipTo it reverts to SYST.
Since you’re already clicking the “new” button to create your new ShipTo… you could use THAT as your trigger.
Obviously there is already an OnClick_toolNew event… but you can create an event that runs after that one.
The caveat is that the OnClick_toolNew event is used across the entire Customer form. So, if you’re on the main Customer page, it will create a new customer. If you’re on the ShipTo page, it will create a new ship-to.
This is driven by a condition in the OnClick_toolNew event which checks for the active dataview. You can use the same logic in your event…