This function is an event handler that is called every time a new BOM table with the specified ID is created.