একটি 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" এবং যাদের অবস্থা করুন আপনার ব্যবহাকারীর নাম ওঠানামায়() কাজ.

ব্যবহারকারীর নাম() returns the "simple" user name without the domain. If I log into SharePoint with credentials "domain\pagalvin", ব্যবহারকারীর নাম() 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") আপনার ব্যবহাকারীর নাম সমান হবে না() ("pagalvin").

We can get around this using the "contains" অপারেটর: AccountID করুন আপনার ব্যবহাকারীর নাম রয়েছে().

আমরা এটা আপনার ব্যবহাকারীর নাম সামনে আরও এবং প্রাক pend একটি হার্ড কোড ডোমেন নিতে পারেন() আমাদের সমতা অপারেটর রয়েছে নেভিগেশন একটি মিথ্যা ইতিবাচক ঝুঁকি পরীক্ষা করুন এবং নিষ্কাশন পেতে কাজ.

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", এটি আপনার ব্যবহাকারীর নাম পাস() 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. পোস্টটি পড়ুন: Infopath Switch View Based On User « Sladescross's Blog

সাইফুল আলম চৌধুরী

আপনার ইমেইল ঠিকানা প্রচার করা হবে না. প্রয়োজনীয় ক্ষেত্রগুলি চিহ্নিত করা আছে *