SharePoint kav tham qhib Q&Sib kho ib hnub plaub 08/13 @ 12:30 PM EDT

Arcovis yuav tsum hosting peb thib ob "SharePoint kav tham" sib kho no hnub plaub rau 12:30 PM EDT. Qhia rau koj cov lus nug SharePoint thiab peb yuav ua raws li peb mus lom zem koj nrog txoj kev tso dag banjo, SMART tab sis txawm put-downs peb panelists koj txog haujlwm thiab tej zaum kuj tseem teb lus nug los yog ob tug. Lub lim tiam no tus "zaj" vaj huam sib luag nrog koj li tiag, Kuv nrog ib tug neeg Arcovis (Natalya Voskresenskaya thiab Harry Jones) thiab Laura Rodgers (ntawm twitter & EndUserSharePoint koob meej). Hma liab Bob raug teeb meem koom thiab, tab sis, kuv tsis noj uas dhau lawm tiag. Lub sij hawm dhau, peb muaj ntau npaum li uas tuaj koom uas qhov muag plooj rau kab ntawm panelists thiab attendees thiab kuv cia siab tias ib yam yuav tshwm sim hnub plaub.

Qhov kev tshwm sim puag txhawb los ntawm Integrated Systems thiab pab pawg (www.issgroup.net).

Thov koj tso npe no: https://www323.livemeeting.com/lrs/8000043750/Registration.aspx?pageName=9xrzxfs9x34sb0sm

Yog hais tias koj muaj tej lus nug uas koj xav tau peb mus noj, cia li hu mus rau tus hu thiab nug nws. Yog hais tias koj xav kom peb yuav tau xav txog tej no ua ntej tshaj, xa peb ib tug los yog cia ib tug saib ntawm no.

Pom koj ces!

</kawg>

Subscribe rau kuv blog.

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

Tej yam kev mob uas twb muaj lawm tos: SharePoint Alert Templates rau tus cawm (?)

Ib tug ntawm kuv tus neeg ua haujlwm ib teev thiaj tsim tawm ib tsawg tab sis pab tau HR daim ntawv thov rau qhov enterprise. Ntawd thiaj siv SharePoint Designer siv workflow seem ntawm yuav muab. Nws yog ib qhov mess me ntsis. Piv txwv, muaj cuaj SPD workflows mob siab thiab txhawb tau lub neej ib zajlus kom workflow thiab tu kom tsib tau hluav taws ib txhij txhua lub sij hawm muab txhaj rau cov neeg mob txoj kev. Nws tsis yooj yim rau debug 🙂

Kuv ua neeg muaj ib tug xov tooj ntawm still-koj yuav tsum, ib qho uas yog feem ntau muab ntau lub ntsiab lus teb thaum lub kaw lus yuav xa tawm tug alerts – ob leeg rau tus email nws tus kheej, thiab cov ntaub ntawv ua hauj lwm mob. Raws li SPD workflow implementers paub tias, "collect ntaub ntawv los ntawm cov neeg siv" SPD tes hauj lwm tau ua ib qho kev ua hauj lwm ib txheej ib yam kev cai nrog rau. Thaum twg peb siv tes hauj lwm ntawd, Peb tsis tau hais kom meej npaum. Peb ua kiag tej yaam tseem ceeb nuav (e.g. "pom zoo" los yog "tsis muab") thiab peb tau qhia muaj nqis ib coded nyob rau hauv phau ntawv npe thiab tau hauj lwm. Uas yog hais txog nws.

Kuv tus neeg yuav tsum tau muaj ob tug quav:

  1. Thaum SharePoint xa ib tug hais txog ib tug neeg ua hauj lwm ntus, xws li cov ntaub ntawv hais txog cov neeg ua hauj lwm ntau heev hauv email cev.
  2. Ceeb tshaj dua, Yog koj nyob deb – Thaum twg tus neeg siv clicks rau cov neeg ua hauj lwm txuas rau tus email, cov neeg ua hauj lwm daim ntawv yuav tsum muaj tag nrho cov ntaub ntawv tus approver yuav tsum tau thiaj li yuav ua rau nws approve los yog tsis muab cov kev txiav txim siab. tam sim no, tus neeg saib xyuas yuav tsum mus nias rau qhov khoom txuas nws rov tuaj khawb tau cia rau hauv lwm kom paub meej thiab tsis muaj leej twg nyiam uas. Koj yuav tsum nias rau tus email. Ces koj yuav tsum nias tus nraim kev tsawm tsawv thiab txuas rau tus neeg ua hauj lwm yam. Ces koj tuaj saib cov ntaub ntawv uas lwm (tus InfoPath tsim yog li qhov no). Ces koj nias qhov tom qab los tom qab, yam. Sawv daws hates.

