View source for OnDgsPreCreate