Check the Help link below, scroll to the Open QlikView Document header and check the contents there against what you are seeing, if something is not behaving according to the documentation, I would recommend submitting a support case at that point.
The way the Help reads, the transfer state option is going to xfer the existing values, so it would set the variable to 1, not 2 in the other doc if I am reading things correctly. You may want to consider using the Open URL if you are using Ajax client, as that way you could use the OpenDoc call and then you have access to the parameters to set things that way, but I am not sure you can push in a variable setting. Sorry I do not have anything better for you.
To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question. I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.