Thank you for all the valuable advice given. I don't know if its an issue in my PC or in the qlikview edition as a whole but apparently after setting the onOpen function when I tried opening the page using the 'Open in Server' option, the max date was selected.