Hli Archives: Lub ob hlis ntuj 2011

Hloov ua qhov chaw kem ib pawg nyob SharePoint Designer 2010

Kuv tsim tau ib lub slew ntawm lub txhua qhov chaw SharePoint Designer 2010 no sawv ntxov thiab pom tau hais tias kuv tau muab lawv txhua tus tibneeg pawg.  Nws yog cov embarrassingly kom paub tseeb.  Kuv tsis paub nyem qhov twg...

image

Kuv xav khaws ob npaug nias rau kab xwb los nyem khawm kem tsev koom rau hauv cov ribbon.

Thaum nws puv, lo lus teb kom yog (los lus teb kom yog tsawg kawg yog ib) yog tib nias rau cov pab pawg xwb.  Tos ib pliag thiab ces nws yuav pub tau koj sau muaj nqis, li:

image

Yoojyim zoo nkauj thaum koj paub tias yuav ua li cas, tab sis nws eluded kuv rau me ntsis.

</kawg>

Subscribe rau kuv blog.

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

Manually hloov tej ntaub ntawv SPD XOML huv zog

Hauv no ncej ntawm no ("Tau cov lus teb rov qab los pib kev tso cai los ntawm txoj kev"), Kuv hais tias koj tau ntawd ntxiv ib slew muaj workflow zog tag nrho rau koj cov workflow SharePoint Designer.  Yam sai sai ua cluttered thiab ib qho nyuaj rau cov nyeem ntawv.  Yeej, Yog hais tias koj ntxiv "Pib tso cai los ntawm txoj kev" tes hauj lwm rau koj workflow, rho tawm nws thiab ntxiv dua, koj mus nrog rau tag nrho tias kev ua workflow qhob ob zaug. 

Nws yog ib qhov mob tiag tiag kom mus thiab rho tawm manually tag nrho cov, ces kuv txawm kuv yuav sim mus tshem lawv tawm hauv cov ntaub ntawv XOML.  Qhov no yuav tsis yooj yim txaus ua proved. 

Ua ntej, koj yuav tsum nrhiav sij XOML ntawv.  Kuv thiaj sau txog ntawd npe ntawm no: http://www.mstechblogs.com/paul/how-to-find-and-edit-spd-2010-workflow-xoml-files.  Ib zaug nyob, qhib pem lub XOML tej ntaub ntawv thiab nrhiav ib tug kuj sib txawv thiab koj xav tawm.  Qhov no, Kuv ntxiv tus "Pib tso cai los ntawm kev" ua rau kuv workflow ob zaug.  Kuv xav kom tshem tau cov kuj sib txawv lub workflow thiab hu ua "isItemApproved" vim tias yog tsis siv thiab cov no kuj sib txawv ib duplicate thiab hu ua "isItemApproved1". 

Tsuas ua ib phau ntawv nrhiav cov kuj sib txawv thiab.  Kuv cov tshuaj ntsuam zoo li no:

image 

Yog koj nrhiav ib ncig rau hauv XOML, koj yuav pom tau tias "IsItemApproved1" yog siv nyob rau ntau qhov chaw txawv thaum tus thawj "IsItemApproved" no tsuas txhais ib zaug thiab yeej tsis siv.

Rho tawm nws thiab ces tseg cov ntaub ntawv.

Ib sab xwb lo qhia yog hais tias kuv yuav tsum tau kaw tawm SPD zoo rau nws thiab rov qhib nws ua ntej SPD acknowledged tias teb deleted.

tau mas, Hmong ua liaj teb tsis yog xwb qhov koj yuav ua tau nrog cov XOML thiab tej zaum kuv yuav blog hais txog lwm yam zoo li no yav.

Koj yuav tau ceev faj txog dab tsi koj ua no thiab muab cov backups uas koj ua haujlwm.  Koj yuav ua ib seemingly me / hloov maj mam hloov no tias trashes cov workflow kom deb li deb SPD concerned thiab koj yuav poob sij hawm siv zog thaum koj yaj.

</kawg>

