Get Role

P

Paul Mayer

I am looking at the example in Patrick Halsteads InfoPath programming book.
I set up a user role for myself as DBAdmin. I set a button with the
condition that if the user role is NOT DBAdmin, then disable this control.
When I open the form this control is disabled. How in vbcode can I display
the value of the GetRole function and display the results to me. If you can
give me an example of the VB code statement this would be helpfull, or any
suggestion how to figure out why the role I setup is disabling my button.
BTW, I am using InfoPath 2003
 
H

Hilary Stoupa

Hello:

For vbscript you can use XDocument.Role
For managed code, VB.NET, you can use Me.UserRole.ToString()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top