.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Checks on Contact Selector

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :SharePoint
Hi I want to create check on contact selector. Like if there is no value in contact selector then change the view. Can any body help me?

View Complete Post

More Related Resource Links

Contact Selector - Form tab index is lost after selector resolves names on blur


I'm working with an InfoPath2007 form developed to be filled-out through the browser on a SharePoint 2007 site, and I'm testing using Internet Explorer 7.  It's a straight-forward form, with a number of text fields and two Contact Selector controls.

The issue I'm encountering is with the Contact Selector control, where if the actor only enters a partial name into the text-field and then TABs away from the control the form will perform its auto-postback to look-up and resolve the partial name (showing the name resolution dialog is necessary), and afterward the actor's cursor is focused on the next field in the form.  The actor can type text into the focused field, but any subsequent pressing of the TAB key returns the actor's focus to the browser's ADDRESS bar, which is incorrect as it should proceed to the next field in the form.  I understand that the Contact Selector needs to perform its postback to perform the name resolution (so that there is no way through the InfoPath form designer to disable postbacks for the control), but why does the browser not know how to continue the TAB order of the fields on the form even when a field has focus?

Automatically populating Contact Selector not working in Form Services

Hi,I'm currently working on a form where i wan't to automatically populate a contact selector control with a users manager. I've got the managers userid, called the ResolvePrincipal webservice provided by sharpoint, and set all the values in the contact selector with the correct values. When previewing it works perfectly however when i move the form to Form Services it won't work.I've tried setting it via rules: i.e. on the change of a textbox write the manager values to the contact selector.I've tried setting the default values of the contact selector to fields where i write the manager values.I've tried setting it through code i.e. SelectSingleNode() and SetValue() for each of the fields in the contact selector.All of which work fine in preview mode but will not work in Form Services, UNLESS the contact selector already has a user in it. So if the contact selector is blank it won't work, however as soon as i manually select a user then try using any of the previously mentioned methods of setting the control it works. While using code i get a nullreferenceexception which leads me to think that possibly when theres no user in the control the xml nodes representing the AccountId, DisplayName, AccountType don't exit???? TO throw another spanner in the works, on the very odd occasion it will work in Form Services as expected, after celebrating and trying again it returns

Contact Selector Failed in MOSS Workflow Modification Infopath Form

Hi,   In my proof of concept Moss 2007 WF, I tested an Infopath modification form successfully.  Then the contact selector ActiveX control was added but it failed to open using the modification link of the workflow page.  In a different form for the WF initiation, I similarly created two CS controls and it worked there.  A snippet of the MOSS error is below   Object reference not set to an instance of an object.   at Microsoft.Office.InfoPath.Server.Controls.ContactPicker.RenderClientViewDataLeafContent(XPathNavigator context, IRenderContext renderContext, ControlViewData controlViewData, ScriptWriter writer)    at Microsoft.Office.InfoPath.Server.Controls.LeafControl.RenderClientViewDataContent(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)    at Microsoft.Office.InfoPath.Server.Controls.BaseControl.RenderClientViewData(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)    at Microsoft.Office.InfoPath.Server.Controls.ContainerControl.RenderClientViewDataContent(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)    at Microsoft.Office.InfoPath.Server.Controls.BaseControl.RenderClientViewData(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)    at Microsoft.Office.InfoPath.Server.Controls.CollectionControl.RenderClientViewDataContent(XPathNavigator context, IRenderContext rend

Problem Resolving More Than One Contact Selector

On a Forms Services form I have 3 contact selectors.  The form connects to SharePoint and creates an item in SharePoint based on code behind. The problem is that only one of the contact selectors resolves automatically.  If the user clicks into the contact selector field manually and tabs off the field then it will resolve but I need to automatically resolve all contact selectors before the user clicks a button on the form to add the items to SharePoint list. If the user does not click into the contact selector field then the username in the field does not become underlined (i.e. resolved) as a valid username. When debugging I can see that the XML behind the form is as follows: <my:AssignedToPersons> <my:Person> <my:DisplayName>Bloggs, John</my:DisplayName> <my:AccountId>DOMAIN\jbloggs</my:AccountId> <my:AccountType>User</my:AccountType> </my:Person> </my:AssignedToPersons> <my:ManagerPersons> <my:Person> <my:DisplayName>Bloggs, Bill</my:DisplayName> <my:AccountId></my:AccountId> <my:AccountType></my:AccountType> </my:Person> </my:ManagerPersons> <my:ManagerPersons> <my:Person> <my:DisplayName>Bloggs, Jim</my:DisplayName> <my:AccountId></my:AccountId> <my:AccountType></my:AccountType> </my:Person&

Programmatically help with Contact Selector


Hi Guys , i need a C# Method that inputs the AccountID of the Contact selector and Returns it's DisplayName please help me to do this

Thanks Meda

Set Contact selector rules in InfoPath when using DIP from SharePoint


I created a custom content type of type document in WSS 3.0. I created column called "person" of type "People or Group ". So when I create a new document in SharePoint, there is a contact selector (people picker) in document information panel . But I would like to use InfoPath to edit the contact selector in this way: When a person is picked in the contact selector, another field (also custom column from my content type) will be changed according to the person I picked. I hope it is clear :-)

