Tej yam kev cai workflow SPD — txoj hlua manipulation enhancements

Txog li ib lub lim tiam dhau los, Yog li ib qhov project codeplex uas muab ib tug yooj yooj yim thiab tubntxhais generic txujci rau kev ntxiv kev cai ua zog los workflow SharePoit Designer. Nws tseem nyob ntawm no: http://www.codeplex.com/spdwfextensions. Tshaj ntawd tsuas muab lub moj khaum, aims nws kuj muab kev pab tau nws qhov kev siv uas yuav ua rau SPD ntau pab/yooj ywm/haib txheej.

Nov yog qhov tam sim no lawm nta rau version 1.0: https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=spdwfextensions&ReleaseId=8280

Yog leej twg muaj npe rau qhov project no, thov cia ib tug saib los pib/ntxiv rau ib tug tham ntawm no: http://www.codeplex.com/spdwfextensions/Thread/List.aspx

Ntawm no yog qhov txheej tam sim no tso cai muaj lawm coded (Txawm siab tsis tau kuaj li ntawm 11/08/07):

Muaj nuj nqi Hauj lwm lawm (Yog hais tias tsis tib yam li muaj nuj nqi .net)
Num nkag() Tus nab npawb "nkag rov qab los" nyob rau hauv ib txoj hlua as per ib daim kev cai tswjhwm delimiter.

Piv txwv: Num-nkag rau hauv ib txoj hlua "ib,b,c" nrog delimiter"," = 3.

Nkag() Cov nth token rov rau hauv ib txoj hlua as per ib daim kev cai tswjhwm delimiter.
Ntev String.Length
Hloov() String.Replace()
Muaj() String.Contains()
Rov lo lus "tseeb" los sis lo lus "tsis tseeb".
Substring(pib) String.Substring(pib)
Substring(pib,kawg) String.Substring(pib,kawg)
ToUpper() String.ToUpper()
ToLower() String.ToLower()
StartsWith() String.StartsWith()
Rov lo lus "tseeb" los sis lo lus "tsis tseeb".
EndsWith() String.EndsWith()
Rov lo lus "tseeb" los sis lo lus "tsis tseeb".

Ceev & ib qho yooj yim url Encoding duab company

Hu ua kuv twb tau deductible url-encode tej cov hlua no lub limtiam thiab nplawm ua ke ib me ntsis dej uas kuv xav tias kuv yuav muab rau SkyDrive rau hauv lub zej zos.

Tau lub binary no: http://cid-1cc1edb3daa9b8aa.skydrive.live.com/self.aspx/SharePoint/WinUrlEncode.zip

Tau siv qhov muag saib lub studio muab ntawm no: http://cid-1cc1edb3daa9b8aa.skydrive.live.com/self.aspx/SharePoint/WinUrlEncodeVS2005.zip

Ntawm no yog ib qho screen txhaj:

duab

Txoj kev sai thiab yooj yim: Embed ib hyperlink rau hauv tej ntaub ntawv saib web Tshooj XSLT

HLOOV TSHIAB (01/17/08): No nkag teb chaws hauv blog hais txog ntau hyperlink XSL siab zoo: http://www.sharepointsecurity.com/blog/sharepoint/sharepoint-2007-development/rewriting-links-in-search-results-xslt.

Txheej txheem cej luam thiab lub hom phiaj: Kuv tau tsim ib yooj yim bar daim ntawv kom tswj tivthaiv rau ib dashboard. Kuv yuav txuag kom paub meej txog tsev kab kos rau ib qho, tab sis, kuv tsis tau txua tus txheej txheem (los yog cov lus nug kos, rau qhov teeb meem ntawd). Nws muab tau ib kab nyob rau ntawm daim ntawv thiab thaum kuv tas uas muaj, Kuv muab lub hwj tsam los mus hloov tej daim ntawv lo rau hauv hyperlinks uas taw tes qhia rau lwm daim ntawv qab cov teeb. Piv txwv, muaj ib daim ntawv lo nrog tus nqi "Tuav". Kuv xav mus dhau los ntawm daim ntawv lo ua ib hyperlink kom tus neeg siv yuav tau nyem rau ntawm nws thiab tho coj mus rau kev nkag rau hauv daim ntawv uas tus nqi raws li txoj cai yog "Puag".