Subscribe rau kuv blog.

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

Yuav ua li cas los nrhiav thiab kho kom raug SPD 2010 Ntaub ntawv XOML workflow

Kuv twb researching ib qho yooj yim uas tshem ib Rev ntawm workflow zog tsis muaj los yog siv tau kuv tus tav su ib txhij blown SPD nias tsim txom qhib.  Kuv thought tau ncaj qha mus txawv lub XOML, Nws yog ib qhov XML cia lwm SPD tus declarative workflows.  Qhov no yog li cas kuv pom nws.

Ua ntej, mus rau tag nrho cov ntaub ntawv xaiv nyob rau hauv qhov khoom Navigation.  Koj yuav tsum tau tsim nyog permissions saib qhov no, thiaj li yog hais tias nws yog qhov uas ploj lawm rau koj, hais kom tus neeg yog admin los pab koj txoj kev priv.  Qhov no yog qhov uas nws zoo li:

image

 

Tag nrho cov ntaub ntawv qhia ib daim ntawv teev... tag nrho cov ntaub ntawv:

image

Xaiv tau daim ntawv tais ceev tseg Workflows thiab ib daim ntawv teev cov folders rau txhua qhov workflow saib koj:

image

Nyem rau hauv daim nplaub tshev lawm thiab  koj pom ib daim qhia txog txhua yam ntawm nthuav goodies uas ua tau ib qho SPD declarative workflow.  Txoj nyem .xoml cov ntaub ntawv thiab qho "qhib rau –> SharePoint Designer (Qhib tsis tau li XML)"mus ncaj qha mus txawv lub XOML:

image

Koj yuav tau ua ib cov thaub qab kev tuav ua ntej koj fiddle nrog rau tej yam.  Ib yam li daim/muab ntawm cov ntaub ntawv hauv SPD muaj tej zaum zoo txaus, los koj yuav tau luam paste rau hauv cov ntawv nyeem XML tag nrho thiab txuag cia rau koj desktop los xijpeem yog koj wont no.

</kawg>

Subscribe rau kuv blog.

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

Tau cov lus teb rov qab los pib kev tso cai los ntawm txoj kev

Twb tau si nrog SharePoint Designer workflow tej tshiab "Pib tso cai los ntawm kev" yam thiab tau sai stymied vim kuv tsis tau tam sim ntawd teb cov nqe lus nug, "tau pom nws zoo los tsis?”. 

Tsis ntev lub teb yog hais tias nws yuav yooj yim heev kom tau cov lus teb.  Thaum twg koj ntxiv cov kev ua no rau koj tus workflow lub ntsiab, SPD ntxiv ib lub zog bazillion Workflow zog thiab cov ntaub ntawv los ntawm tsis, raws li koj tau pom ntawm no:

SNAGHTML2350fe72

Koj mam li tseem nco tias yog koj ntxiv ntau tshaj ib qho no, SPD appends tus "1" li yees rau tag nrho cov nqi. 

Kuv pom tias thaum kuv deleted yam "Pib pom zoo txheem" thawj, thawj txheej kab workflow zog tseem (sadly).  Li ntawd, yuav ceev faj li cas koj siv no vim nkawd, koj mam li mus nrog  ib daim ntawv teev heev cluttered muaj workflow zog.

Kuv muab Microsoft credit rau raws li qhov "yog" naming convention rau Boolean kuj sib txawv thiab.  No convention zoo zoo nkauj ntshiab cov ntaub ntawv zoo li cas thiab yuav tsum muaj.

Hauv researching, Kuv nyob no yuav pab tau hauv tsab xov xwm: http://office.microsoft.com/en-us/sharepoint-designer-help/workflow-actions-in-sharepoint-designer-2010-a-quick-reference-guide-HA010376961.aspx.  Nws yeej tsis nyob qhov teebmeem uas koj hais, tab sis muaj ib co lus qhia zoo rau lub npe ces kuv yuav mus muaj yog hais tias koj xav kawm ntxiv txog qhov meej thiab nws cov kwvtij ua.

