Qeb Archives: InfoPath 2007 // Cov neeg rau zaub mov

Nreeb Hit: Nyeem ntawv InfoPath XML los ua SPListItem nyob SharePoint

Kuv yuav tau ua hauj lwm rau ib tug yog ib qhov uas kuv tau extract attachments ntawm ib daim ntawv InfoPath. Muaj ib co kev pab zoo rau cov parsing InfoPath ntawv (uas yog cia li XML ntaub ntawv, li ntawd, nws tseem ua tau kuj yooj yim).

Thaum kuv nyob tsev pem peb tes num, Yog daus ib daim ntawv InfoPath thiab txuag kuv lub zog tsav. C# chaws kuv twb nyeem tawm ntawd lom. Txawm li cas los, muab cov ntaub ntawv InfoPath yeej nyob hauv lub tsev qiv ntawv tuaj SharePoint. Kuv puas tau me ntsis ib nrab hearted searching seb yuav ua li cas rau nws ntawm lub tsev qiv ntawv nyeem thiab yuav luag tej tiaj, ua which thaum kuv yuav muaj rua daim ntawv mus rau ib lub zos temp directory thiab nyeem nws yeej muaj. Txawm li cas los, yuav tsis muaj los ntawm cov hoops mus raws li koj tau nyeem nws ncaj qha los ntawm lub tsev qiv ntawv. No me snippet qhia li cas:

/// Hoob txhais khoom ntawm no, xws li:
lwm yam SPFile mySharePointFile; /* Ib feem ntawm ib SPList */
// Chaws ntxiv mus ntawm no thiab sab hauv tus qauv ntawm cov hoob kawm peb muaj:
XmlTextReader textReader;
textReader = tshiab XmlTextReader(mySharePointFile.OpenBinaryStream());

textReader.WhitespaceHandling = WhitespaceHandling.All;

textReader.Read();

// Yog hais tias qhov ntawm lawm tus nqi