Ruam:

  1. Siv kev studio rau sharepoint-paub intellisense.
  2. Luam rau DVWP XSLT rau studio nrig txog kev pom (tsim ib qhov dawb paug project, ntxiv ib cov ntaub ntawv XSL rau peb tes num).
  3. Copy qhov link koj yuav siv tau rau hauv cov ntawv los teev cia.
  4. Paste rau hauv qhov chaw zoo nyob rau lub XSL.
  5. Hloov ua lwm yam URL cav separators rau cov lus nug txoj hlua ntawm"&" mus"&"
  6. Url-encode ib tug neeg lus.
  7. Muab qhwv rau ntawd hauv ib <ib tug href…> </ib tug>

Piv txwv:

Kuv muaj ib tug URL:

http://[neeg rau zaub mov]/[kawm ntawv]/Lists/Open Positions/AllItems.aspx?Pom ={84EEA2F5-121B-40B7-946F-0FA704A1DAA1}&FilterField1 = Recruiter&FilterValue1 = tuav

Kuv yuav hloov rau nws:

     <ib tug href="Lists/Open Positions/AllItems.aspx?Pom = % 7b84EEA2F5-121B-40B7-946F-
0FA704A1DAA1 %7 d&amp;FilterField1 = Recruiter&amp;FilterValue1 = tuav"> Tuav: </ib tug>

Kuv manually transformed thawj sib cav los:

{84EEA2F5-121B-40B7-946F-0FA704A1DAA1}

mus:

%7b84EEA2F5-121B-40B7-946F-0FA704A1DAA1 %7 d

(Nyob rau hauv no, transforms brace qhib rau % 7b thiab kaw brace transforms mus %7 d)

Nqe lus thib ob thiab peb’ tsis ("FilterField1 =Recruiter" thiab "FilterValue1 =Tuav" feem) tsis xav url encoded vim lawv tsis muaj kev tsis zoo kev cim.

Sau ntawv:

Cov txheej txheem no yuav tsum tau feem ntau haujlwm nyob txhua qhov chaw uas koj xav kom ib tug hyperlink embed nyob qhov twg cov hyperlink muab tsis tau rau hauv qhov URL xws li XSLT:

http://[neeg rau zaub mov]/[kawm ntawv]/Lists/Open Positions/AllItems.aspx?Pom ={84EEA2F5-121B-40B7-946F-0FA704A1DAA1}&FilterField1 = Recruiter&FilterValue1 = tuav

Kuv tau txais qhov URL nws tus kheej ntawm tus txheejtxheem ntawm kev cai sau thiab manually filtering rau sab pej xeem Mes Kas (labeled "Recruiter" saum toj).

Yooj yim thiab ceev thaum: Pab kom cov SharePoint Designer workflow los mus hloov ib cov ntawv InfoPath

Scenario: Kuv muaj ib daim InfoPath ntawd hauv ntej-hnub tau neej DVR siv SharePoint Designer workflow. Rau ib kis, ib tug neeg saib xyuas yuav tsum pom zoo rau tsab ntawv. Lawm kuv yuav tsis suav rau yav tas los workflow kom tau raws li kuv tus auditing yuav tsum, Kuv txiav txim siab yuav muab kuv cov lus uas koj auditing cia rau hauv daim ntawv xwb.

Txheej txheem cej luam:

Tsim muaj rau tsab ntawv thiab luam tawm tsab nws lub yog ib cov hom thiab nws tus kheej mus rau lub tsev qiv ntawv hauv daim ntawv. Kos qhov kev kawm ntawv daim ntawv teb yog ib tug updateable NTXHUAB. Daim ntawv tied rau cov hom thiab cov hom "txuas" mus rau lub tsev qiv ntawv ntaub (los ntau, yog koj xav). Sau ib cov workflow uas siab teb.

Ib ruam:

  1. Ua ib daim ntawv qiv. Qhov no yuav tau tuav koj InfoPath template.
  2. Tsim ib tug ntawv qiv.
  3. Tsim daim InfoPath. Muaj ib daim teb ntawv nyeem, "Tshawb lus".
  4. Luam tawm tsab ntawv ua ib yam uas koj kawm ntawd (TSIS muaj ntaub ntawv).
  5. Thaum uas sau teb cov dialogs publishing:
    ib tug) Txuag cov .xsn ua ntaub ntawv thov mus rau lub tsev qiv ntawv hauv daim ntawv (kauj ruam #1).
    b) Luam tawm tsab "Audit hais" teb thiab kos yeej muaj tseeb: "Cia cov neeg los kho kom raug cov ntaub ntawv nyob hauv daim teb no thaum uas siv cov datasheet los yog khoom phab".
    c) Ua kom muaj txheej ib yam tshiab thiab muab nws ua ib lub npe uas tsim nyog.
  6. Saib tau cov ntaub ntawv qiv.
    ib tug) Mus rau hauv tej chaw nws txawm zoo thiab pab tau cov tsev qiv ntawv cov ntaub ntawv uas tswj cov hom.
    b) Xaiv cov hom tshiab khiv created (5c saum toj no). Nws yuav tsum tau grouped nyob rau hauv "Microsoft InfoPath" (lossis zoo).
    c) Tshem cov default "daim ntawv" cov hom los ntawm lub tsev qiv ntawv.
    d) Suam saib koj lub tsev qiv ntawv "qhia raws li cov qhov web page" ua daim ntawv yuav tua tawm los ntawm SharePoint thiab tsis tus InfoPath workstation neeg.
  7. Rov qab mus rau hauv cov tsev qiv ntawv kom zoo thiab nias rau "New" kom tsuas muaj tseeb hais tias daim ntawv no muab lo kom raug thiab kuj raws li koj xav.
  8. Hluav taws tuaj SharePoint Designer thiab next lub site hosts koj lub tsev qiv ntawv uas yog daim ntawv (los ntawm cov kauj ruam 2).
  9. Tsim ib tug tshiab workflow uas txuas mus rau lub tsev qiv ntawv ntaub.
  10. Ntxiv ib tug nkaus nkaus xwb "Laij teb rau tam sim no yam". Koj yuav tsum npaj muaj SharePoint Designer daim ntawv teev koj nyob nraum koj thaj teb, "Tshawb lus". Cob nws muaj nqis.
  11. Nyem tag thiab rov qab mus rau lub tsev qiv ntawv hauv daim ntawv.
  12. Tsim ib daim ntawv tshiab thiab yuav muab qee tus nqi kuaj no mus rau qhov "Audit xov" teb.
  13. Txuag cia thiab rov qab mus rau lub tsev qiv ntawv hauv daim ntawv.
  14. Right-click, xaiv "Workflow" thiab pib nce koj workflow.
  15. Nws yuav tsum khiav tam sim ntawd yuav luag. Rub tau tsab ntawv (los ntawm cov kauj ruam 12) thiab yog hais tias tag nrho cov tau ncaim mus npaj, "Tshawb xov" muaj nyiaj no txawm tus nqi uas koj pab nyob rau theem 10.

Sau ntawv:

Tsis yog txhua yam ntawm lwm yam uas yuav configured kev no sib tham lis-directional. Piv txwv, nws tsis zoo li kev ua SPD workflow uas yog modifies ntawv teb qhwv hauv rov khej.

Ib qho ntawm qhov tseem ceeb mus-lawm tus no yog tias peb twb yeej tsim ib yam cov uas muaj tus mob template. Qhov no tseem enables peb khaws cov ntau InfoPath daim ntawv templates nyob rau daim ntawv qiv tib.

Qhov no yuav tsum tau cov ntaub ntawv neeg rau zaub mov. Nws yog feem coob yeej tsis mus ua hauj lwm hauv ib WSS 3.0 ib puag ncig thiab tej zaum kuj yuav tsum ua lub chaw Enterprise SharePoint.

Cov Beagle muaj Landed (Lub Kaum hli ntuj 2007 qhov teeb meem)