</kawg>

Subscribe rau kuv blog.

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

SharePoint Designer 2010 MOD muaj nuj nqi

Kuv tabtom ua hauj lwm seb tej kev cav uas cov neeg ua hauj lwm yuav thov so, mob lub sij hawm, yam. Validation ib rau txoj cai hais tias koj yuav tsum nco ntsoov thov lub sij hawm tawm hauv 4 teev Team sib.  Qhov no yog ib qho yooj yim txaus – siv ib tug modulo muaj nuj nqi.  Modulo zoo qhia rau koj cov nyiaj hauv kev faib.  Yog tias tsis muaj nyiaj, modulo yog xoom, txwv tsis pub, yog tseem tshuav xijpeem.  Piv txwv, 8 mod 4 = 0 (8 / 4 = 2 tsis muaj feem nrog rau).  Rau lwm cov tes, 8 mod 5 yog 3.

Kuv yuav tsum tau ua no ib zaug SPD 2007 thauj ub thiab kuv yeej tsi siv ib cov InfoPath daim ntawv los daws kom tau, ces nws txawm licas rau pem hauv ntej xaus rau thaum lub sij hawm.  Nyob rau hauv rooj plaub tam sim no, tej zaum mas muaj ib cov InfoPath daim ntawv nyob hauv daim duab, tiam sis yog tsis kaj huv.  Li ntawd, Kuv twb ua hauj lwm tawm ib tug txheej txheem los xyuas kom meej tias lub sij hawm thov uas ib txwm nyob rau hauv 4 increments teev.  Kuv twb mus ua cov zauv, tseg rau hauv ib txoj hlua thiab ces ua ib substring khoom. 

Kuv rub los SPD 2010 thiab rau kuv surprise (thiab me ntsis lossis kev poob ntsej muag) muaj ib modulo kev ua twb:

image

Kuv hais tias ib yam dab tsi uas kuv xav tau ntawd twb muaj mus rau ntawm lub box tag pleasantly dua ib zaug.  Nws zoo li zoo li cov nuj nqi rau Microsoft mus nrog tus mix weird.  Nws muaj ib tug tsi "no yog ib qho yooj yim, ces wb muab nws"xav rau nws.  Kuv sympathize ntawd, raws li kuv ua kuv tus kheej txhua lub sijhawm.  Project no CodePlex muaj ib Rev ntawm cov zog me ntsis uas yog los ntawm koj lub ItsEasy tso.  Tib lub sij hawm, Microsoft tseem txhawb cov nyhuv "95% ntawm txoj kev" qhov khoom uas muaj pov thawj.  Lawv siv qhov kev ua Mod, tab sis qhov kev ua hloov tsis, Piv txwv.

</kawg>

Subscribe rau kuv blog.

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

CodePlex Project – SP2010 Explorer

Ua ib feem ntawm ib qho ntawm siv zog kawm txoj kev uas tsis muaj qib txog kev SharePoint 2010, Kuv twb tau tsim ib tug "SharePoint Explorer"zoo ntawm cov cuab tam.  Lub tswv yim tsis yog tshiab.  Kuv siv tau qhov project no ntau tshaj ib zaug: http://sharepointexplorer.codeplex.com/.  Kuv lub tswv yim no yog tsim muaj SharePoint version uas siv txuas nrog qhov chaw web site qhia txhua tus low-level qhia tias tus kwv qauv yuav muab tau. 

Pab raws no cov ncej blog li li ob muaj tshaj peb tes num raws li tus hu tau tuaj pab dawb.  Yog hais tias koj xav ua haujlwm rau project no, qhia rau kuv paub ntawm tug (galvin.Paul@gmail.com) thiab peb mam li ua nws.

Ntawm no yog peb tes num: http://sp2010explorer.codeplex.com/

</kawg>

Subscribe rau kuv blog.

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

SharePoint Designer 2007 Workflow Extensions CodePlex Project

