How many ItemTypes are involved in this usecase?
parent.onSaveUnlockAndExitCommand() will only save your current context Item, not your Result4 Item.
As far as I understand your code you want to change a "Result4" Item from in the Form of another ItemType. Is this correct?
Why do you want to lock and unlock your Item after partItem.apply()?
How many ItemTypes are involved in this usecase?
parent.onSaveUnlockAndExitCommand() will only save your current context Item, not your Result4 Item.
As far as I understand your code you want to change a "Result4" Item from in the Form of another ItemType. Is this correct?
Why do you want to lock and unlock your Item after partItem.apply()?