(Qhov no yog ua tau me ntsis laus xov xwm, tab sis raws li kuv lub chaw nres tsheb tua hluav taws nyiam motto proclaims, "Zoo lig tshaj yeej tsis").

Xyuas no: http://www.sharepointbeagle.com/

Yog hais tias koj twb tsis muaj, Nco ntsoov cuv npe.

tau mas, Nco ntsoov nyeem kuv tsab xov xwm hais txog ib tug yog ib qhov SharePoint qhov tseeb (nrog rau cov ntawv yuav tsum txhais, Lub KPI, cov hom, dashboards thiab tshaj) li well li Kuv colleague tsab xov xwm hais txog cov lus nug qhov web ib sab.

Muaj ntau ntau lwm yam khoom uas koj zoo heev.

Tshem li cas “Saib tag nrho cov ntawv kawm ntawv” txuas

Kuv yuav nug txog lo lus nug no yuav luag txhua lub limtiam, feem ntau nyob hauv cov ntsiab lus teb uas muaj kev ruaj ntseg kev sib sab laj. Tus neeg khiav dej num/chaw creator tau provisioned ib tug kawm ntawv, configured ruaj ntseg, web txheej txheem ntawm qhov chaw thiab cov Mekas lub community launch ceev ntawv ntawd teeb huag-li-tag nrho cov kev xaiv kom tus neeg siv tag. Tab sis npog, mus rau ntawm lub box, koj yuav tsis tshem cov "saib tag nrho cov ntawv kawm ntawv" txuas.