Kuv twb pub no hais haum kev ntxhov dog dig thiab kuv xav hloov lub sab kawg nkaus kom.

Txoj kev kuv caij tamsim no los ua ib tug kev cai meej template. Koj yuav nyeem txog qhov ntawd nyob ntawm no. Qhov txaus ua haujlwm li no:

  • SPD workflow sau.
  • Ntawm tej taw tes, nws assigns ua hauj lwm ib tug rau ib tug neeg saib xyuas.
  • SharePoint lawv yeej xa tawm ib alert rau tus manager. Qhov no yuav tsis tau ib feem ntawm cov SPD workflow tab sis theej "SharePoint cas." (Cov kev pab cuam SharePoint timer, Kuv ntseeg tias).
  • Ceeb toom ib handler kev cai yog invoked uas muaj cov txheem txoj kev ceeb toom (hais raws li kev cai magic raws tau piav nyob rau hauv cov saum no los tshooj).
  • Thaum kuv ras kev cai handler sau, nws generates ib tug zoo nkauj. Ceeb tshaj dua, vim nws muaj tus neeg ua hauj lwm hauv tes, Nws kuj decorates cov hauj lwm nrog rau tag nrho cov ntsiab lus teb lus yuav raws li qhov yuav tsum tau ua lag ua luam.
  • Tus neeg twg hauv email thiab yog lawv pab tau cov ntsiab lus teb hais txog.
  • Neeg clicks nyob rau hauv qhov txuas ua hauj lwm thiab cov neeg ua hauj lwm xwb yog lawv pab tau cov ntsiab lus teb cov lus.
  • Sawv daws mus txog tsev muaj dib thiab ice cream.

Kuv puas tau ib POC ceev thiab nws ua haujlwm rau hauv ib lub chaw kawm (lab). Kuv tau txais kuv tug kev cai alert li tau leej twg. Kuv kuj tau los mus hloov cov neeg ua hauj lwm tau hauj lwm thiab npe xwb.

Lub ntsis xwb lo qhia, li ntawd, nyob deb, yuav kom tsis txhob muaj teeb meem qhov twg lub alert siab yam khoom no, triggering lwm alert. Qhov no tsis txhawj kuv.

Zoo li pheej nyob deb ces...

Qhov zoo tshaj plaws txog no yog hais tias kuv tsis tau muck txog kev mob uas twb muaj lawm SPD workflows. Yog tias ib tug handler meej yog unaware blissfully"IIZ RUNNIN NYOB HAUV NTAJ BAKGROUND, DECORATIN TEH UA HAUJ LWM TEEV WIF MOAR NTSIAB LUS TEB”.

</kawg>

Subscribe rau kuv blog.

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

Ntawv cim npe Technorati: ,

Nyob SharePoint Q&Sib kho ib hnub plaub 07/30/09 @ 12:30 PM EDT xaus 1:30PM EDT

Hloov tshiab: Lub hom rau qhov no yeej yog hu sib tham nrog rau ob peb PPT slides teev lub. Peb muaj ib lub chaw SharePoint ntawm muag zaub kom hluav taws tuaj rau thaum nws pab ntawm, tiamsis qhov no mas cov neeg hais lus tawm nrov nrov. Yuav muaj rau ua raws li los yog tug.

Yuav rov qab mus ua ntej kuv puas tau SharePoint sablaj, dhau ib lub xyoos dhau los, Kuv twb tau ntaus raug tau zoo kawg li cas ib tug nyob Q&Lub sib kho yuav tsum. Lub txoos xaav muab tso ua ke ib pab pawg neeg hoc rau "ua hauj lwm" tsi (i.e. cov neeg uas raug dai ib ncig thiab tsis ntshai nrhiav kev mus ua dag tuaj nyob rau theem) teb cov lus nug los ntawm cov neeg tuaj saib nyob rau hauv lub hoob. Nws twb nyob hauv kuv lub taub hau rov qab, thiab tsis tseg txij thaum ntawd los, rau tus tswv tsev lub sib kho zoo sib xws, tab sis ua kab thiab xov tooj. Kuv tsis xav tias nws yuav ua tau kom zoo li tus tim Q&Muaj kev sib kho, tab sis kuv xav tias nws yuav yog txias zoo nkauj.

