Skipta View Skoða Byggt á auðkenni notanda í An Infopath Form

Við höfðum þróað með InfoPath form með mörgum útsýni til að styðja nýja ráða / on-boarding process. When the company hires a new person, The IT deild og aðrir hópar þurfa að grípa til aðgerða (setja upp launaskrá, virkja aðgang að viðeigandi forritum, finna skrifborð, o.fl.). We use on form but a different view of the form for each of those functions.

Á þetta fyrirtæki, flestir sem taka þátt í viðskiptum ferli eru IT-kunnátta, svo þegar þeir opna mynd, their default view is a "menu" view with buttons that direct them to their specific function. Hins, we needed to simplify things for the new hire’s direct manager. This person should not see any of the IT related stuff. Í raun, hún ætti að sjá bara einn mynd af formi og ekki einu sinni kost að sjá aðra skoðanir.

Í okkar tilviki, að reikningur beinni stjórnanda er beint tied til mynd kurteisi af a samband val (which I am always wanting to call a "people picker" fyrir sumir ástæða).

Skrefin eru eftirfarandi:

1. Í ham hönnun, fara í Tools -> Form Valkostir -> Opinn og Vista.

2. Select "rules".

3. Create a new rule whose action is "switch to view" og þar sem ástand notar Notendanafnið() virka.

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 (í umhverfi mínu samt) skilar ríki og Aðgangsorð notanda, as in "domain\pagalvin". This prevents us from doing a straight-forward equality condition since AccountID ("domain\pagalvin") mun aldrei jafna notandanafn() ("pagalvin").

We can get around this using the "contains" rekstraraðila: AccountID inniheldur notandanafn().

Við getum tekið það frekar og pre-pend a harður-dulmáli ríki framan notandanafn() virka til að fá jafnrétti athuga okkar og koma í veg fyrir hættu á falskur jákvæður á inniheldur rekstraraðila.

We would have REALLY like to automatically switch view for other users based on their AD security group membership. Til dæmis, when a member of the "IT Analytics" Hópurinn notar mynd, 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", standast það username() and return back true or false. Does anyone have any other, meira snjall hugmynd? Is there any SharePoint function we can leverage from InfoPath to make that determination?

</enda>

Technorati Tags:

3 hugsanir á "Skipta View Skoða Byggt á auðkenni notanda í An Infopath Form

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

Leyfi svar við Náið. R'aed Al_Momani Hætta við svar

Netfangið þitt verður ekki birt. Nauðsynlegir reitir eru merktir *