ஒரு InfoPath வடிவத்தில் பயனர் ஐடி அடிப்படையில் காண்க மாற

நாம் ஒரு புதிய வாடகை ஆதரவு பல காட்சிகள் ஒரு InfoPath வடிவம் உருவாக்கப்பட்டது / on-boarding process. When the company hires a new person, டி துறை மற்றும் பிற குழுக்களின் நடவடிக்கை எடுக்க வேண்டும் (ஊதிய அமைக்க, அதற்கான விண்ணப்பங்கள் அணுக, ஒரு மேசை கண்டறிவது, முதலியன). We use on form but a different view of the form for each of those functions.

இந்த நிறுவனம், வணிக செயலாக்கத்தில் சம்பந்தப்பட்ட மக்கள் மிகவும்-நுட்ப உள்ளன, அவர்கள் வடிவம் அணுக மிகவும் போது, their default view is a "menu" view with buttons that direct them to their specific function. எனினும், we needed to simplify things for the new hire’s direct manager. This person should not see any of the IT related stuff. உண்மையில், அவர் வடிவம் ஒரு பார்வை பார்க்க மற்றும் பிற கருத்துக்களை காண ஒரு வழி இல்லை கூட வேண்டும்.

எங்கள் வழக்கு, நேரடி மேலாளர் கணக்கில் நேரடியாக ஒரு வடிவத்தில் மரியாதை கட்டி என்று தேர்வுக்குழு தொடர்பு (which I am always wanting to call a "people picker" சில காரணங்களால்).

படிகள் பின்வருமாறு:

1. வடிவமைப்பு முறையில், கருவிகள் போக -> படிவம் விருப்பங்கள் -> திறந்து சேமி.

2. Select "rules".

3. Create a new rule whose action is "switch to view" அதன் நிலை userName செல்வாக்கு() செயல்பாடு.

userName() returns the "simple" user name without the domain. If I log into SharePoint with credentials "domain\pagalvin", userName() returns "pagalvin".

The contact selector provides three bits of information for a contact. The "AccountID" portion is most useful for this scenario. The only thing that makes this even a little bit of challenge is that the contact selector (எப்படியும் என் சூழலில்) டொமைன் மற்றும் பயனர் அடையாள கொடுக்கிறது, as in "domain\pagalvin". This prevents us from doing a straight-forward equality condition since AccountID ("domain\pagalvin") userName சமமாக() ("pagalvin").

We can get around this using the "contains" ஆபரேட்டர்: AccountID userName கொண்டிருக்கிறது().

நாம் பயனர் பெயர் முன் மேலும் முந்தைய தேங்கு ஒரு கடின குறியீட்டு டொமைன் எடுக்க முடியும்() எங்கள் சமத்துவம் ஆபரேட்டர் கொண்டிருக்கும் ஒரு தவறான ஆபத்து சரிபார்த்து அகற்ற பெற செயல்பட.

We would have REALLY like to automatically switch view for other users based on their AD security group membership. எடுத்துக்காட்டாக, when a member of the "IT Analytics" குழு வடிவம் அணுகுகிறது, automatically switch to the IT Analytics view. We didn’t have time to implement it, but my first thought is to create a web service that would have a method like "IsMemberOfActiveDirectorySecurityGroup", இது userName அனுப்ப() and return back true or false. Does anyone have any other, மேலும் வீழ்வது யோசனை? Is there any SharePoint function we can leverage from InfoPath to make that determination?

</இறுதியில்>

Technorati குறிச்சொற்கள்:

3 "மீது எண்ணங்கள்ஒரு InfoPath வடிவத்தில் பயனர் ஐடி அடிப்படையில் காண்க மாற

  1. pingback: Infopath Switch View Based On User « Sladescross's Blog

ஒரு பதில் விட்டு

உங்கள் மின்னஞ்சல் முகவரி வெளியிடப்பட்ட முடியாது. தேவையான புலங்கள் குறிக்கப்பட்டன *