Kuv thaum kawg tau mus nyob ib ncig ntawm nws thiab lwm hnub plaub, 07/30, Kuv niaj hnub (Arcovis) thiab lag luam tus khub, Integrated Systems thiab pab pawg, yuav tsum hosting ib Q&A li ntawd. Kuv tabtom hoping ua no tsis tu ncua, ntau npaum li txhua lub limtiam.

No inaugural kev kho tej zaum yuav thawv me ntsis, tab sis lub tswvyim no puas yog:

  • Yog hais tias koj muaj tej lus nug uas koj yuav xav muaj teb thaum qhov kev sib kho, cia li tshwm thiab nug.
  • yog koj xav, Koj email rau lo lus nug ua ntej.

Peb yuav siv tus thawj ib nrab ntawm qhov Q npaj&A ntawm ua tau tuaj nug kom ua thiab mam li muab qhib tos txog tej yam uas leej twg nug txog tom qab ntawd.

Qhov kev sib kho yuav siv qhov chaw rau hnub plaub, 07/30 pib thaum uas 12:30 xaus rau 1:30 PM EDT.

Yog hais tias koj xav, kindly tso npe no: https://www323.livemeeting.com/lrs/8000043750/Registration.aspx?pageName=pxlsd9fpsm2md7h9

Lub vaj huam sib luag yuav nrog kuv thiab lwm SharePoint luminaries. You’ll have to sign up to find out who they are 🙂

Yog hais tias koj xav tau ib tug ntawm cov luminaries rau ib tus Q yav tom ntej&Muaj kev sib kho, qhia rau kuv paub.

</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:

Nkawd phiaj SharePoint npe/ntawv qiv Views (tsawm tsawv thiab) Tau nrog jQuery

Qhov no yog ib qho rau kuv kuas series yuav ua li cas los siv jQuery nrog SharePoint.
Yog koj xav paub ntau ntxiv txog cov jQuery, Kuv mas xav: jQuery hauv nkaus ntawm Xyooj Bibeault thiab Yehuda Katz.

Yog ib tus thawj yam uas kuv xav, thaum kuv pib ua si ib ncig nrog jQuery, Yog hais tias peb yuav siv nws luag ib SharePoint saib. Teb hais tias "tsis yog" (los yog tsawg kawg, Kuv yuav tsis thov tau). Txawm li cas los, yeej ua tau kom nyuaj heev rau cov neeg mus ntsib ib tug pom.

Kuv nrog kuv ib puag ncig sandbox pib thaum ua hauj lwm rau qhov no. Kuv thiaj sau txog qhov chaw ntawm no: Txoj kev sai thiab yooj yim: Sau koj tus kheej jQuery Sandbox rau SharePoint.

"Luag" ib saib, ua raws li cov kauj ruam:

  1. Ua kom muaj ib tug saib koj xav kom luag. Kuv tau ua uas thiab hu nws "Ruaj saib".

    Qhov no yog seb nws zoo li thaum nws tseem tsis "ruaj":

    image

  2. Ntxiv ib editor cov Web site qhov tus saib sab siv qhov ua kom yuam kev nyob hauv tsab xov xwm sandbox (i.e. ntxiv "PageView = Shared&ToolPaneView = 2 "rau qhov URL).
  3. Xyuas seb koj SharePoint _spUserId los ua raws li cov kauj ruam vwm, ntseeg los tsis:
    1. Teev rau hauv koj cheeb tsam SharePoint.
    2. Nyob hauv web browser lub chaw nyob teb, hom: "javascript:alert(_spUserId").
    3. Cov ntaub ntawv (Nws yog "13" hauv kuv tsev neeg).

      image

  4. Ntxiv cov nram qab no javascript koj CEWP nyob rau hauv txoj kev pom:

    <tsab ntawv yam ="ntawv nyeem/javascript"
        src =".. /.. /jQuery Library/jquery-1.3.2.min.js">
    </tsab ntawv>
    
    <Script yam ="ntawv nyeem/javascript">
      $(muaj nuj nqi() {
    
        alert(_spUserId);
    
        Var theSecuredView = $(' iframe[FilterLink * = ruaj % 20View]');
    
        Yog hais tias ((theSecuredView.length > 0) && (_spUserId == 13))
          $(' iframe[FilterLink * = ruaj % 20View]').niam txiv().niam txiv().niam txiv().html("<tr bgcolor = liab><Td>Tsis pom koj!</Td></tr>");
      });
    
    </tsab ntawv>
    