But in InfoPath when I right click the contact selector, there is no Rules... option, even no Data validation option etc.

What can I do?

Thanks for any suggestions.

Contact selector InfoPath forms services


I want to filter users displayed in contact selector by group.

So, i don't want to display all users but only users in a special group

Infopath: Contact selector field



I am designing an infopath which is connected to an Access DB.

I need to have a "Contact selector" field in my Infopath, is this still possible without having a sharepoint server to connect to?

If yes, how can this be achieved?

Contact selector and custom xml schema



Because I want to reuse some parts, I build my forms with several "subs" xsd. Within these xsd files, I've defined at several places a structure to hold the contact selector internal data (DisplayName, AccoundType and AccountId within a repeatable group).

When I want to bind the contact selector to the sub schema element, it works in design, but not at runtime.

In the CS properies, It's written that the CS use the schema of the current form. Does that means I'm condemned to put all my contact selector element store in the top level schema, the form's one ?

Is there any way to "reuse" the contact schema ? I'm building serialization object behind the scene, and I don't wan't to have People1 People2, PeopleX for each form I have.


I'd appreciate any advice to unscramble my mind.



Paying back the community for its help by writing articles :
Have a Nice Day.Net Blog

Contact Selector in infopath (view Email also) sharepoint/infopath 2007


hi ,

first i want to know what is the benifit of contact Selector.

what is the best method to configure this.

and i want to view the Email(WorkEmail) with DisplayName,AccountId,AccountType.



Thanks and Regards Er.Pradipta Nayak

how to get client id in jquery selector


Hi I am trying to get the clientid of button in my jquery selector like this

$('#ProjectSum_btnassignuserstoproject').click(function() {

Here i have hard coded the button id looking at the rendered html source but I want it dynamic using buttonid.clientid.

how to do that?

Best regex for email body on contact form?

I'm not sure the best way to do a regex for the body section of an email contact form.  I want to use the regex to prevent more than 150 characters from being entered.  I assume this is sufficient, I may need more.  I also want it to help guard against sql injection attacks. The more I think about it the more characters I can think of that should be allowed.  I want to allow punctuation since it's for an email and people should be using full sentences.  These are some other things that make sense to allow: " , ', : , ; , $ , . , ! , ? , - , _ , @ , & , ( , ). They cover situations when someone may put an email address or phone number in the body section for the email.  I also want to allow letters and numbers.    I'm not sure if it's best to allow the characters I mentioned or not allow characters that pose a potential threat.  I think allowing the ones I want is the best way, but I'm not sure.  Can someone please give an example and/or suggestions?  Are there other characters that should be allowed?  I don't have much yet: "^(?i)[a-z0-9\s]{1,150}$"

Whom to contact if OEM license cannot be activated?

Hi everoyne, This past weekend our only server had to be reinstalled due to a disk crash. Since I inherited this network without any documentation whatsoever, nor any software CDs. I had no other choice but make use of what I had at hand:  A set of Win  2003 Std edition from those packs that Microsoft provides to MOLP customers, I lent it from a friend. I did the install and did a restore, thank God it worked. My question is the about the Windows Server 2003 Std Edition License key code on the server side. This server was bought as OEM, to my understanding, since there is a 25-digit license product key sticker on this Dell PowerEdge 1800.During the installation I used this product key. After installation finished I received the message that I needed to type in another activation key because the key I used had been activated already. I chose to activate the key through the Internet. never chose to call Microsoft. What can I do to fix this? I'm running on a 30 days trial right now. Thanks in advanced!!!    

Help in Aspx Contact

HiI have created aspx page i have tried many time to set contact us page but failed can anyone pls make contact sending in this page<form name="form1" method="post" action="default.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="form1"> <div> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMjA0MDkxNTc3N2RkT3/oTEEgH9lQfPkJr3Zql/uXxJ0=" /> <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBQLkkuTCBwL7uPQdArLNxoMNAuztzI8MAoXOuvwBQPk/KcICcQmcK0UAnWzgZT/JSv4=" /> <label for="name" class="lname-txt"> Name/Company:</label> <input name="name" type="text" id="name" tabindex="1" /> </div> <div class="label lemail"> <label for="

Business Contact Manager 2010 Delete contact error

I have users getting an error when trying to delete a business contact or account.  "error converting data type int to smallint".  I know it is a sql error, but have been unable to find the field causing the problem.  You can make changes to the contact, just not delete it. Any ideas on how to fix this would be appreciated. Thanks.

calendar and contact app in wcf

hi,   is it possible to create a contact or a calendar application in wcf?? or how to implement this apps in wcf...?? ve to create a asp.net client page where we can create these apps and use the wcf's?? can anyone guide me...!!!< Ganesh >! Do not tell the world whom you are...Show it... !!

Contact Form Issues

I was hoping someone could assist with this issue I am experiencing.  I have a contact form on my ASP.net page.  Everything works great, but I keep getting blank messages sent to my email address.  It seems to be some sort of SPAM?  Could someone please tell me why this is happening, and what I would need to do to prevent it from happening in the future?
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend