12-11-2013, 10:34 PM
Hi,
I would really appreciate someones help to work out the code to retrieve background color for the individual SAPGUICalendar days using GetROProperty. This is a client requirment we are trying to output days from the SAP GUI Calendar the days which have background color green, these are days off during the weekdays of the month.
example of code used
The issue with above code is that it gives me a blank message were I am expecting a green color value.
I have attached a screen shot of the individual days (green boxes) within SAPGUICalendar that I am trying to capture the color value of with QTP.
Thanks in advance!
I would really appreciate someones help to work out the code to retrieve background color for the individual SAPGUICalendar days using GetROProperty. This is a client requirment we are trying to output days from the SAP GUI Calendar the days which have background color green, these are days off during the weekdays of the month.
example of code used
Code:
SAPGuiSession("Session").SAPGuiWindow("Year Overview 2010").Maximize
Dim hWndSource
hWndSource = SAPGuiSession("Session").SAPGuiWindow("Year Overview 2010").SAPGuiCalendar("Calendar").GetROProperty("backgroundcolor","10/Jan/2010")
msgbox hWndSource
The issue with above code is that it gives me a blank message were I am expecting a green color value.
I have attached a screen shot of the individual days (green boxes) within SAPGUICalendar that I am trying to capture the color value of with QTP.
Thanks in advance!