I have different operator roles enabled in our project and I have a field in the document definition.
The field has the following script
Context.Text = FCTools.CurrentUserSession.RoleId.ToString();
The issue is that I have to refresh the field manually everytime to update the role id.
How can I get the operator id value to update as soon as the user opens the document?