thaum lub (textReader.Read())
{

... ua li ntawm ces yees...

Lawv tseem ceeb ntsis saum toj noj yog tias peb yuav nyeem tau qhov InfoPath ntawm cov OpenBinaryStream() txoj kev hu xov tooj rau ntawm tus SPFile li ib parameter kom cov constructor nyob XmlTextReader. Nws great xwb.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Ntawv cim npe Technorati:

Programmatically Extracting Attachments ntawm InfoPath ntaub ntawv (Nrog rau lawv cov npe!)

Kuv muaj ib tug nqi nkag teb chaws muab rau ib tug neeg uas leverages InfoPath thiab workflow. Rau ib kis thaum muaj kev pom zoo, Kuv yuav tsum tau ua kom muaj ib qho email uas muaj tag nrho cov ntaub ntawv InfoPath no uas zoo raws li qhov attachments lawv tus kheej kom (xyu) ib tug neeg tau muab cov ntaub ntawv ntawd thiab manually rov key ntawd rau hauv daim ntawv thov Oracle database.

Nws yuav tsis nyuaj rau koj tau nyob los yog parse daim InfoPath. Kuv tsis paub yuav ua li cas mus daws cov attachments, Txawm li cas los. Tom qab teev los yog ob leeg tshwm nyob ib ncig ntawm lub Internets (muaj eternity!) Kuv nrhiav tau no tsab xov xwm: http://support.microsoft.com/kb/892730

Nws muab ib co txoj ke mus extract lub Symptoms ntawm ib ntawm no hauv tsab ntawv. (Koj tseem yuav tau mus nrhiav tau rau ntawm no thiab txhua yam uas, tiam sis qhov cia li XML parsing).

Kuv paub tias tus Symptoms yog base64 encoded thiab kuv Ameslikas nqes mus ib txog kev uas nyuam qhuav extracting rau cov ntaub ntawv no base64, Nws hais thiab txuag. Txawm li cas los, Kuv sai heev pom tau hais kuv tsis paub yuav ua li cas kom tau lub npe ua ntaub ntawv thov nws tus kheej kom txog thaum kuv muaj nyob ntawm tshooj aforementioned.

Kuv twb yeej pom tias ntxov heev, tab sis kuv tau tso los ntawm nws cov split cwm pwm. Nyob rau hauv ib tes, tsab xov xwm * hais * tseem zoo InfoPath 2007. Tsis tau, cov cai thiab cov lus qhia no hais txog kev Studio 2003 thiab cov neeg ua tim khawv rau InfoPath 2003.

Ntxaib, cov cai uas cov tshooj pab ua hauj lwm zoo rau kuv (li ntawd, nyob deb). Kuv tau kuv daim ntawv InfoPath, Kuv parse nws, Kuv yuav nrhiav thiab txiav suab ntawm cov Symptoms thiab kuv paub lub npe. Tau dab tsi ntau ib qho hais kom yus lub neej?

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Ntawv cim npe Technorati: ,,

Yog koj txhawj xeeb uas koj lub chaw SharePoint tej zaum ib tad tsis zoo, cia kuv pab koj kho uas muaj ib cov kev kuaj xyuas.

Tswj kev tso cai los ntawm ib pawg uas muaj InfoPath hauv ib lub chaw kawm FBA

Kuv muaj ib tug nqi tso cai los ntawm kev uas kuv xav kom muaj kev siv InfoPath nyob rau hauv ib cov ntaub ntawv raws li authentication (FBA) ib puag ncig uas siv cov kev pab cuam los ntawm cov ntaub ntawv (Web raws li InfoPath).

Muaj ob pawg tso cai thiab cov txheej txheem ua haujlwm li no:

  • Neeg seem ib tus nqi qhia thiab siv kev pom zoo.
  • Ua ib tug mus thawj kawm approver pab pawg neeg uas.
  • Thawj qib approver rov los xyuas thiab pom zoo los yog tsis tau daim ntawv.
  • Yog thawj theem tib neeg pom nws zoo, lawv ceeb thib ob theem approver.

Sab InfoPath ntawm tej, Kuv muaj nyias khej uas nkaum/tshwm sim raws li seb tus neeg siv yog ib tug nyob hauv ib qhov ntawm cov kev tso cai los ntawm pawg.

Nyob rau hauv ib cheeb tsam FBA tus username() ua tas rov dawb paug, sadly. Kuv tau ua li cas yog teeb muaj ib daim ntawv teev kev cai hu ua "Tso cai los ntawm pawg".

Kuv tsis txhob ntxiv yam cov neeg txhua ntxiv rau daim ntawv.

Thaum twg tsab ntawv opens, nws muaj txoj cai li no:

image

Cov "laij teb tus nqi" yog nyob ntawm no:

image

Qhov no yog yeej hais: Cov lus nug qhov tso cai los ntawm pab pawg neeg kev cai sau thiab lim uas cov lus nug uas nrhiav kev nquam qhov twg lub npe nqi = "NORDIC".

Yog hais tias qhov uas rov muaj nqi, ces tus neeg siv tam sim no yog ib tug nyob hauv pab pawg uas. Kuv paub tias nws muaj tus nqi ntawd vim hais tias cov hlua ntev ntau dua zero.

Nyob ze lub voj phiaj cov khoom nyob rau hauv daim ntawv tso cai los ntawm ib pawg neeg. Lub sij hawm mus dhia, Yog hais tias tus neeg siv tam sim no tsis muaj kev nkag mus rau yam khoom ntawd ces cov lus nug yuav tsis rov qab los nws, txoj hlua ntev yuav tsum xoom thiab tam sim no koj paub tias tus neeg siv tam sim no puas yog ib feem ntawm cov pawg ntawd. Koj yuav siv Disease fact ntawd tsim nyog yuav tsum nyob rau hauv daim ntawv.

Qhov no yog ib nyuag super write-up. Kuv pressed rau lub sij hawm los kuv yuav muab nthuav dav ntxiv.

Kuv tsis paub txog li cas yog tias kuv nyob rau ib cheeb tsam FBA. Qhov no yuav zaum ua hauj lwm nyob hauv ib lub chaw uas tsis yog-FBA tab sis kuv yuav xav txog tej yam pab txhua tus neeg mob qhov twg no yuav pab tau.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Ntawv cim npe Technorati: ,

InfoPath // Ib tug piav rau "Unhandled kos thaum rendering daim System.Xml.XmlException: Npaj txhij txog end of ntawv thaum uas parsing npe tau tshwm sim. “

Yog ua rau ib cov ntawv InfPath hnub no thiab khiav tau up against ib tug phooj ywg qub, "Unhandled kos thaum rendering daim System.Xml.XmlException: Npaj txhij txog end of ntawv thaum uas parsing npe mov."

Qhov no tshwm sim rau kuv ub thiab kuv tsis paub zoo li cas xyov kuv puas mus daws nws. Honestly, Kuv xav tias kuv twb tau uas rau ib qhov project tshiab thiab yeej tsis pom no ib txwm siv (Kuv replacements tau rau hais tias mob taub hau). Kuv nco ntsoov nws yog ib tug dab ntxwg nyoog ntawm qhov teeb meem. Kuv siv li ob peb hnub hai soj ntsuam nrog nws. Txij thaum ntawd los, Kuv twb pom qhov no yuav los rau MSDN forums hla dhau xyoo tsawg kawg ib zaug thiab yeej tsis tshua pom kev teb rau nws.

Kuv ntaus nws thiab hnub no kuj zoo lub sij hawm no , Kuv twb cia li yuam tau hloov rau hauv daim ntawv. Kuv backed hais tias hloov thiab qhov teeb meem mus deb. Nws puv kom paub tias nws tseem tau los ua ib tug ntawm template siv InfoPath Designer xws tib tias nws generates ib tug yuam kev parse sab cov neeg rau zaub mov ntawm laj kab.

Hauv kuv tsev neeg, cov teeb meem tau tshwm sim los ntawm cov kauj ruam:

  1. Ntxiv ib cov caij tshiab kom tau ib tug ntaub ntawv los ua teb ntawv nyeem.
  2. Nws dauv mus rau hauv daim ntawv.
  3. Hloov nws cov zaub rau hauv ib lub nco cia sau.
  4. Qhia qhov nco cia sau kom rub tau nws qhov tseem ceeb ntawm kev SharePoint kev cai sau.

Kuv tsis paub tias cov kauj ruam no ua ib qho teeb meem los yog tej zaum, cas cov ntaub ntawv nyob rau hauv daim ntawv xwb yog ib qho teeb meem. Kuv yuav mus xyaum ua tej yam kuj nce mentsis thiab yog hais tias kuv muaj rau downt saib nws tsis muaj qhov no nrog rau lus qhia ntxiv.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Ntawv cim npe Technorati:

Embed sau ntawv tsim tawm hauv koj cov ntaub ntawv InfoPath

Kuv tseem nyob rau hauv cov ntaub ntawv InfoPath ntiaj teb no thiab kuv xav tau ib yam ntawm cov kev pauv "me" rau ib daim ntawv kom tias, hmoov tsis, lov ib naming convention kuv tau nrog nws ob lub lis piam dhau los. Kuv xav hais rau kuv tus kheej, "tus neeg yuav saib no tshaj ib xyoo los rau tam sim no thiab hais tias, ' Dab tsi yog pov xav? Yog Jove, nws cov naming convention ua tsis muaj tus hnov!”

Kuv pom tau hais tias kuv yuav tsim ib tug saib rau hauv daim ntawv rau qhov no thiab ntawd los, ib zaug ntxiv, pom tau hais tias kuv yuav tau tau ua tej yam li no ploog raws. Kuv ntxiv ib "Tsab ntawv tsim tawm" saib InfoPath daim zoj:

image

Kuv twb configured daim ntawv kom cov neeg tsis tau mus rau ntawd saib thiab thiaj li, yeej tsuas pom mob tus InfoPath neeg hauv saib tsim. Tam sim no kuv muaj me ntsis inoculated tiv thaiv ib txhia tom ntej paub tsim tawm saib kuv daim ntawv thiab kev xav tsis zoo xav txog kuv. Phew!

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Ntawv cim npe Technorati:

Tswj InfoPath Views

Kuv zoo li mus InfoPath theem nyob qhov twg, hauv lub xiav, Kuv tabtom crafting ib Rev hom. Kuv tus ntiv tes yuav tsum siv lub cuab tam zoo thiab ces kuv mus txog cuaj hlis ntuj qhuav heev thiab muaj kom nws tshaj plaws rov.

Kuv nyob nruab nrab ntawm ib cov theem InfoPath thiab kuv tsim kuv InfoPath tuaj nrog ntau views. Ib yam koj zaum daim ntawv ceeb toom ntawd yog cov InfoPath 2007 kev qhia views hais alphabetical. Qhov no yog ib tug lawm tiag ua tej lub sij hawm. Kuv pom zoo no hnub no rau prepend tus nab npawb rau tus saib lub npe kom lawv yuav tsum qhia rau qhov kev txiav txim uas kuv xav, li nov illustrated:

image

Kuv xav tias kuv yuav tsum tau ua no CFS.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Ntawv cim npe Technorati:

InfoPath daim ntawv Services, Cov ntaub ntawv raws li Authentication (FBA) thiab tej ntaub ntawv cim npe

Kuv mus ua hauj lwm hauv tej ntaub ntawv InfoPath no lub lim tiam hauv NTXHUAB hauv ib lub chaw FBA thiab ntse, thaum kuv mus deploy cov ntaub ntawv ntau lawm nyob nrog lub FBA tau zone uas tus username() ua kom muaj nuj nqi tsis ua hauj lwm. Kuv twb siv nws mus muab cov ntaub ntawv cim npe.

Qhov tshij, muaj nuj nqi ntawd tsis ua hauj lwm nyob rau hauv ib lub chaw kawm FBA (tsawg, tsis tawm ntawm lub thawv). Thiab, yog thaum koj mus tom nws tsev, username siv nyob rau qhov uas kuv muaj los tsis muaj guaranteed tej ntaub ntawv cim npe ua muaj event.

Kuv muab tau siv tus tam sim no() nuj nqi thiab txoj cai uas hluav taws kub rau nraum chaw thau khoom daim ntawv. Kuv cob cov ntaub ntawv npe rau cov ntaub ntawv caij thaum tseem dawb paug:

image

image

Lub kauj kom zoo dua yog tias cov ntaub ntawv npe yog teev ib zaug xwb. (Kuv tsis pom nws nyob qhov screen tua, tiam sis muab ib txog cai los tsuas tua hluav taws thaum "myFilename" yog dawb paug). Kuv yuav siv los muab cov ntaub ntawv npe ntawv qhov theem. Feem ntau, Kuv yuav ua ib yam dab tsi (phem) li no:

image

Qhov teeb meem ntawd yog uas yog neeg siv A opens tsab ntawv rau hnub Zwj Hli thiab cov neeg siv B pauv nws rau hnub, koj mam li mus nrog ob hom sib txawv vim ob txawv cov neeg siv rua nws nrog lwm tus neeg siv cov npe.

Li ntawd, li annoying li FBA yuav nyob thiab nrog InfoPath ua particular, nws ua kom kuv rov xav hais tias ib tug me tiam sis yeej tseem ceeb kev qhia thiab mus kom ze uas kuv tsis tau txwv tsis pub!

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Ntawv cim npe Technorati:

Yooj yim thiab ceev thaum: Ua ib daim ntawv rau InfoPath nyeem xwb (InfoPath cov kev pab hauv NTXHUAB)

Yog ib qho lag luam scenario li no:

  • Neeg seem ib cov ntawv InfoPath.
  • Siv daim ntawv.
  • Ntev-running workflow txheej txheem kicks.
  • Thaum lub workflow khiav, Peb tsis xav kom leej twg los pauv cov ntsiab lus ntawm tsab ntawv.

Qhov kev piv txwv office.microsoft.com piav tau tsim ib kem "saib yuav ua li cas" thiab kos cov tseem pom li nyeem nkaus xwb. Qhov no yog ib tug workable tiam sis muaj lub drawback tias koj twb zoo tsim ob tag nrho versions tib daim ntawv thiab yuav tsum tam sim no kom nws nyob rau ntawm sync manually. Yog hais tias koj ntxiv teb rau tus saib editable, koj yuav tsum ces ntxiv nws rau cov uas tsis yog-editable saib zoo li. Thaum lub sij hawm, uas txawv developers, yuav muaj ib co divergence.

No lwm txoj tej haujlwm zoo dua ib txhia:

  • Ntxiv ib tus tshiab teb rau hauv daim ntawv uas hu ua "IsEditable".
  • Teev nws tus nqi vim rau qhov tseeb.
  • Txhawb nws thaum publishing rau NTXHUAB.
  • Nyob hauv lub workflow, teev tus nqi ntawm IsEditble mus cuav.
  • Rov qab mus rau hauv daim ntawv.
  • Ntxiv ib txoj kev cai uas "li qhib daim ntawv", koj txuag button thaum IsEditable yog cuav disable.

Cov drawback rau kauj yog tias txhua tus tswv num tseem yuav editable ntawm qhov screen. Tus neeg siv yuav tau ib tug hneev taw tsis muaj tseeb tias lawv yuav tau pauv ntaub ntawv kawm. Koj yuav mitigate uas tso rau hauv cov ntawv nyeem tias daim ntawv yog neeg xiam, tejzaum nws nyob rau hauv cov loj loj liab ntawv hla saum cov nplooj ntawv.

Nyob rau hauv ib qhov project, Kuv tsim ib "workflow mus" saib. Thaum lub workflow progressed, nws yuav hloov tej liaj teb hais raws li txoj cai uas yuav tsum tau nce los ntawm daim ntawv. Thaum twg tus neeg siv qhib daim ntawv, "qhib daim" txoj cai txiav switched mus tias saib thiab cov neeg siv tau tej tus zoo me ntsis kev mus.

</kawg>

Ntawv cim npe Technorati: ,

Subscribe rau kuv blog.

Mus saib saib raws neeg siv daim ID rau ib cov ntawv InfoPath

Peb muaj ib tug tsim daim ntawv InfoPath nrog ntau views txhawb ib tug tshiab txais ua haujlwm / cov txheej txheem rau nce. Thaum twg lub tuam txhab ntiav ib tug neeg tshiab, xyuas nws thiab lwm pab pawg tau noj nkaus (teeb them, pab kom cov ntaub ntawv tsim nyog, nrhiav ib qhov rooj, yam). Peb siv daim ntawv tab sis ib yam saib daim ntawv rau txhua cov kev tso cai.

Thaum no cov tuam txhab, feem ntau ntawm cov neeg muab kev koom tes rau sab kev ua lag ua luam no IT-txawj xav thiab ntse, thiaj li thaum lawv nkag tau rau daim ntawv, lawv tus neej ntawd saib yog tshuab ib "raj" saib cov nyees khawm ua tau rau lawv txog kev ua. Txawm li cas los, Peb xav tau los piv yam rau tus thawj tswj lub tshiab ntiav tus tib neeg. Tus neeg no yuav tsum tsis pom ib yam ntawm cov nws hais txog cov khoom. qhov tseeb, nws yuav tsum mus ntsib ib tug saib ntawm daim ntawv thiab twb tsis muaj ib qho kev xaiv seb lwm tus views.

Nyob rau hauv peb cov ntaub ntawv, uas nyiaj tso ncaj ncaj qha tus manager nyiaj tied rau hauv daim ntawv courtesy of ib hu rau selector (uas kuv kuv ib txwm xav kom koj hu rau tus "neeg picker" vim).

Cov kauj ruam muaj raws li nram no:

1. Nyob hauv cov qauv siv hom, mus cuab yeej-> Daim ntawv xaiv-> Qhib thiab kaw.

2. Xaiv "txoj cai".

3. Tsim ib txoj cai tshiab uas lawv ua yog "hloov mus saib" thiab nws tus mob leverages tus userName() muaj nuj nqi.

userName() rov qab los "leb hauv" neeg siv lub npe yog tus sau tsis tau. Yog hais tias kuv teev rau hauv cov SharePoint uas muaj peev xwm "domainpagalvin", userName() rov qab los "pagalvin".

Lub selector cuag muab khoom rau ib tug tiv tauj peb. "AccountID cov" yog ib feem tshajplaws rau no scenario. Tib qhov uas ua rau qhov no txawm yog me bit kev sib tw yog uas tus tiv tauj selector (hauv kuv lub chaw lawm) rov sau thiab cov neeg siv ID, raws li nyob rau hauv "domainpagalvin". Qhov no tsis pub peb ua ncaj nraim koob pheej ntawm lawv yuam txij AccountID ("domainpagalvin") yuav tsis tib userName() ("pagalvin").

Peb yuav tau nyob ib ncig ntawm no siv qhov "muaj" neeg tsav tsheb: AccountID muaj userName().

Peb yuav noj nws ntxiv thiab txaus-pend ib zog-coded sau pem lub taub hau tus userName() kev ua kom tau peb kev koob pheej ntawm lawv kos thiab tshem tawm ntawm ib tus cuav positive rau qhov muaj neeg teb xov tooj.

Peb yuav muaj yeej zoo li yuav hloov rau lwm cov neeg raws lawv AD ruaj ntseg pab pawg neeg koom. Piv txwv, Thaum ib tug nyob hauv cov "nws Analytics" pawg accesses daim ntawv, yeej hloov tau mus rau IT Analytics saib. Peb tsis muaj lub sij hawm rau nws siv, tab sis kuv cov thought thawj yog ua kom cov qhov Web site uas yuav muaj ib txoj kev zoo ib yam li cov "IsMemberOfActiveDirectorySecurityGroup", tshaj ntawd tus userName() thiab rov qab muaj tseeb los tsis tseeb. Puas muaj leej twg muaj ib yam, tswv yim ntse tshaj? Puas muaj tej nuj nqi SharePoint peb tau leverage ntawm InfoPath kom paub txiav txim ntawd?

</kawg>

Ntawv cim npe Technorati: