How to get background color for individual days in SAPGUICalendar with QTP
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.
The issue with above code is that it gives me a blank message were I am expecting a green color value.
The only methods I am able to use with Object. are the following: Object.GetColor("selecteddate:=28/Dec/2010") this gives me the value 0 if I select another date with different background color I still get value 0 with this method Object.GetColorInfo() for this method I am unable to make it work as I have to enter a color within the bracket of this method so not sure what value to input
Re: How to get background color for individual days in SAPGUICalendar with QTP
I dont think this should be the value for the calendar's GetColor method: you are trying to pass a QTP/UFT test object /test object's property value (and, descriptive programming is completely wrong here) to a control's internal method..
I reviewed the SAP Gui Scripting API documentation but, unfortunately, it is also not clear there what exactly should be passed to GetColor.
Since this is an internal SAP Gui Calendar contol's method, you'd better ask in a SAP forum.
QTP/UFT itself does not provide the means for obtaining the date's color without interacting with the control's internal properties/methods.
“HP Support If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”