There's no 'Docproperty stuff' in the last example - it simply (over)writes whatever happens to be selected at the time.