I found this function in code of Calendar application, but when I try to execute in sc I don't to get to update the value of Category.

...