Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Infopath
Infopath Programming and automation discussions only please. :)
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Infopath section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 15th, 2007, 12:59 AM
Registered User
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query about the USER ROLES in INFOPATH

I have some more than 10 user roles specified on my infopath form. I am using an Email data connection to send email notifications to all these 10 users.
But how do i access these 10 users behind these user roles ?

e.g. Suppose i have 2 user roles called "Manager" and "Employee". I want to send mails to specific user role "Manager" on the Button Click event thru an Email Data connection.

Please help.
Awaiting reply soon.. :)

Old May 2nd, 2007, 12:51 PM
Registered User
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Hi anandhienator

You can access this through c# code. The following code snippet will access the manifest file.

IXMLDOMDocument2 maniFest = (IXMLDOMDocument2)thisXDocument.CreateDOM();
            maniFest.setProperty("SelectionNamespaces", "xmlns:xsf=\"http://schemas.microsoft.com/office/infopath/2003/solutionDefinition\"");

IXMLDOMNodeList roles = maniFest.selectNodes("/xsf:xDocumentClass/xsf:roles/xsf:role");

from the above line you can access the roles of user

Hope this helps you.


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Login InfoPath 2003 ruso77 Infopath 0 April 12th, 2007 03:37 PM
Ch 15 Add User Query!! daveyarwood BOOK: Beginning ASP 3.0 0 July 16th, 2005 12:51 PM
problems with passing user input to a query boozin Classic ASP Databases 3 March 10th, 2004 05:59 PM
Accessing User Roles in MS Access through Java sfali Java Databases 0 September 24th, 2003 08:12 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.