Mark Wagner muab cov lus teb ntawm no (http://www.crsw.com/mark/Lists/Posts/Post.aspx?ID=36). Nws tus write-up no zoo kawg li rau theem ob. Nws qhia txog kev yuav teb kom tau cov lus nug, "Cas ua kuv tshem cov saib txhua qhov chaw cov" txuas? Ces, nws teb cov lus nug follow-on tam sim: Pab li cas yuav ua kuv yooj yim kom tus saib tag nrho cov ntawv kawm ntawv txuas ntawm ib qhov chaw uas-qhov chaw?

Raws li ib tug lawm: Nws mus kom ze rau cov WSS xwb, tsis yog NTXHUAB.

</kawg>

Subscribe rau kuv blog!

Kuv tus kheej heev CodePlex project: Workflow extensions rau SharePoint Designer

HLOOV TSHIAB: Saib ntawm no (http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!310.entry) rau qhov latest rau qhov project no.

Kuv tsim muaj CodePlex hnub no mus rau lub tsev cov Generic SPD interface qhov project code ntawd kuv blogged txog ntawm no (http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!275.entry).

Muaj ib tug saib ntawm no (http://www.codeplex.com/spdwfextensions) mus xyuas lub CodePlex qhov project thiab ncaws cov log tsheb.

Yog hais tias koj xav ua hauj lwm hauv no nrog kuv, hluav taws yuav tawm ib tug nyob mailto:galvin.paul@gmail.com

SharePoint Designer — Kev ua kev cai rau txim tuag neeg txhais C# zog

HLOOV TSHIAB: Qhov no muaj lawm tso rau CodePlex no: http://www.codeplex.com/spdwfextensions

HLOOV TSHIAB: Ntawm no saib tseeb sau ntawv tso lus muab tawm rau cov: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry

HLOOV TSHIAB: Saib ntawm no kuv xav nyob commercializing qhov project no: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!569.entry

No yog ib qhov kev ib yam kev cai rau hauv SharePoint Designer. Siv txoj kev kev cai no yuav ua tau rau tus (dispatch) tej C# ua haujlwm uas koj ua tus los ua ke linked incorporated.

As of pib lub kaum hli ntuj, 2007, qhov no yog ib qho pib version ntawm qhov kev tsim. Kuv yuav nthuav nws muaj ntau zog ntxiv, xws li substring, Performance Index, hloov, invoking web kev pab thiab tej yam uas rau nkawd pab tau los nthuav. Kuv tseem npaj rau rooj vag qhov no rau codeplex thaum kuv muaj kuv cov cai ua ke rau hauv ntej ntawd. Qhov no kuj yuav deployable ua tus muab ntawm tej taw tes.

Yog hais tias koj muaj tej lus, yog muaj lus nug lossis tswv yim, thov koj cia rau hauv cov lus los yog email rau kuv.

Disclaimer:

Kuv yuav tsis thov kiag li raws li kev ntsuam no rau txhua lub hom phiaj. Siv koj tus kheej ntxim.

Installation ua ruam (yuav tau ua rau txhua tus WFE hauv lub teb):

1. Download tau lub .zip thiab extract.

2. Nruab ib lub .dll rau lub GAC. Kuv mas qhib c:\windowsassembly siv qhov rais explorer thiab daim ntawv nws muaj.

3. Hloov web.config ntxiv rau los ua ke los ntawm lwm yam uas zoo:

<System.Workflow.ComponentModel.WorkflowCompiler>
<authorizedTypes>

<authorizedType los ua ke = "SpdGenericInterface, Version = 1.0.0.0, Culture = nruab nrab, PublicKeyToken = abe076fd8125f3c4" Namespace = "Nivlag" TypeName = "*" Tso cai = "tseeb" />

4. Daim ntawv "SpdGenericInterface.actions" mus C:\Qhov kev pab cuam FilesCommon FilesMicrosoft Sharedweb neeg rau zaub mov extensions12TEMPLATE1033Workflow

Nco ntsoov tias ntawm qhov chaw nyob saum toj no yog hais rau cov kawm lus Askiv cov lus sib.

5. Kaw SharePoint Designer (Yog hais tias nws twb qhib).

6. iisreset

7. Qhib cov SPD thiab tsim tau ib cov workflow tshiab.

Yog hais tias txhua yam mus zoo, koj yuav tsum tau rewarded rau ib qeb kev tshiab:

duab

Sau ntawv:

Saib ntawm no (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) rau ib tug paub cov txheej txheem kev tsim zoo kawg li, txhim kho thiab configuring tov nyiam qhov no.

Tus .zip yog tsim extract ncaj qha tuaj rau koj c:\ tsav. Yog koj ua li no, koj tuaj yeem yuav qhib tau lub qhov project thiab tag nrho cov paths yuav zoo ib yam.

Qhov no siv rau studio nrig txog kev pom, tej zaum koj yuav nruab "Extensions rau qhov rais WF".

Tus upload thawj zaug muaj ib tug "dispatcher muaj nuj nqi", "ToLower()". Ntxiv dua functionality, ntxiv ntawd mus nug Execute li:

 kev tiv thaiv override ActivityExecutionStatus
          Txim tuag(ActivityExecutionContext executionContext)
        {

            hlua functionToDispatch;
            functionToDispatch = qhov no.DispatchFunction.ToLower();

            hloov (functionToDispatch)
            {
                rooj plaub no "tolower()":
                    {
                        qhov no.OutResult1 = qhov no.InParam1.ToLower();
                        tawg;
                    }

                neej ntawd:
                    {
                        qhov no.OutResult1 = "Tsis paub hais tias muaj nuj nqi: [" + qhov no.DispatchFunction + "].";
                        tawg;
                    }
            }

            rov qab los ActivityExecutionStatus.Kaw;
        } // ActivityExecutionStatus

    }

Ces, rov ua peb tes num thiab luam cov los ua ke rau lub GAC. Kuv cia siab tias tus iisreset yuav tsum.

SPD Workflow kev cai txiav txim – muab rau <WorkflowInfo> txoj cai lossis tsis txhob siab

Ib feem ntawm txoj kev tsim cov kev cai teem ib lub caij txiav txim rau cov SharePoint Designer yuav tsim tau ".actions ib" cov ntaub ntawv.

Kuv twb pom thiab sim siv tus qauv template uas pib tawm:

<?xml Version="1.0" encoding="utf-8" ?>
<
WorkflowInfo xmlns="http://schemas.Microsoft.com/sharepoint/">
<
Tej yam Tshwm sim los muaj="ces" Mus tib seem="thiab">

Txawm li cas los, tus xmlns attribute tsis pub kuv ib puag ncig ntawm kev ua hauj lwm. Tej yam kuv tsis tshwm nyob rau hauv SPD.

Cov tshuaj no yog strip tawm lub xmlns attribute, ua ib iisreset thiab kaw/re-open SPD.

Yooj yim thiab ceev thaum: Configure NTXHUAB mus nrhiav ib lub tsev qiv ntawv uas yog tej qho ntaub ntawv

Saib hloov tshiab (KUV) hauv qab (11/24/07) rau Yuav ua li cas rau Configure tus neeg rau zaub mov SharePoint Microsoft Office 2007 Index thiab nkag Folders Network nrhiav

Hom phiaj: Kuv xav kom koj coj mus nrhiav ib tug txwv rau ib daim ntawv muab qiv. Qhov no, cov tsev qiv ntawv hauv daim ntawv ntawv muaj cov ntaub ntawv cob qhia.

Ruam:

1. Sau qhov URL ntawm lub tsev qiv ntawv hauv daim ntawv.

2. Tsim ib cov uas:

Central coj mus.

Cov neeg siv cov SSP.

Mus rau qhov "Nrhiav chaw".

Scroll coj mus rau cov nqe uas tus tau txais thiab xaiv "Saib Scopes".

Ua kom muaj ib tug tshiab uas. Muab ib lub npe thiab pab tau hauj lwm lawm.

3. Txhais kom meej uas tus tau txais kev swb cai:

Ntxiv ib txoj cai uas tau nyiaj thiab cov tsev qiv ntawv cov ntaub ntawv rau qhov uas lub sij.

Xaiv "web address" rau "Uas txoj cai tswj tej".

Sau lub npe ntawm koj ceev (saib #1 saum toj).

Yuav tsum ua lub neej ntawd txog tus nqi "Muaj".

Tos tus uas los mus hloov (los yog pib manually).

4. Pab kom cov uas nyob rau hauv ib qhov chaw sau ntawv.

Mus rau qhov chaw sau qhov uas koj xav mus siv no yuav tau.

Ntxiv koj cov tshiab uas tsim nyog zaub ib pab los yog ib pawg.

5. Nrhiav!

Thaum no tus taw tes, koj thiaj nyob nraum. Piv txwv tias yog tus uas muab txhais, nws yuav tsum muaj nyob hauv lub scopes nco downs rau luag tshawb tej yam yooj yim thiab siab heev thiab thaum koj mus nrhiav siv ntawd tau, koj nyuam qhuav tau koj thiaj xav tau.

Sau ntawv:

Kuv thiaj sau qhov nkag teb chaws blog no vim kuv luag tshawb kom tau yooj yim teeb nres tsis qhuav uas siv nqe lus nyiam:

  • configure scopes nyob hauv NTXHUAB
  • configure tshawb tau ntxhuab
  • scopes hauv sharepoint 2007
  • scopes hauv sharepoint
  • mus nrhiav tau ib daim ntawv qiv ntxhuab
  • scopes primer ntxhuab

Koj muaj peev xwm tsim ib tug mus nrhiav tau rau ib lub tais ceev tseg, tsis yog cov ntaub ntawv rau tag nrho tsev qiv ntawv.

Tus uas tau muab qhia tawm nyob ntau qhov chaw collections (li no, ib "sib pab").

Koj muaj peev xwm tsim cov uas nyob qhov chaw sau nws tus kheej. Txawm li cas los, Kuv xum mus admin hab txhawb vim kuv yuav pib tus swb los yeej muaj. Koj tsis tau pib cov nkag los rau ntawm qhov sau los ua qhov chaw.

HLOOV TSHIAB (KUV) li ntawm 11/24/07:

Kai Shang muab tso ua ke ib qho zoo kawg thiab txoj cai Yuav ua li cas rau Configure tus neeg rau zaub mov SharePoint Microsoft Office 2007 Index thiab nkag Folders Network nrhiav @ http://kaishenghoo.spaces.live.com/blog/cns!8A7458DB12CA5AC9!206.entry

Ntawv cim npe Technorati: , ,