This.oStateManager.SetValue("Form SaveAs", .T.)If you are trying to set a value to this action, you need to use the correct action name which, in this case, appears to be :-
This.oStateManager.SetValue("Form Edit SaveAs", .T.)FWIW, you have this "difference" specified twice in your sample code (see your DefineAction call). You need to ensure you are using the correct action name throughout your declaration and subsequent references to it.