Kuv yuav sau ua ke kuv ob CodePlex project (txhawb kom muab txhaj rau hnub peb lub lim tiam no, Plus lossis rho tawm) thiab kuv twb saib kuv qhov project thawj, "SharePoint Designer Workflow Extensions". Kuv twb ceeb thiab txaj muag mus pom tau hais tias yog tau downloaded dua 4,800 lub sij hawm:

image

Tsis nco yeej qab txog qhov project no nyob hauv lub xeem 12 lub hli. Kuv txaj muag vim kuv muaj twj abandoned nws.

Kuv yuav muaj lwm saib thiab nco kuv txog dab tsi nws yog txhua yam hais txog.

Yog leej twg xav ua hauj lwm los ntawm qhov no, qhia rau kuv paub thiab peb mam li saib txog collaborating rau. 4,800 downloads tsis yog ib tus nqi giant, tiam sis nws tseem ntau tshaj li qhov kuv tau pom tau hais thiab nws los yog tej zaum siv zog tos nws thiab nqa rau pem hauv ntej.

</kawg>

Subscribe rau kuv blog.

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

Export-SPWeb qhia kuv "InvalidData” Tab sis, cov ntaub ntawv no Valid

Kuv yog in the process of sau tau ib tsab xov xwm no rau cov neeg nyob zoo www.sharepointbriefing.com thiab nws yuav deploying rau ib daim ntawv los ntawm ib tus neeg ua liaj ua teb txoj kev loj hlob mus rau ib tus neeg ua liaj ua teb ntau lawm.  Kuv tseem ua accustomed rau koj siv cov stsadm thiab xav tau lov tus cwj pwm, raug rho tawm no, kuv haujlwm txog lub SharePoint 2010 Kev tswj cov plhaub thiab ua si ib ncig uas siv Export-SPWeb mus ua backup kuv sau.  Cas ib feeb nyuaj uas proved tau!

Kuv khaws tau qhov no yuam kev:

image

Qhov yuam kev, "InvalidData: (Microsoft.Share...CmdletExportweb"") tug uas kuv.  Kuv yuav nyob ntev npaum li cas kuv struggled nrog qhov txaj muag.

Kuv twb muaj khiav mus ua ib lub phab ntsa nrog PowerShell thiab muab stsadm kom tau ib ncig nws.  Kuv sim nws dua no lub sij hawm thiab kuv tau mus kev tau zoo.

Kuv siv sij hawm fiddling nrog lub –Identity xaiv ntau thiab ntawd los thaum kawg nrog –ItemURL.  Nws puv ntawm cov kev xaiv ItemURL kom ib daim ntawv qhia txog kab ntawm daim ntawv teev/qiv koj  xav export tsis muaj ntawm http://neeg rau zaub mov ntsis.  Li ntawd, txawm tus fact lub keeb neeg cav taw mus rau ib subsite, tus ItemURL yog ntu ntawm taw tsis tab sis ntu hauv qhov chaw sau ntawv.

Nws yuav tau zoo rau lub cmdlet qhia rau kuv paub yog dab tsi txhob siv tau (cov neeg nyob rau hauv cov ntaub ntawv no) thiab ua li cas yog invalid (ItemUrl).  Tej me kev touches pab neeg khaw cov khoom.  Tsis muaj loj ding tiv thaiv SharePoint, but a little one at least 🙂

Hopefully no ncej yuav tseg tau ib tug neeg me ntsis kev tu siab yav.

</kawg>

Subscribe rau kuv blog.

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

Ua hauj lwm nrog cov TreeNodeBinding hauv lub ASP.NET Treeview Control

Kuv twb tau ua hauj lwm rau dab tsi kuv vam yuav muaj sai-tso CodePlex teg num npaaj zoo integrated me ntsis ntawm cov Web site qhov neb sib tham tsis tau ntawm tus neeg zov me nyuam los muab siv sib txuas lawv kawm ua ib qhov chaw SharePoint nyob rau hauv daim npog.  (Qhov no yeej tau tau ua ntej, tab sis qhov no yog kev kawm project ntau li ntau dabtsi ntxiv).  Qhov no yog meant yuav ib daim tuaj hloov rau lub qhov rais explorer saib ntawm SharePoint 2010 daim ntawv qiv.

