Thank you Jaap and Mark for your replies.My requirement is something like as follows.
when we do change company, the Menu Browser will be refreshed based on the Roles for the user.
we have multiple companies, there will be different roles for the user in different companies, So when the users changes the company, I will update the roles (in when.field.changes section of company) from the custom table to the roles table.
But when the change company session ends, I need to update the roles table with the users default company roles(if he restarts he will needs to display the menu based on default companies roles).
So I need to trigger the insertion logic after the Change Company Session Ends...