SharePoint MVP tham txog Wed 04/20

Kuv mam ua koom ib lub sij hawm uas MVP chats tau xya hnub ntxiv, 04/20.  Ntawm no yog Microsoft lub write-up thiab kev txuas mus rau npe:

Koj puas muaj tawv kev nug txog kev SharePoint uas koj nyob nraum nrhiav lus teb? Koj puas xav coj mus rhaub ua rau cov txuj ci sib sib zog nqus tub feemxyuam Microsoft ntau nqi txawg? Cov SharePoint MVPs cov tib neeg uas koj pom nyob hauv zej zog kev ua cais, tham, nom tswv pab pawg neeg thiab cov answerers hauv lub MSDN thiab TechNet forums. Los nrov thov, peb muaj coj cov kws txawj ua ke ua ib pab ib los teb koj cov lus nug nyob. Yog li thov koom peb thiab nqa rau cov nqe lus nug! Qhov kev sib tham no yuav tau them WSS 3.0, NTXHUAB, SharePoint Foundation 2010 thiab cov SharePoint neeg rau zaub mov 2010. Xai xws li teeb thiab tswj, tsim, kev loj hlob thiab kev nug.
Thov txis peb hnub Wednesday November 20th thaum 9 kuv PDT/tavsu EST mus tham nrog MVPs ntawm ib ncig lub ntiaj teb no. Xav paub ntau ntxiv thiab ntxiv cov chats rau koj daim ntawv thov raws mus rau MSDN hem sab http://msdn.microsoft.com/en-us/events/aa497438.aspx

Kuv koom hauv ib qhov ntawm cov tsaib no thiab nws yog ib qhov moj tej tawg tiag tiag.  Yog cia li vwm phaj open question/teb extravaganza. 

Nov yog ib co hauv (tam sim no) tus neeg koom lub SharePoint MVP:

Cornelius van Dyk
Dan Attis
Daniel Wessels
David Martos
Ivan Sanders
Jeremy Thake
John Ross
Kris Wagner
Mike Oryszak
Randy Drisgill
Ntxhov  Windischman
Zlatan Dzinic

Yog ntshai specialties thiab saib xyuas.  Kuv xav tias qhov no yuav muaj kev lom zem lub sij hawm thiab kev zoo kev siv koj cov xuab moos noj su (los yog cov teev thaum nruab hnub Luag nyav )

