How to enable this field - "Solved" - programatically for each category

Thank You Mihir, it did help to resolve this issue. Appreciate your input and suggestions.