Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get background color for individual days in SAPGUICalendar with QTP
#11
Solved: 10 Years, 3 Months, 2 Weeks ago
Can anyone show me how to use the following code as I can see the method GetDateTooltip for this object with Object Spy:

Code:
SAPGuiSession("Session").SAPGuiWindow("Year Overview 2010").SAPGuiCalendar("Calendar_2").Object.GetDateTooltip("selecteddate:=28/Dec/2010")


Currently I get blank value for the above code.

GetDateTooltip method is shown in Object Spy so I can use this but the issue is how to use the method with the right values in the bracket.

Would appreciate someones expertise on this subject.
Reply
#12
Solved: 10 Years, 3 Months, 2 Weeks ago
Hi All,

I have resolved this issue by using the code the following way:

Code:
Dim tr

SAPGuiSession("Session").SAPGuiWindow("Year Overview 2005 RR0").SAPGuiCalendar("Calendar").setDate "3/Jan/2005"

tr = SAPGuiSession("Session").SAPGuiWindow("Year Overview 2005 RR0").SAPGuiCalendar("Calendar").GetROProperty("StartSelection")

msgbox SAPGuiSession("Session").SAPGuiWindow("Year Overview 2005 RR0").SAPGuiCalendar("Calendar").Object.GetDateTooltip(tr)

msgbox SAPGuiSession("Session").SAPGuiWindow("Year Overview 2005 RR0").SAPGuiCalendar("Calendar").Object.GetColor(tr)

The above code gives me the correct values for any dates selected with SAP GUI Calendar object.

Thank you to all those that have tried to help with this issue.
Reply
#13
Solved: 10 Years, 3 Months, 2 Weeks ago
Good ... and thanks for posting the solution.
Thanks,
SUpputuri
Reply
Jump to the post that solved this thread.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Text color recognition Treirk 0 973 06-17-2019, 12:19 PM
Last Post: Treirk
  Getting background color of an object on mouse over Surya 2 3,713 06-27-2018, 08:51 PM
Last Post: vensas3181
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 5,672 06-06-2017, 11:12 AM
Last Post: workrohit08
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,061 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  how to get background color of a WinButton javierchen 1 2,897 03-17-2015, 10:59 PM
Last Post: babu123

Forum Jump:


Users browsing this thread: 1 Guest(s)