Forum Discussion
Angelaip
Thanks for your suggestions. The primary function of the existing OnInsertRow client method is to prohibit adding certain Parts to certain BOMs. Two simple prohibitions are: to not allow any Part to appear twice on any BOM; and not allow any Part to be added to the BOM of a Part with classification = 'Component'. There are many other, more complex, prohibitions.
As you mentioned there are several possible approaches using Server methods, but they would require the user to do a Save before Innovator would trigger the method. It is more user friendly to notify the user of any problems as they are entered.
Utilizing a Property event (such as OnEditStart) for the Part BOM itemtype related_id property may possibly be of use.
For now we have just disabled the Part BOM Replace button.