Automatically do something when a row is created

@ohoh, I just posted here a solution that could be adapted to accomplish what you want, I think.