Pergunta

I'm new to infopath and I have a form with several views, the view shown is controlled by a field usertype which set in a workflow and has an int value (1 = requester, 2 = Sales, 3 = product...) so if I set usertype to 2 the form loads with the sales view which is how it should work, but what I need to do is set all the other views to read only so the sales person can view the data in all views but ONLY change the date presented in his view i.e. the sales view.

so how can build a rule or add c# code to achieve setting a views property to read only depending on the value of usertype?

Thanks

Foi útil?

Solução

Hide the view drop-down in the ribbon, so you have control over which views can be accessed in particular situations.

Create read-only versions of each of the three views. Use buttons on the editable forms to show the read only versions of the other two views.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top