Kuv twb nyob ntawd alert(_spUserId) kab nyob ntawd mus li cas qhov no yog tsis muaj tiag tiag "phiaj" ib saib, tab sis tsuas ua nyuaj saib. Ntxiv rau cov uas nyob rau hauv ib pliag.

Yeej, jQuery nrhiav rau ib iFrame nyob rau sab uas tau muaj ib attribute uas muaj "Secured % 20View" nyob rau hauv nws cov nqi. Thaum nws pom nws, peb xyuas saib yog hais tias tus neeg siv tam sim no yog "13". Yog hais tias nws yog, peb mus pem lub DOM rau ib <TR> lossis (uas kuv figured los saib tau qhov twg los thiab nws tracing) thiab ho hloov ntawd tus TR lossis nrog kuv cov lus. Kuv yeej tsis paub li cas robust qhov no (Kuv yog tej yam txawv heev, qhov tseeb), tab sis nws ua hauj lwm nyob rau hauv kuv sandbox. Yog kuv nrhiav tau ib txoj kev zoo, Kuv mam li blog hais txog nws. Qhov no yog qhov no:

image

Kuv nias lub khawm tau thiab cov ntaub ntawv yog hloov rau liab lus loj loj:

image

Raws li koj hais, txoj kev uas kuv twb siv qhov "kev ruaj ntseg" tov yog cia qhov Web site los kav xwb. Tom qab nws finishes, Kuv overwrite nws cov ntsiab lus uas kuv "tsis pom koj!"lus.

Txawm fact ntawd nws tsis yog ib tug tiag tiag "secured'" saib, Nws yog ib qho uas uas pab tau thiab nrog tej chaw ua hauj lwm uas ntse, nws thiaj li yuav securable muaj kev txiav txim zoo tsim ntau. Tus kho qhov teeb meem yog tias tus neeg no tau txais tag nrho cov ntaub ntawv thiab luag, tsuas yog tom qab nws tau txais cov ntaub ntawv, muab cov ntaub so nws. Yog hais tias tus neeg no yuav tau txais cov ntaub ntawv, ib tus neeg ntse yuav tiv thaiv tau qhov jQuery ntawm khiav txhua thiab saib seb nws xav saib.

Muaj ntau lwm drawbacks. "Kev ruaj ntseg" kauj yog los so ib _spUserId. Peb yuav tau xav kom ruaj ntseg tiag raws li hauv daim ntawv qhia txog SharePoint ruaj ntseg qauv, los yog tsawg kawg los ntawm cov neeg siv lub npe. Ntawd yuav nyuaj zog progressively, tab sis, kuv pom ib co zoo khoom sau ntawv hauv no kawm, vim li ntawd kuv hopeful yog ib tug zoo teb tias teeb meem.

Yuav tsum tau trimmed daim ntawv ntawm lawv tus kheej views, yog ua tau. Kuv tsis tau sim uas paub tseeb. Kuv xav tias tej zaum, tab sis tsis tshua daws qhov kev ruaj ntseg uas siv no vim hais tias muaj ib tug neeg tseem nyuam qhuav ntaus qhov URL ntawm tus saib lawv xav (yog lawv paub). Txawm li cas los, trimming yuav ua rau kev txiav txim zoo. Nws yog ib tug zoo usability feature thiab yuav obfuscate khoom. Yog hais tias tus neeg siv tag tsis paub tias cov kev tshwm sim pom tshwm sim, lawv tej zaum yuav tsis txhob siv txoj kev no. Tej zaum, tias nws zoo txaus.

Cov tau koob hmoov, Kuv mam muaj ntau tshaj ntawm cov ntawv no sau lub sij hawm.

</kawg>

Subscribe rau kuv blog.

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

Ntawv cim npe Technorati: ,,

