Change the state of an item from code?

Hi @cwerner,

See the following example which you can mimic to get your desired solution.