Xee npe nov no (http://msdn.microsoft.com/en-us/events/aa497438.aspx).

</kawg>

Subscribe rau kuv blog.

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

Vim li cas ib tug rau "ib los sis ntau tshaj teb yam yeej tsis ntsia zoo zoo”

Kuv twb ua ib tus tweak me nag hmo rau ib qho Web site uas yog ib cov lus nug CAML tiv thaiv tsis tau ib daim ntawv teev.  Kuv tau muab hloov dua tshiab, deployed nws thiab tau mus ntaus nrog rau ib qho kev ua yuam kev:

Kev npaj txhij txog qhov kev ua yuam kev muaj tshwm sim nyob rau hauv 3 hnub Outlook huab cua Forecast WebPart. Thov hu rau tus neeg khiav dej num hauv qhov system. Ib los yog ntau tshaj tus teb yam yeej tsis ntsia zoo zoo. Mus rau ntawm daim ntawv teev nqis nplooj yuav rho tawm tej liaj teb.

Kuv yog txojkev lwm oddball meem lawm ces kuv tsis tam sim ntawd xa kuv cov lus nug CAML mus rau qhov yuam kev ntawm SharePoint twb qhia rau kuv.  Kuv puas nrhiav bing ceev thiab thiab nyob no cov ncej tswv blog by Sandeep Nahta  (http://snahta.blogspot.com/2009/01/one-or-more-field-types-are-not.html).

Ntawm no yog cov lus nug uas phem:

lus nug.Query ="<Nyob qhov twg><Thiab><Neq><FieldRef Name = 'Abbr' /><Value yam = 'Ntawv'>SFNY</Tus nqi><FieldRef Name = 'Abbr' /><Value yam = 'Ntawv'>SFIS</Tus nqi></Neq></Thiab></Nyob qhov twg>";

Ntawm no nws yog tsau:

lus nug.Query ="<Nyob qhov twg><Thiab><Neq><FieldRef Name = 'Abbr' /><Value yam = 'Ntawv'>SFNY</Tus nqi></Neq><Neq><FieldRef Name = 'Abbr' /><Value yam = 'Ntawv'>SFIS</Tus nqi></Neq></Thiab></Nyob qhov twg>";

Li ntawd, yog tus moral txog zaj dabneeg: xyuas kom tseeb tias koj cov CAML yog tseeb los koj kuj yuav tau txais ib qho kev ua yuam kev oddball.

Subscribe rau kuv blog.

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

</kawg>

Sai kho rau "lawm ib qho yuam kev lawm hos loading daim ntawv”

Kuv yuav kuaj tau tus kev cai SharePoint Designer 2010 los yam tav su hnub Sunday txhua qhov zoo thiab kuv twb poob nthav tsoo ib "tseemceeb yuam kev" thaum sim tso lub workflow:

Lawm ib qho yuam kev lawm hos loading daim ntawv.

Nyem qhov pib dua mus ntsaws rau ib daim ntawv tshiab rau daim ntawv.  Yog hais tias qhov yuam kev no mob tsawv, hu rau lub pab (team) kev them nyiaj yug rau hauv lub Web Site.

Ze rau nias tawm txoj xov.

Qhia cov lus yuam kev

tau mas, Yog hais tias koj nyem khawm "Qhia yuam kev txhawb" txhua yam nws tsis yog pom koj ib tus ID correlation:

image

Hauv kuv tsev neeg, qhov no muab ua ib qho teeb meem uas tsis yog lwm Access Mappings.  Kuv ntsia teev cov ntaub ntawv nyob rau hauv lub 14 hive thiab pom hais tias InfoPath twb complaining txog qhov AAM (vim kuv twb los tsoo localhost tsis tau tus neeg rau zaub mov npe).  Kuv hloov kuv qhov URL thiab solved uas.

Nws tsis mus qhia tias tag nrho cov kev linkings txog rau ntau yam khoom uas tam sim no nyob rau hauv cov SP 2010, qhov koj lawm qhov no yog ib qho teeb meem (SharePoint Designer workflow hauv kuv tsev neeg) yog ua tau lig ncaj rau tus tub ntxhais qhov teeb meem.

Subscribe rau kuv blog.

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

</kawg>

SharePoint 2010 Kua nyam "Deploying” Xwm txheej

Kuv siv PowerShell deploy tov kom ib tus neeg ua liaj ua teb SharePoint (h/t:  Corey Roth thiab nws Blog ncej). 

Kuv mam li mus rau hauv central admin, accessed System nqis thiab ces "Manage teb dlaws" rau deploy nws tus ua liaj ua teb thiab yuav kuv (me ntsis) dismay, nws tau mus tua nyob rau hauv "deploying".

Kuv twb pom no qhov teeb meem los ntau zaus nyob rau lub MSDN forums, li ntawd, kuv twb tshee zoo nkauj hais txog nws.  Kuv nrhiav ib ncig me ntsis thiab nyob no yuav pab tau hauv tsab xov xwm (yog tus neeg ntawm seemingly unattributed http://www.resolutionsnet.co.uk/).  Kuv lawm os txiag hauj lwm thiab thaum twg kuv clicked rau hauv txoj kev hais haum, nws qhia kuv tias nws twb ntse deployed txoj kev hais haum rau peb lub servers plaub hauv lub teb.

Kuv mus hauv errant neeg rau zaub mov, nres qhov kev pab cuam timer thiab restarted rau nws.  Cov neeg rau zaub mov qhov rais yeej qhia kuv paub hais tias cov kev pab cuam tejyam mus li qhov hais kom ua, yog li ntawd qhia kuv tias nws yog mob.

Lub sij hawm no, Thaum kuv rov mus hab txhawb admin, Kuv twb tau deploy uas tsis muaj teeb meem.

Hopefully me ntsis no pab ntxiv yog yuav pab kom tej yam nyob hauv tus bind ib hnub.

</kawg>

Subscribe rau kuv blog.

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

Yuam kev rau ib hnub: "Tsis tau ntxiv rau daim kev cai tswjhwm los ua ke rau lub GAC”

Kuv twb tau ntaus ib ntsis nrog siv qhov muag saib lub studio 2010 rau ib tug ib lub kua sp2010 thiab tus tau txais qhov yuam kev:

Yuam kev tshwm sim txiag kauj ruam 'Ntxiv kua': Yuam kev: Tsis tau ntxiv rau daim kev cai tswjhwm los ua ke rau lub ntiaj teb no los ua ke cache: YourAwesomeDLLThat IAmJustNotGoingToInstallRightNow.dll

Kuv mus rau lub GAC xwb (c:\windowsassembly) sim thiab tshem tawm thiab tau txais ib "ntaub ntawv nyob rau hauv kev siv" kev ua yuam kev.

Kuv tsis muaj iisreset, Kuv yuav luag downloaded sysinternals, Kuv tsis timer pab hauv cov kev pab cuam... Thaum kawg, Kuv cia li kaw thiab sab kev studio xwb thiab kuv twb tau kaw thaum kawg.

</kawg>

Subscribe rau kuv blog.

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

Txoj kev sai thiab yooj yim: Debugging VS 2010 Kua txiag

Nrig txog kev pom Studio 2010 ntaub ntawv qhia txog nyuaj-rau-debug kom raug thaum txiag ib zaug.  Ib txoj kev sai thiab yooj yim txoj kev los ua ib co heev ntxhib debugging yog pov raug teev hais qhov xyuas koj tus kheej.  Nrig txog kev pom Studio yuav qhia lawv nyob hauv cov zis console.

Xav txog cai no me ntsis:

image

Yog no feature scoped rau ib daim ntawv thov Web site, kawm ntawv yuav tsum thov.  Yog koj sim thiab reference ib thaj chaw, tej zaum koj yuav tau qhov yuam kev tsis meej xwm:

Yuam kev tshwm sim txiag kauj ruam 'Ntxiv kua': Kwv siv tsis tau teem rau kev lom los ntawm ib tug kwv.

Txawm li cas los, yog muab ib tug tshiab kos thiab dhau ib txoj hlua kom cov constructor, koj tau txais kev pab tau ib nyuag tshaj lus:

image

Nws yog ib tug txheej txheem uas crude, tab sis, zoo nkauj yoo mov thiab yooj yim.

</kawg>

Subscribe rau kuv blog.

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

Timer hauj FeatureActivated thiab Feature tau

Kuv twb tau ua hauj lwm nrog ib co cai uas ib tug neeg tso kuv rau ib txoj hauj lwm hauv timer no.  Nws tsis tau muab qhov tseeb feature ua kom txoj kuv thiaj sau, tau mas.  Kuv coj kom zoo dua Andrew Connell nto moo blog ncej nyob rau cov kawm.

Kuv siv kuv siv qhov muag saib lub Studio 2010 thiab muaj txiag ceev cia zoo zoo tsis muaj ib qho kev ua yuam kev "yuam kev tshwm sim txiag kauj ruam 'Add kua': Kwv siv tsis tau rau thaj ntawm ib yam twj paj nruas."

Kuv twb noj nws chaws cia ib yam nkaus thiab.  Kuv yog scoping tus feature Web site daim ntawv qib, li:

image

Yog li ntawd, cov khoom uas yuav muab xa mus rau lub receiver uas yog los ntawm daim ntawv thov li qhov web, tsis muaj qhov chaw sau.  Thaum kawg, txoj cai zoo li no:

pej xeem override qhuav qhawv FeatureActivated(SPFeatureReceiverProperties zog)
{

    // Tsis txhob ua cov nram no nrog lub web app scoped nta, nws ua rau nws poob siab Luag nyav
    // SPSite chaw = zog.Feature.Parent li SPSite;

    SPWebApplication wa = zog.Feature.Parent li SPWebApplication;

    Yog hais tias (WA == null) pov tshiab kos("webapp2 yog thov.");

    foreach (SPJobDefinition hauj lwm hauv wa.JobDefinitions)
    {

        ua tiag
        {
            Yog hais tias (txoj hauj lwm.Lub npe == List_JOB_NAME)

                txoj hauj lwm.Rho tawm();
        }
        ntes (Kos e)
        {
            pov tshiab kos("cim 2");
        } // txhom kos e
    }

    // nruab qhov hauj lwm

    WeatherForecastTimerJob weatherForecastTimerJob =
        tshiab WeatherForecastTimerJob(List_JOB_NAME, WA);

    SPMinuteSchedule teem caij = tshiab SPMinuteSchedule();
    teem.BeginSecond = 0;
    teem.EndSecond = 59;
    teem.Luv = 5;
    weatherForecastTimerJob.Schedule = raws sij hawm;
    weatherForecastTimerJob.Update();

}

Tus yuam sij take-away yog tias thaum tus feature scoped rau lub Web site app, tus SPFeatureReceiverProperties SharePoint mus rau koj lub receiver feature kis tus Web site app theem tsis.  Andrew tus qub blog nkag assumes scoped mus rau hauv qhov chaw sau ntawv.

</kawg>

Subscribe rau kuv blog.

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

CodePlex Project hloov tshiab: SharePoint Designer Workflow Extensions

Puag ta, KUV tau sau tias kuv twb sim mus resurrect kuv tus laus CodePlex qhov project, SharePoint Designer Workflow Extensions.  Ntawd qhov project CodePlex tau tsim rau WSS/NTXHUAB thiab ntxiv ib handful ntawm company yam zog, xws li "ToLower()”, "ToUpper()”, "Substring()"yog li khuav.  Nws txawm muaj nuj nqi style ntsiab "hu rau web dej".  Koj yuav nyeem ntxiv txog qhov ntawd nyob ntawm no: http://paulgalvinsoldblog.wordpress.com/2007/10/28/sharepoint-designer-custom-activity-to-execute-user-defined-c-functions/.

Kuv los uas nws heev ta.  Txij SharePoint puas tau 2010 tawm los, Txawm li cas los, Twb qab kuv hau tau saib rov rau nws thiab kom nws ua hauj lwm hauv SP 2010.  Qhov tshij, hnub no, Kuv ho cia li ntawd.  Kuv tsis tau tshiab lub chaws los CodePlex tsis tau. Kuv xav mus kawm ntawv kuv tus kheej rau CodePlex kablus ua ntej kuv li ntawd, tab sis, kuv ho mus hloov qhov home page wiki rau peb tes num.

Wider thiab nthuav ntau implication yog tias tej yam kev cai los ntawm WSS thiab NTXHUAB kom zoo port dhau yooj yim zoo nkauj, Nws yog ib tug (txais tos) surprise rau kuv.

Ntawm no yog qhov nws zoo li hauv SharePoint Designer thaum nws ua hauj lwm:

image

</kawg>

Subscribe rau kuv blog.

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

Qhov Microsoft.SharePoint.ApplicationPages.Administration.dll twg?

Kuv twb tso ib qhov project siv qhov muag saib lub studio uas references Microsoft.SharePoint.ApplicationPages.Administration.dll.  Nws coj kuv me ntsis thaum yuav paub nws thiab kuv thought kuv yuav qhia.  Nyob rau hauv kuv ib puag ncig, Nws yog nyob ntawm:

c:\qhov kev pab cuam filescommon filesmicrosoft sharedweb neeg rau zaub mov extensions14configadminbin

</kawg>

Subscribe rau kuv blog.

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

BrightStarr neeg nrhiav SharePoint Analyst

Kuv niaj hnub, BrightStarr, yog nrhiav ib tug SharePoint lag luam analyst.  Peb lub hom phiaj rau kev ua hauj lwm nrog rau lwm tus neeg yog leej twg:

  • Xib fwb to taub lub platform zoo heev
  • Muaj ib lub tswv yim zoo ntawm kev ntse tov SharePoint ntev ib cobbled together lub tsev kev ntawv yog dab tsi
  • Nyiam ua hauj lwm mus ncaj neeg, ib txhia neeg uas to taub hais SharePoint txog dab tsi tag nrho thiab ib co uas nyuam qhuav muaj vague notion tias SharePoint yuav pab lawv, tiam sis tsis paub tseeb xyov li cas
  • Sau tau ntawv zoo heev
  • Sib tham nrog ib tug me neeg zoo tiag tiag
  • Nyob zoo thiab nyiam yuaj zov.  Qhov no yuav tsis tau chaw uas tau hnyav ncawv txheej txheem-tsav (peb muaj txaus ntawv yuav tau ua tej yam uas nyob hauv yim, tab sis peb nraum ceev heev ntawm peb ko taw, nimble thiab zoo uas tag nrho cov khoom).

Qhov no yog tsis muaj txoj hauj lwm tsim tawm txawm yog koj nyob nraum tsim ib tug kws pab tswv yim-tawm nrhiav kom tau ua kom pom tseeb dua los yog kev noj kev haus thiab tsawg txoj kev loj hlob nyob, qhov no yuav yog ib kauj ruam zoo rau koj.

Yog hais tias koj xav, Kuv nyob twitter ping los sis email rau kuv!

</kawg>

Subscribe rau kuv blog.

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