Micro Focus QTP (UFT) Forums

Full Version: Unable to set the Start date for SwfCalendar control-using SetDate or Type method
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am trying to set the Start Date in my application (.net client) but the script ends up setting the random date when I use Type method. For some reason, If I use SetDate it is setting the date in the calender, but it is not visible after saving the screen. So, SetDate method setting the correct date ,but not saving to the application and it is not visible since it is not saved. Whereas Type method setting random date and save in the application and visible. Is there any solution? Thanks.

Code:
SwfWindow("Nex.*").SwfCalendar("dtpStartDate").SetDate "2-Apr-2009"
or
SwfWindow("Nex.*").SwfCalendar("dtpStartDate").Type "4/2/2009"