Txoj kev sai thiab yooj yim: Tus zoo tshaj los siv jQuery nkaum ntawv teb rau hauv daim ntawv SharePoint

Qhov no yog ib qho rau kuv kuas series yuav ua li cas los siv jQuery nrog SharePoint.
Yog koj xav paub ntau ntxiv txog cov jQuery, Kuv mas xav: jQuery hauv nkaus ntawm Xyooj Bibeault thiab Yehuda Katz.

Yav tas los, Kuv thiaj sau txog kev siv jQuery los nrhiav thiab nkaum teb ntawv rau ib daim ntawv. Kuv tsis tu ntawm tej kev (Kuv yog chaining niam txiv – uas ib tsab ntawv ua tsis yog hnub no, yam tsawg kawg hauv tsev neeg kom zoo).

Thaum twg kuv xub pib xav txog nws, Kuv paub kuv yuav nrhiav tau ib tug <TR> ua tau rau kom cov uas kuv yuav tus lub hide() txujci. Kuv siv zog thaum ntxov kom paub qhov tseeb <TR> muaj tej yam zoo li no:

$(' tr:muaj(tswv yim[Title = nraim kuv!])');

Qhov teeb meem ntawd yog tias nws nrhiav txhua txhua <TR> lossis yuav tsum muaj kev sib raug zoo leej niam leej txiv rau tus Hide kuv! teb, ntawd txawm tias kuv nkaum! yog nested muaj ntau theem hauv deep <TR>ntawv. Nws puv tawm uas rau kuv daim ntawv sandbox, pom ntawd qhia 9 txawv TR tus uas kuv nkaum! raws li tus me nyuam qhov chaw nyob hauv nws cov ntoo DOM. Kuv pom tau hais tias kuv yuav taug kev mus rau tsob ntoo los teb input xwb, yog li ntawd yog li cas kuv twb mus txhob niam txiv, tab sis nws tsis zaum zoo nrog kuv.

Kuv muab ib co thought rau qhov no thiab yog ib yam uas kuv nyeem txog thaum kawg tau paub: Kuv yuav siv cov tsis() txoj kev mus luas tawm <TR>Kuv tsis xav rau kuv nqa teeb tus. Uas coj kuv mus rau qhov no:

$(' tr:muaj(tswv yim[Title = nraim kuv!])').tsis(' tr:muaj(tr)').nkaum();

Thawj lub ntsis pom txhua tus <TR> cim npe thiab muaj lub Hide kuv! teb rau lawv tus kheej hierarchy. Strips nws ces paub ib yam <TR> tias tseem muaj ib tug me nyuam <TR>. Qhov yoojyim peb nrog ib leeg ib <TR> uas:

1) Muaj tsis muaj <TR> tus me nyuam cov ntaub ntawv

2) Muaj input teb raws li tus menyuam.

Ces yuav siv tus hide() qauv rau cov uas yuav ua tau zoo thiab peb nyob nraum ua.

Kuv tseem tshee kuj nce mentsis txog qhov no, tab sis, tsis li tshee ua chaining niam txiv.

Kuv tsis paub tias yog ib tug zoo licas los tsis. Tej zaum yuav muaj ib txoj kev zoo tshaj ntawm taw qhov cia li <TR> tias peb pab txog nyob rau hauv ib daim ntawv SharePoint. Yog koj paub, thov logged.

</kawg>

Subscribe rau kuv blog.

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

Ntawv cim npe Technorati: ,

Txoj kev sai thiab yooj yim: Siv jQuery nkaum ntawv teb rau hauv daim ntawv SharePoint

Qhov no yog ib qho rau kuv kuas series yuav ua li cas los siv jQuery nrog SharePoint.
Yog koj xav paub ntau ntxiv txog cov jQuery, Kuv mas xav: jQuery hauv nkaus ntawm Xyooj Bibeault thiab Yehuda Katz.

HLOOV TSHIAB (twb!): Kuv tsis xav tias muaj ib txoj kev zoo los nrhiav lub <TR> Kuv xav mus nkaum lossis thiab sau tau hais txog nws ntawm no. Koj kuj tseem nrhiav tau no Tshooj nthuav lawm ces kuv leavnig nws mus.

Kuv xav mus nkaum teb ntawv nyeem, "Nraim kuv!"thaum pom tias cov:

image

