Change typed id in order to support subform select one or new situation

Related discussion: https://groups.google.com/forum/#!topic/hobousers/sY_fyOTCVr8