Aldatu Ikusi Erabiltzaile ID oinarrituta InfoPath formularioa batean

Bat garatu genuen InfoPath inprimaki bat hainbat aldiz berriak alokatzeko bati laguntzeko / on-boarding process. When the company hires a new person, Informatika Saila eta beste taldeek behar ekintza (sortu nominak, gaitu dagokion aplikazio sarbidea, kokatzeko mahai bat, etc). We use on form but a different view of the form for each of those functions.

Enpresa honetan, Enpresa-prozesuan parte hartzen duten pertsona gehienak dira IT-savvy, beraz, forma sartu dira, their default view is a "menu" view with buttons that direct them to their specific function. Hala eta guztiz ere, we needed to simplify things for the new hire’s direct manager. This person should not see any of the IT related stuff. Izan ere,, bakar forma ikuspegi ikusi behar zuen, eta ez da, nahiz eta beste aukera bat aldiz ikusi behar.

Gure kasuan,, zuzeneko kudeatzailearen kontu hori zuzenean jarriz inprimaki lotuta harremanetan hautatzailea (which I am always wanting to call a "people picker" arrazoiren batengatik).

Urratsak honako hauek dira::

1. Diseinu moduan, joan Tresnak -> Inprimaki Aukerak -> Ireki eta gorde.

2. Select "rules".

3. Create a new rule whose action is "switch to view" eta zeinen baldintza userName baliatzen() funtzioa.

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 (Nire ingurunean Hala ere,) itzultzen domeinua eta erabiltzaile-ID, as in "domain\pagalvin". This prevents us from doing a straight-forward equality condition since AccountID ("domain\pagalvin") ez dira inoiz berdinak userName() ("pagalvin").

We can get around this using the "contains" operadore: AccountID dauka userName().

Da gero eta pre-PEND userName aurrean domeinu hard-kodetuak bat hartu ahal izango dugu() funtzionatzeko gure berdintasuna egiaztatu eta desagerrarazi faltsu positiboak arriskua dauka operadorearen iritsi.

We would have REALLY like to automatically switch view for other users based on their AD security group membership. Adibidez, when a member of the "IT Analytics" talde inprimaki sartzen, 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", pasatzen da, erabiltzaile izena() and return back true or false. Does anyone have any other, gehiago clever ideia? Is there any SharePoint function we can leverage from InfoPath to make that determination?

</amaiera>

Technorati Tags:

3 buruzko gogoeta "Aldatu Ikusi Erabiltzaile ID oinarrituta InfoPath formularioa batean

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

Utzi iruzkin bat Hurbiletik. R'aed Al_Momani Utzi erantzuna

Zure e-posta helbidea ez da argitaratuko. Beharrezko eremuak markatu dira *