Hi,
In the OOB customizations it isn't possible to cascade the statecode by the relationship.
So have the only possibility to do this manually by:
- Javascript in the onSave event
- C# in a plugin (like Zoran already mentioned)
- C# in a custom workflow-step
You can find examples here: http://mileyja.blogspot.co.at/2011/07/set-status-or-state-of-record-using.html
Best regards,
Andreas
Andreas Buchinger
Microsoft Dynamics Certified Technology Specialist
MCPD: SharePoint Developer 2010