Cov nram qab no jQuery puas muaj qhov ua kom yuam kev rau kuv:

<Script yam ="ntawv nyeem/javascript">

  $(muaj nuj nqi() {


    $(' input[Title = nraim kuv!]').niam txiv().niam txiv().niam txiv().nkaum();

  });

</tsab ntawv>

Txoj cai hais tias, "xyuas nws npe fields input tag kuv = kuv nkaum!. Ces, tau nws cov niam txiv thiab cov ntawd ntxiv mus leej niam leej txiv thiab tus * * ntxiv mus leej niam/txiv (phew!) thiab ua tau rau tus muaj lub hide() txujci nyob ntawd tshaj plaws, txawm nws yuav tsis muaj.

Kuv figured tawm ntawd cov qauv niam/txiv uas saib cov HTML rau hauv daim ntawv ntawd SharePoint tsim li:

<TR>
    <TD nowrap= "nws muaj tseeb" valign= "top" dav= "190px" hoob= "ms-formlabel">
        <H3 hoob= "ms-standardheader">
            <nobr>Kuv nkaum!</nobr>
        </H3>
    </TD>

    <TD valign= "top" hoob= "ms-formbody" dav= "400px">
        <!-- FieldName = "nraim kuv!"
                 FieldInternalName = "Hide_x0020_Me_x0021_"
                 FieldType = "SPFieldText"
        -->
        <ntsua kev dir= "All">
            <tswv yim
                lub npe= "ctl00$ m$ g_bdb23c2c_fde7_495f_8676_69714a308d8e$ ctl00$ ctl04$ ctl02$ ctl00$ ctl00$ ctl04$ ctl00$ ctl00$ TextField"
                hom= "ntawv nyeem"
                maxlength= "255"
                tus ID= "ctl00_m_g_bdb23c2c_fde7_495f_8676_69714a308d8e_ctl00_ctl04_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_TextField"
                npe= "Nraim kuv!"
                hoob= "ms-ntev" />
                <br>
        </ntsua kev>


    </TD>
</TR>

Cov duab no qhia tau hais zoo li qub, tab sis ntawv rau cov niam txiv:

image

Thawj cov txiv (1) yog ib tug siab txog lossis. Tham nrog tus txiv (2) yog ib lub lossis TD thiab ces thaum kawg peb tau mus rau ntawm txiv kuv xav mus nkaum (3) Nws yog ib qhov TR lossis nws tus kheej.

Qhov no yog ib tug zoo nkauj heev tas zog kuv xav tias vim nws yog ib feem nyob daim qauv ntawm daim ntawv no kav. Thaum SharePoint 2010 ua li, qhov qauv tseem yuav hloov thiab lov no mus kom ze. Kuv yeej xav tau dabtsi ua yog khoom siv tes ua ib jQuery selector uas yog ib tus kab uas "nrhiav kuv txhua lub TR tus (thiab TR cim npe xwb) uas muaj qhov chaw nyob hauv lawv tus me nyuam hais ib input teb uas txoj kev cai title = nraim kuv!”. Txij qab thiab mus. Piv txwv tias yog kuv paub qhov no tseeb, Kuv mam li tswg kev kho tshiab "txoj kev sai thiab yooj yim ' tswg.

</kawg>

Subscribe rau kuv blog.

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

Del.icio.us cim npe: ,

Ntawv cim npe Technorati: ,

Txoj kev sai thiab yooj yim: Sau koj tus kheej jQuery Sandbox rau SharePoint

Qhov no yog ib qho rau kuv kuas series yuav ua li cas los siv jQuery nrog SharePoint.
Yog koj xav paub ntau ntxiv txog cov jQuery, Kuv mas xav: jQuery hauv nkaus ntawm Xyooj Bibeault thiab Yehuda Katz.

Tau pib nrog jQuery nyob SharePoint yog ib qho yooj yim kuj ceeb tias (rau kuv). (Kuv muaj lus nug heev txog peb ua ib tug "zoo kev" hauj deploying tej no mus ntau lawm, tiam sis yog lwm hnub). Kuv twb nyuam qhuav pib ua si nrog cov tshuab no thiab qhov kawg, Kuv tsim ib cheeb tsam sandbox siv. Yog koj nyob nraum nrhiav kom tau pib nrog jQuery, koj yuav nrhiav no mus kom ze pab tau.

