How can i change status besside name

Please check the code in the reference: How to change Status value - #2 by NCP