Cov cai no muaj li ib txwm recursive hu mus rau nram lub SPWeb thiab SPLists tus zauv pib taw tes.  Cov kwv yog cov ntawd traversing leem tus hlua XML uas zoo li tej yam zoo li no:

<sitecollection url =’http://demo2010a:9090′>
 
<Web site
     Title = 'Nyob zoo ntiaj teb Sandbox' 
     Template =' tus kawm ntawv nrog ceev nrooj miv, sau, thiab muab lus qhia, BLAH BLAH BLAH'>

     <sau
        Title ='BCC_Health_Services_FAQs’
        Template ='CustomList’
       
listid =’http://demo2010a:9090/helloworldsandbox[delim]1e02b001-3cb2-4f17-b63d-7809e86b4174′>
    
</sau>

     <sau
        Title = 'BCC_Notifications' 
        Template = 'CustomList' 
        listid =’
http://demo2010a:9090/helloworldsandbox[delim]5a5a13d1 - 877c - 41c 0-9063-b9612be80d5e’>
     </sau>

  </Web site>

</sitecollection>

Kuv mam los ntxuav tu uas XML ua ntej txhua yam yog hais thiab ua.

Kuv xav kom thaum kawg tau cov lus qhia ntawd mus thiab mus ua tus Treeview tswj.  Tsis raws nraim earth shattering khoom.

Kev xwb yuab kuv muab rau koj yog coj mus cuag cov ntoo pom los tiv thaiv XML tej ntaub ntawv los siv manually tsev li kuv treenodes raws li kuv traverse rau tsob ntoo.  Kuv puas no tej vim kuv tabtom txhob txwm tshaj tawm ua tej yam nyuaj rau kuv tus kheej (qhov no nws yog ib qhov project rua suav) thiab tej vim kuv muaj qhov vague notion uas tsev nce ntoo o li tsob ntoo traverse kuv tsis yog ib lub tswv yim zoo rau lub sij hawm ntev.

Qhov teeb meem nrog cov kauj yog tias cov Treeview tswj tsis paub txog qhov zoo muab rau hauv cov ntshav nthuav xws li "sau" los yog "Web site" kom nws pom tias cov zis no los vim:

 

image

Yog tsis pab.  Qhov no yog qhov chaw rau cov hoob kawm TreeNodeBinding pab.  Kuv siv tau qhov no qhia rau cov tswj Treeview li cas yuav tsum txhais rau XML.  Ntawm no yog ib qho piv txwv:

tnb = TreeNodeBinding tshiab();
tnb.DataMember = "sau"; // Qhov no nws yog cov ntawv sau nyob hauv lub xml rau ib qhov chaw.
tnb.TargetField = "listid";
tnb.ValueField = "title";
tnb.ToolTipField = "Template";

No losis tswvyim dabtsi qhia rau treeview tias thaum nws pom ib tug <sau> ntawm nyob rau hauv cov XML, siv cov nabkaus rau TargetField, ValueField thiab ToolTipField.  Nyob hauv ntuj app, cov map raws li nram no:

  • TargetField: Thaum ib tug neeg clicks nyob rau ib cov nqi ntawm, qhov no yog koj yuav tau dab tsi rau SelectedNode.Value.  Yog li no tsis yog tsis meej pem nrog...
  • ValueField: Qhov no yog dab tsi koj xav qhov Treeview los tso saib kom tus neeg siv.
  • ToolTipField: Tus nqi ntawm cov XML uas koj xav ua ib Tooltip.

Ntxiv tias TreeNodebinding ntoo pom cov DataBindings thiab koj tau output li no:

 

image

Kuv mam muaj ntau rau txhua yam no ntxiv rau peb tes num thiab nws thiaj li muab qhov no rau Codeplex.

</kawg>

Subscribe rau kuv blog.

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