1. Ua kom muaj ib qhov chaw dawb paug

Tsim ib cov dawb paug rau qhov chaw nyob hauv koj qhov chaw thiab hu xov tooj rau nws tej yam ntse ib yam li "jQuery Sandbox".

2. Download tau jQuery

Koj mus muab tau lub tsev qiv ntawv javascript jQuery ntawm no: http://docs.jquery.com/Downloading_jQuery

Uas yuav txuag tau koj desktop.

Kuv yeej tau siv cov "minified" version.

3. Tsim ib lub tsev qiv ntawv SharePoint daim ntawv

Nyob rau hauv koj lub chaw sandbox, ua ib daim ntawv qiv.

4. Upload jQuery tsev qiv ntawv los SharePoint

Ntaub ntawm doc qiv koj nyuam qhuav tsim thiab upload lub tsev qiv ntawv jQuery.

5. Tsim ib daim ntawv teev kev cai SharePoint

Kuv twb pib nrog rau ib daim ntawv teev kev cai vim kuv xav muck uas txheem ntaub ntawv SharePoint. Koj yuav kuj ua kom ib sab nyob rau hauv ib lub tsev qiv ntawv sau los yog nplooj ntawv qhov web thiab tej zaum ntau ntau qhov chaw.

Ntxiv ib co txhua daim ntawv kev cai kom koj muaj ib yam dab tsi kom khiav jQuery tiv thaiv. Kuv thiaj pib ua tiav lawm:

  1. Nkaum teb.
  2. Cob ib tug nqi rau ib lub teb.

Cov hom phiaj ntawd hauv siab, Kuv ntxiv ob phau ntawv teb. Thaum lub sij hawm, Ua kuv mam li ua si nrog kev mus, dluab, lookups, yam.

6. Hloov cov nplooj ntawv Part NewForm.aspx Web thiab ntxiv lub ntsiab lus Editor Web site qhov

Qhov no nws yog me ntsis dub magic-ish , rau qhov hais tias nws yog lub tswvyim tshiab rau kuv. Kuv xub kawm txog qhov no los ntawm Paul Grenier, SharePoint jQuery Superstar, nws CodePlex yog ib qhov site: http://spff.codeplex.com/.

Ua raws li cov kauj ruam mus ntxiv ib CEWP mus rau ntawm nplooj ib yam uas pom tias yog NewForm.aspx txog tej kev cai:

  1. Saib daim ntawv kev cai thiab nyem qhov New.
  2. Append hauv qab no rau qhov URL: PageView = koom&ToolPaneView = 2

Uas yuav txia koj boring vanilla tej ntaub ntawv nkag teb chaws daim ntawv los ntawm tej yam zoo li no:

image

Rau qhov no:

image

Ntxiv cov editor web ib sab mus rau sab.

7. Sau koj cov thawj jQuery Code

Qhib tau ntawd CEWP hauv txoj cai saib thiab ntxiv cov nram qab no:

image

Nov yog lub chaws txoos yog koj xav luam los muab tshuaj:

<tsab ntawv yam ="ntawv nyeem/javascript"
    src =".. /.. /jQuery Library/jquery-1.3.2.min.js">
</tsab ntawv>

<Script yam ="ntawv nyeem/javascript">
  $(muaj nuj nqi() {

    $('#resultsID').html('Muaj cov' + $('ib').loj() + 'ib cim npe cim npe rau phab no.');

  });
</tsab ntawv>

Ntog:
<div daim id ='resultsID'></div>
/ntog

Nco ntsoov tias tus ua ntej <tsab ntawv> lossis referencing lub tsev qiv ntawv sij jQuery. Txawm, tej no hloov lub sij hawm, ces koj mam li xav kom koj ib tug) siv lub npe zoo thiab b) taw tes rau qhov tseeb SharePoint daim ntawv qiv.

Bask hauv lub hwjchim ci ntsa iab

Yog tias koj ua nws thwj, koj yuav pom muaj tshwm sim zoo li cov nram no:

image

Wrapping tuaj

Qhov no tsis yog tib txog kev mus pib, tiam sis nws tseem ceev, ib qho yooj yim thiab hauv koj ib SharePoint nyob.

</kawg>

Subscribe rau kuv blog.

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

Ntawv cim npe Technorati: ,

Del.icio.us cim npe: ,