I am attempting to set values in User Code for a repository item which is a calendar date; the attributes that I need to set are title and innertext.

My repository item is named PickDate with an xpath of body/div[5]/div[@title='All Day' and @innertext='22']

I can successfully select the date in my code when the title and innertext values are hardcoded as they are above but, when I set the values to $dayPortion and $day, I can't seem to figure out how to populate both values with my code so that the specified date is selected. I would think that this would be easy to accomplish but I must be missing something.

I was able to figure this out today... really don't know why I had hit a roadblock on it. I am now successfully supplying a title and innertext value in my code to select a specified divtag date in a divtag calendar in a foreach loop inside another foreach discovery loop of the calendar members.