Qeb Archives: SharePoint Development

Ua zoo dev tom rhuav kev hloov mus ItemStyle.xsl

Kuv twb ua hauj lwm nrog cov ItemStyle.xsl los customize zoo rau ib cov lus nug qhov Web Tshooj thiab cov cai hais txog cov sij hawm noj su, Kuv ua tus coj thiab hloov mus rau lub xsl. Kuv tsis twb paub lawm tias, tab sis, qhov no tau deb xeeb los thoob plaws hauv qhov chaw sau los. Kuv mus noj su thiab raws li thaum kuv xa, pom txoj xov hauv ib Rev qhov chaw:

Tsis tau tso saib cov Web site qhov no. Kom troubleshoot qhov teeb meem, qhib qhov Web page ntawm lub qhov rais SharePoint Services-compatible HTML editor xws li Microsoft Office SharePoint Designer. Yog hais tias teeb meem mob tsawv, hu rau koj lub Web neeg rau zaub mov khiav.

Tus neeg blamed kuv (tsis realizing tau tias nws yog kuv cov txhaum nyob txij no) tab sis, nws thiaj li pom tias kev studio intellisense yog lus ceeb toom kuv tias kuv muaj malformed XSL. Ho kuv thiab txhua yam pib ua hauj lwm.

Ceev faj darned thaum ua hauj lwm nrog ItemStyle.xsl (thiab tej ntaub ntawv XSL txhua lub ntiaj teb no) — rhuav lawv raug ntau artifacts nyob rau hauv qhov chaw sau ntawv.

<kawg />

Teeb rooj txheej Query Web site qhov ntsiab hauv ib ib daim phiaj / Lub rooj

Txheej txheem cej luam thiab lub hom phiaj

Mus rau ntawm lub box, NTXHUAB’ Cov lus nug qhov Web Tshooj (CQWP) nws tau qhia nyob rau hauv ib daim ntawv teev hom, zoo li mus nrhiav tau. Nws tseem tau los tso saib qhov txheeb xyuas tau ib daim phiaj hom ntawv (i.e. Hom ntawv rooj HTML). Yog tawm tswv yim daim phiaj rau tej yam zoo. Kuv piav li cas after ntawd nyhuv hauv no Tshooj.

Lag luam Scenario

Kuv tau ua hauj lwm nrog ib tug neeg rau ib tug thoob plaws enterprise NTXHUAB rollout. Peb muaj tsim lawv taxonomy xws tias tej yaam num yog thawj class pej xeem nyob hauv lub hierarchy thiab muaj nyias qhov chaw saum theem. Yog ib qhov tswj khaws ib daim ntawv teev singleton uas yog ib qhov kev qhia, xws li lub npe, nyiaj txiag, cov kev tsim tiav tas hnub, nyiaj ntxiv thiab lwm yam kev teb. Yog "singleton" Kuv yog ib tug kev cai SharePoint sau guaranteed tau muaj cov yam khoom no tsuas muaj ib. Simplistically, nws zoo li no:

duab

Txoj kev mus kom ze yog npaum li cas tau tib yam li koj piav ntawm no (http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!447.entry). Cov CQWP siv ib XSL transform kom emit HTML rau qhov browser mus kav.

Ib txwm kuv envision hom kab mob qhov tshwm sim ua ntej nyiab loj mus rau lub XSL vim XSL yog ib tug npau suav phem. Ntawm no yog kuv yam tshwm sim:

duab

HTML li no generates uas raug:

<html>
 <lub cev>
 <chaw>
 <cov lus ciam teb= 1>

<!-- Hmong-->
 <tr bgcolor= xiav>
 <Td><Font xim= dawb><b>Qhov project Name</b></Font></Td>
 <Td dlhos= txoj cai><Font xim= dawb><b>Sau rau hnub tim</b></Font></Td>
 <Td dlhos= txoj cai><Font xim= dawb><b>Nyiaj txiag</b></Font></Td>
 <Td dlhos= txoj cai><Font xim= dawb><b>Cov nqi</b></Font></Td>
 <Td><Font xim= dawb><b>Zuag qhia tag nrho cov txheej xwm</b></Font></Td>
 </tr>

<tr>
 <Td>Rov wire computer chav.</Td>
 <Td dlhos= txoj cai>02/01/08</Td>
 <Td dlhos= txoj cai>22,500.00</Td>
 <Td dlhos= txoj cai>19,000.00</Td>
 <Td>Dauv</Td>
 </tr>

<tr>
 <Td>Ntaub ntawv servers rau SQL Upgrade</Td>
 <Td dlhos= txoj cai>04/01/08</Td>
 <Td dlhos= txoj cai>7,500.00</Td>
 <Td dlhos= txoj cai>0.00</Td>
 <Td>Los</Td>
 </tr>

</cov lus>
 </chaw>
 </lub cev>
</html>

Mus kom ze

Ua raws li cov kauj ruam yuav tsim tau rau daim phiaj:

  1. Taw rau Cheebtsam ntawm hauv daim phiaj (natwm/txhua).
  2. Txhais kom meej thiab tsim nyog kawm ntawv txhua.
  3. Tsim cov chaw sub rau qhov tej yaam num thiab singleton npe.
  4. Ntxiv ntawm CQWP mus rau ib qhov web page thiab configure mus nrhiav koj lub npe.
  5. Hloov cov CQWP XML sau mus rau txhua yam.
  6. Hloov tus XSL yuav ua tau kom muaj ib lub rooj.

Kuv yuav mloog zoo hauv tus xovtooj rau. Ib ntawm plaub numbers ncaj nraim thiab tej yam uas muaj neeg siv CQWP twb tau. Naj npawb 5 lawm documented zoo los ntawm lwm tus xws li no exhaustive txhaj tshuaj ntsuam laden Tshooj ntawm MSDN ntawm no (http://msdn2.microsoft.com/en-us/library/bb897399.aspx) thiab Heather tus Xatau-ntoos lub blog ntawm no (http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx).

Ceev And Bolts

Pib thiab kev nrhiav ib tug los ntawm as per rau cov ntaub ntawv MSDN thiab Heather tus Xatau-ntoos lub Tshooj tsib.

Thaum no tus taw tes, koj twb ua ntxiv koj CQWP mus rau sab thiab koj muaj koj <CommonViewFields> configured li tsim nyog.

Raws li cov kauj ruam li ib txwm, Kuv txais tau kev kuaj intermediate:

1. Tsim ib cov hom, templatized kev cai sau ntawd cov hom thiab ob qhov chaw. Ntawm no yog cov hom:

duab

Ntawm no yog qhov chaw qauv:

duab

2. Ntxiv rau qhov CQWP tom qab tsim kuv ib qhov subsites thiab singleton yog ib qhov kev npe:

duab

3. Ntxiv tag nrho cov ntxiv kuv xav tau ntawm cov <CommonViewFields>:

        <khoom lub npe="CommonViewFields" hom="hlua">Project_x0020_Name;Project_x0020_Expenses;Project_x0020_Status;Project_x0020_Start_x0020_Date;Project_x0020_End_x0020_Date;Project_x0020_Budget</khoom>

Ceeb toom tias kuv tau ua kom tag nrho cov cuab yeej teb ntawm ib tug kab los nws yuav tsis ua hauj lwm (CQWP xav qhia kuv tias cov lus nug rov qab tsis khoom).

4. Thaum no tus taw tes, mov kom dhau MSDN tsab xov xwm thiab flip ntawm nyob rau tshooj Heather tus Xatau-ntoos lub. Ua raws li nws cov kauj ruam pib ze rau ruam #5 los ua ib customized / unghosted version of ItemStyle.xsl. Kuv ua raws li cov lus qhia txog tus Heather, saum ntawm cov kauj ruam 11 thiab tau kuaj intermediate:

4.1: Kuv tus XSL template npe raws li nram no:

<xsl:Template npe = "daim phiaj" phim = "tshais[@Style = 'Daim phiaj']" hom = "itemstyle">

Kuv yuav ib nyuag kuj hloov nws pom tias <xsl:rau-ib …> yog muab ib <br /> lossis mus muab tov:

    <xsl:rau-ib xaiv="@*">
      P:<xsl:tus nqi-ntawm xaiv="lub npe()" /><br/>
    </xsl:rau-ib>

4.2: Kuv hloov hauv cov qhov Web site, mus zoo li thiab xaiv daim kuv "phiaj" style:

duab

Ntawm no yog cov siv qhov kev hloov thiab kev pab:

duab

Peb pom tau ntawm qhov saum no uas teb peb xav (Peb tes num lub npe, nqi, xwm txheej, yam) yog muaj nyob rau peb siv thaum peb emit cov HTML. Tsis tas li ntawd, peb pom cov npe uas peb yuav tsum reference cov txhua hauv lub XSL. Piv txwv, peb reference Project txheej xwm li "Project_x005F_x0020_Name".

Thaum no tus taw tes, peb ncaim ntawm Heather tus blog thiab ntawm lub lub xub pwg nyom ntawm no giants, Kuv tus kheej lub ntsis ntxiv kuv.

ContentQueryMain.xsl

CEEB TOOM: Thaum muaj kev hloov rau ob ContentQueryMain.xsl li no ItemStyle.xsl, koj yuav tau xyuas cov ntaub ntawv qaum rau ua ntej koj mus ntsib cov nyhuv koj hloov.

Mus rau daim phiaj vaj, NTXHUAB siv ob yam XSL ntaub ntawv los ua cov ntsiab peb pom los ntawm ib tug CQWP. Meskas tus me ntsis dhau los tso zis ntau lawm, peb hloov ItemStyle.xsl. NTXHUAB yeej siv lwm daim ntawv XSL, ContentQueryMain.xsl yuav nyob tau nrog ItemStyle.xsl Meskas cov HTML. Raws li implies lub npe, ContentQueryMain.xsl yog "loj lub" XSL controls qhov txaus zuag qhia tag nrho cov neeg txhais lus. Nws iterates kev los ntawm tag nrho cov kabmob khoom thiab kis tau ib tug los ntawm ib tug mus templates hauv ItemStyle.xsl. Peb mam li hloov ItemStyle.xsl Meskas tus qhib <cov lus> lossis ua ntej emitting rau thawj kab ntawv thiab kaw <cov lus> lossis tom qab emitting rau kab kawg. Yuav ua kom tiav no, ContentQueryMain.xsl hloov mus rau kis ob tug tsis tau rau daim peb "phiaj" Template hauv ItemStyle.xsl, "lub xeem leej" thiab "leej tam sim no". ItemStyle.xsl siv no rau conditionally emit tus cim npe tsim nyog.

Siv cov txheej txheem Heather tus Xatau-ntoos lub, Peb nrhiav ContentQueryMain.xsl. Nws nyob hauv qhov chaw qub li ItemStyle.xsl. Qhov tshuaj ntsuam txhaj yuav pab:

duab

Peb yuav tau ua cov nram qab no hloov:

  • Hloov ib tus xsl template, "CallItemTemplate" uas tau invokes peb daim phiaj template hauv ItemStyle.xsl. Peb yuav kis tau ob tsis mus rau daim phiaj template kom nws yuav muaj cov ntaub ntawv uas nws xav kom neeg conditionally qhib thiab kaw <cov lus> cim npe.
  • Hloov dua me ntsis uas hu ua "CallItemTemplate lub ContentQueryMain.xsl" yuav kis tau "LastRow ib" parameter kom cov LastRow uas tau kis rau peb cov template daim phiaj.

Nrhiav tus template npe hu ua "OuterTemplate.CallItemTemplate" qhia los ntawm cov hlua:

  <xsl:Template lub npe="OuterTemplate.CallItemTemplate">

Tag nrho cov template hloov raws li nram no:

  <xsl:Template lub npe="OuterTemplate.CallItemTemplate">
    <xsl:param lub npe="CurPosition" />

    <!--
      Ntxiv "LastRow cov" parameter.
      Peb tsuas siv cov khoom style pass hauv yog "Daim phiaj".
    -->
    <xsl:param lub npe="LastRow" />

    <xsl:xaiv>
      <xsl:Thauj tw ntsuam xyuas="@Style = 'NewsRollUpItem'">
        <xsl:thov templates xaiv="." hom="itemstyle">
          <xsl:nrog param lub npe="EditMode" xaiv="$cbq_iseditmode" />
        </xsl:thov templates>
      </xsl:Thauj tw>
      <xsl:Thauj tw ntsuam xyuas="@Style = 'NewsBigItem'">
        <xsl:thov templates xaiv="." hom="itemstyle">
          <xsl:nrog param lub npe="CurPos" xaiv="$CurPosition" />
        </xsl:thov templates>
      </xsl:Thauj tw>
      <xsl:Thauj tw ntsuam xyuas="@Style = 'NewsCategoryItem'">
        <xsl:thov templates xaiv="." hom="itemstyle">
          <xsl:nrog param lub npe="CurPos" xaiv="$CurPosition" />
        </xsl:thov templates>
      </xsl:Thauj tw>

      <!--
              Tshaj xav tam sim no thiab cov lastrow rau ntawm daim phiaj itemstyle.xsl template.
              ItemStyle.xsl yuav siv uas emit rau txoj kev qhib thiab kaw <cov lus> cim npe.
      -->
      <xsl:Thauj tw ntsuam xyuas="@Style = 'Daim phiaj'">
        <xsl:thov templates xaiv="." hom="itemstyle">
          <xsl:nrog param lub npe="CurPos" xaiv="$CurPosition" />
          <xsl:nrog param lub npe="Kav" xaiv="$LastRow" />
        </xsl:thov templates>
      </xsl:Thauj tw>

      <xsl:txwv tsis pub>
        <xsl:thov templates xaiv="." hom="itemstyle">
        </xsl:thov templates>
      </xsl:txwv tsis pub>
    </xsl:xaiv>
  </xsl:Template>

Cov lus qhia txog lub hom phiaj ntawm qhov kev hloov.

tau mas, "OuterTemplate.CallItemTemplate cov" nws tus kheej yog hu los ntawm lwm template. Nrhiav tus template ntawm searching rau qhov ntawv txoj hlua:

<xsl:Template lub npe="OuterTemplate.Body">

Scroll los ntawm cov lus qhia nyob rau hauv OuterTemplate.Body thiab cov LastRow parameter ntxig raws li nram no (qhia raws li ib tug saib nyob rau hauv italics):

<xsl:hu-template lub npe="OuterTemplate.CallItemTemplate">
  <xsl:nrog param lub npe="CurPosition" xaiv="$CurPosition" />
  <!-- Ntxig rau LastRow parameter. -->
  <xsl:nrog param lub npe="LastRow" xaiv="$LastRow"/>
</xsl:hu-template>

Tom qab nov tag nrho, peb thaum kawg muaj yam teeb zoo zoo kom peb cov ItemStyle.xsl muaj emit <cov lus> cim npe rau qhov chaw uas koj txoj kev.

ItemStyle.Xsl

CEEB TOOM: Dua, nyob ItemStyle.xsl kos tom qab hloov yam koj pom cov nyhuv uas cov kev pauv.

Peb muaj tus ob tug paub tab ntawm no:

  • Hloov hauv koj daim phiaj template. Koj tau daim ntawv/muab tshuaj txhuam hauv qab no txij.
  • Ntxiv ib co mumbo jumbo sab nraud lub ntsiab template txhais tias enables "formatcurrency" Template mus ua hauj lwm. (Koj yuav qhia tau tias kuv muaj ib cov neeg kov tenuous XSL).

Ua ntej, ze rau saum ItemStyle.xsl, ntxiv cov kab no:

  <!-- Tej mumbo jumbo uas peb tso saib tuaj enables. txiaj. -->
  <xsl:hom zauv lub npe="cov neeg ua haujlwm" ntiv="D" />

  <xsl:Template lub npe="Neej ntawd" phim="*" hom="itemstyle">

Faj seeb txog tias kuv ntxiv tias yuav ua ntej mus ncaj rau <xsl:Template npe = "Default" …> txhais.

Tom ntej, rov qab mus saib peb daim phiaj template. Menyuam mos liab cov daim phiaj template sim cov cai nram qab no. Nws yog muab commented, tab sis tsis txhob yig email rau kuv los sis tawm lus rau kuv blog yog hais tias koj muaj lus nug.

  <xsl:Template lub npe="Daim phiaj" phim="Tshais[@Style = 'Daim phiaj']" hom="itemstyle">

    <!--
      ContentMain.xsl kis tau CurPos thiab xeem.
      Peb siv cov no los conditionally emit rau txoj kev qhib thiab kaw <cov lus> cim npe.
    -->
    <xsl:param lub npe="CurPos" />
    <xsl:param lub npe="Kav" />

    <!-- Cov tsiaj ntawv nram qab no yog los ntawm tus txheem ItemStyle.xsl unmodified -->
    <xsl:kuj sib txawv thiab lub npe="SafeImageUrl">
      <xsl:hu-template lub npe="OuterTemplate.GetSafeStaticUrl">
        <xsl:nrog param lub npe="UrlColumnName" xaiv="'ImageUrl'"/>
      </xsl:hu-template>
    </xsl:kuj sib txawv thiab>
    <xsl:kuj sib txawv thiab lub npe="SafeLinkUrl">
      <xsl:hu-template lub npe="OuterTemplate.GetSafeLink">
        <xsl:nrog param lub npe="UrlColumnName" xaiv="'LinkUrl'"/>
      </xsl:hu-template>
    </xsl:kuj sib txawv thiab>
    <xsl:kuj sib txawv thiab lub npe="DisplayTitle">
      <xsl:hu-template lub npe="OuterTemplate.GetTitle">
        <xsl:nrog param lub npe="Npe" xaiv="@Title"/>
        <xsl:nrog param lub npe="UrlColumnName" xaiv="'LinkUrl'"/>
      </xsl:hu-template>
    </xsl:kuj sib txawv thiab>
    <xsl:kuj sib txawv thiab lub npe="LinkTarget">
      <xsl:Yog hais tias ntsuam xyuas="@OpenInNewWindow = 'Tseeb'" >_blank</xsl:Yog hais tias>
    </xsl:kuj sib txawv thiab>

    <!--
      Ntawm no peb txhais ib kuj sib txawv thiab, "tableStart".  Qhov no muaj cov HTML uas peb siv txhais cov lus qhib cov qhov rooj li no rau cov ntawv qhia kiag.  Nco ntsoov tias CurPos = 1, nws nrog cov HTML rau ib CDATA lossis.
      Txwv tsis pub, nws yuav tau npliag.

      Cov nqi no tableStart no emited txhua zaus ItemStyle hu ua ntawm ContentQueryMain.xsl.
    -->
    <xsl:kuj sib txawv thiab lub npe="tableStart">
      <xsl:Yog hais tias ntsuam xyuas="$CurPos = 1">
        <![CDATA[
        <ciam teb lus = 1>
          <tr bgcolor = "ntsuab">
            <Td><xim Font = "dawb"><b>Qhov project Name</b></Font></Td>
            <Td dlhos = "txoj cai"><xim Font = "dawb"><b>Sau rau hnub tim</b></Font></Td>
            <Td dlhos = "txoj cai"><xim Font = "dawb"><b>Nyiaj txiag</b></Font></Td>
            <Td dlhos = "txoj cai"><xim Font = "dawb"><b>Cov nqi</b></Font></Td>
            <Td><xim Font = "dawb"><b>Zuag qhia tag nrho cov txheej xwm</b></Font></Td>
          </tr>
        ]]>
      </xsl:Yog hais tias>
    </xsl:kuj sib txawv thiab>

    <!--
      Kuj sib txawv thiab lwm, tableEnd cias nyiaj thiab lub sij lub kaw lus lossis.

      Raws li nrog tableStart, Nws yog emited.  Qhov no yog vim li cas nws tus nqi yog raug conditionally based raws li qhov seb peb twb tau mus rau kab kawg ntawm ContentQueryMain.xsl.
    -->
    <xsl:kuj sib txawv thiab lub npe="tableEnd">
      <xsl:Yog hais tias ntsuam xyuas="$CurPos = $Last">
        <![CDATA[ </cov lus> ]]>
      </xsl:Yog hais tias>
    </xsl:kuj sib txawv thiab>

    <!--
      Nco ntsoov emit tus txheem ntawm tableStart.  Yog hais tias qhov no yuav tsis tau rau thawj kab dhau rau peb ntawm ContentQueryMain.xsl, ces peb paub nws tus nqi yuav dawb paug.

      Lov tes taw tso zis ntau escaping vim hais tias thaum twg tableStart nws tsis dawb paug, nws muaj xws li cov HTML uas peb xav tau nws los ntawm qhov browser.  Yog peb tsis txhob hais XSL parser los lov tes taw rau cov zis escaping, nws yuav ua kom muaj khoom xws li"&LT;cov lus&gt;" hloov ntawm"<cov lus>".
    -->
    <xsl:tus nqi-ntawm xaiv="$tableStart" lov tes taw-zis-escaping="yog"/>


    <tr>
      <!--
      P:Project_x005F_x0020_Name P:Project_x005F_x0020_End_x005F_x0020_Date P:Project_x005F_x0020_Budget P:Project_x005F_x0020_Expenses P:Project_x005F_x0020_Status
      -->
      <Td>
        <xsl:tus nqi-ntawm xaiv="@Project_x005F_x0020_Name"/>
      </Td>

      <Td dlhos="txoj cai">
        <xsl:tus nqi-ntawm xaiv="@Project_x005F_x0020_End_x005F_x0020_Date"/>
      </Td>

      <Td dlhos="txoj cai">
        <xsl:hu-template lub npe="formatcurrency">
          <xsl:nrog param lub npe="tus nqi" 
xaiv="@Project_x005F_x0020_Budget"></xsl:nrog param> </xsl:hu-template> </Td> <Td dlhos="txoj cai"> <xsl:hu-template lub npe="formatcurrency"> <xsl:nrog param lub npe="tus nqi" xaiv="@Project_x005F_x0020_Expenses">
</xsl:nrog param> </xsl:hu-template> </Td> <Td> <xsl:tus nqi-ntawm xaiv="@Project_x005F_x0020_Status"/> </Td> <!-- Tag nrho cov nram no yog commented tawm hais yam. Txawm li cas los, coj nws rov qab thiab stuff nws mus ua ib tug <Td> saib cov nyhuv. --> <!-- <div daim id = "linkitem" hoob = "item"> <xsl:Yog tias kuaj = "hlua-ntev($SafeImageUrl) != 0 "> <div hoob = "duab-tsam-laug"> <ib tug href = "{$SafeLinkUrl}" TARGET = "{$LinkTarget}"> <img hoob = "duab-tas-dav" src = "{$SafeImageUrl}"
xwm = "{@ImageUrlAltText}"/> </ib tug> </div> </xsl:Yog hais tias> <chav kawm ntawv div = "txuas yam"> <xsl:hu-template
name="OuterTemplate.CallPresenceStatusIconTemplate"/> <ib tug href = "{$SafeLinkUrl}"
TARGET = "{$LinkTarget}" Title = "{@LinkToolTip}"> <xsl:tus nqi-kev xaiv = "$DisxslyTitle" /> </ib tug> <div hoob = "hauj lwm"> <xsl:tus nqi-cov select="@Description" /> </div> </div> </div>
--> </tr> <!-- Emit kaw table lossis. Yog tias peb tsis nyob rau hnub kab, qhov no yuav ua dawb paug. --> <xsl:tus nqi-ntawm xaiv="$tableEnd" lov tes taw-zis-escaping="yog"/> </xsl:Template> <xsl:Template lub npe="formatcurrency"> <xsl:param lub npe="tus nqi" xaiv="0" /> <xsl:tus nqi-ntawm xaiv='hom ntawv xov tooj($tus nqi, "$DDD,DDD,DDD.HNUB", "ua hauj lwm")' /> </xsl:Template>

Txheem WSS/NTXHUAB ntaub ntawv nkag teb chaws tshaus tsis txhawb Cascading nco-downs (los yog lwm yam tso-los ntawm kev sib txuas lus)

HLOOV TSHIAB (04/2008): No cov poj blog tuaj txog qhia tau hais tias ib tug zoo javascript raws mus kom ze rau qhov teeb meem no: http://webborg.blogspot.com/2008/04/add-functions-and-events-to-sharepoint.html

HLOOV II: (04/2008): Qhov kev nkag blog tig pheej zoo li: http://www.cleverworkarounds.com/2008/03/13/free-mosswss-2007-web-part-hide-controls-via-javascript/

Ob peb zaug ib lub lim tiam, yog tsis yog txhua hnub, cov neeg siv rooj sab laj hais txog tus yuav tsum tau yuav nquag muab yus ntawm cascading nco-downs. Piv txwv, Kuv muaj ntawm lwm yam uas ob tug nco-down:

  • Daim ntawv teev kev tuaj. kas
  • Daim ntawv teev kev tuaj. lub zos.

Raws li cov neeg zov me nyuam lub luag hauj lwm povhwm poob haujlwm, Peb xav kom nws khiav lag luam yog zoo li no:

  • Pov ntawv twg xaiv ib tug tuaj. xeev los ntawm tus nco-down.
  • Qhov no ua rau lub zos nco-down los lim xwb cov zos uas muaj rau xaiv lub xeev.
  • Paul twg xaiv ib lub zos los ntawm daim ntawv uas.

Yog tsis muaj nyiaj them yug tawm-ntawm-tus-lub thawv rau no feature. qhov tseeb, yog tsis muaj nyiaj them yug OOB rau txhua yam kev sib txuas lus ncaj intra-daim ntawv. Qhov no muaj xws li programmatically qho/enabling/disabling teb rau lo lus teb rau daim teb hloov rau hauv daim ntawv sim lwm qhov.

Lub hom phiaj tiag tiag ntawm no Tshooj mus los piav tau lub ntsiab thiab cov no yog cov kev xaiv uas raws li kuv paub xwb:

  1. Tsim ib lub hom kev cai qhia kiag. Raws li tus nchuav-sab-tsim tawm, koj muaj cov tswj lub ntiaj teb "no" Cov ntawd qhia kiag kev cai. Koj yuav siv ib cascading nco-down li ntawd mas.
  2. Xav txog kev siv cov workflow. Tej zaum, koj xav yuav cob muaj nqis mus teb raws li tus nqi lwm teb. Qhov no, koj yuav nquag sim siv tus ncej tag twb, tab sis tej lub sij hawm, nws cia li yuav tsis tau hauj lwm ua. SharePoint Designer workflow yog ib tug kuj khiav hauv lwm txoj rau xa me nyuam rov rau hauv code thiab siv qhov muag saib lub studio. Yog koj mus no lawv, tsum paub txog ntawm qhov teeb meem hais los ntwm cov tshooj no (http://paulgalvin.spaces.live.com/blog/cns!CC1EDB3DAA9B8AA!405.entry).
  3. Tej handlers: Zoo li workflow, qhov no yog ib cov tshuaj tom qab-tus-Disease fact. Koj hem handler yog ib tug los ua ke .NET (C#, VB.NET) rau qhov twg SharePoint kis tswj. Tus kwv koj tsim tau mus saib tau cov ntaub ntawv ntawm lub npe (thiab lub nruas tseem qauv) thiab yuav ua tau tej yam muab xam uas xav kom tau.
  4. Siv SharePoint Designer los ua kev cai nkag teb chaws tuaj. Kuv tsis tau muaj tib neeg kev paub no mus kom ze, but I hear they are doing good things with NewForm.aspx these days 🙂
  5. Dov rau koj tus kheej ASP.NET tej ntaub ntawv nkag teb chaws ua (ua ib stand-alone web page los yog ib cov qhov Web site) thiab siv ntawd xwb.

Yog leej twg paub txog lwm yam thiab zoo xaiv, thov logged thiab kuv mam hloov lub cev no ncej.

<kawg />

Ntawv cim npe Technorati:

Bar nstuas tsim nyob rau hauv SharePoint

Txheej txheem cej luam:

(HLOOV TSHIAB 12/04/07: Ntxiv ib qho chaw nthuav linking rau lwm cov blog uas no ntawm cov qhov Web site nthuav heev kawg)

No nkag teb chaws blog piav li cas los ua tau ib lub teeb bar hauv SharePoint. No xwb nyob rau hauv WSS thiab NTXHUAB tej kev kawm thaum uas nws tsuas nyob li tej ntaub ntawv saib web ib sab.

Lub zuag qhia tag nrho mus kom ze yog raws li nram no:

  1. Tsim ib daim ntawv los yog qiv ntaub ntawv uas muaj cov ntaub ntawv koj xav teeb.
  2. Qhov chaw lub tsev qiv ntawv hauv kab ntawv / kev cai sau mus rau ib sab thiab hloov kom muaj tej ntaub ntawv saib Web site qhov (DVWP).
  3. Hloov cov DVWP XSL Meskas HTML uas pom tias yog raws li ib lub teeb.

Lag luam Scenario / Teeb:

Kuv tau tsim ib daim ntawv teev kev cai uas muaj qhov Title txheem kem thiab qhia kiag ib tug ntxiv, "Leej twg". Cov qauv no (simplistically heev) ib qho "tso rau nqi" scenario nruab nrab qhov twg lub npe yog peb tes num thiab cov txheej xwm muaj nqis los ntawm cov:

  • Npaj siab
  • Nyob rau hauv cov txheej txheem
  • Stalled

Lub hom phiaj yog tsim kom muaj kev sib tham sib kab rov tav bar teeb uas muaj cov lis dej num uas tsis yog leej twg.

Kuv muaj populated lub npe thiab nws zoo li no:

duab

Ua kom muaj tej ntaub ntawv saib Web site qhov:

Tsim tau lub DVWP los muab cov kev cai teev rau ib sab (qhov chaw nyob sab hauv kuv tsev neeg) thiab ua raws li cov lus qhia ntawm no (http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!395.entry).

Ntxiv rau qhov tsuas tsim lub DVWP, Peb kuj yuav teev cov cuab yeej paging qhia tag nrho cov muaj natwm. Rau kuv, qhov no zoo li tej yam zoo li no:

duab

Thaum no tus taw tes, Kuv ib txwm nyob SPD thiab qhov browser. Kuv mam li rov qhib rau sab siv qhov browser. Qhov no txhob ntawd mucking txog cov Web site qhov layout nyob rau sab.

Hloov cov XSLT:

Tam sim no lub sij hawm los hloov tus XSLT.

Kuv siv siv qhov muag saib lub studio rau qhov no. (Saib ntawm no kev ceeb toom tseem ceeb txog tus intellisense uas yuav pab tau koj heev).

Kuv tsim ib qhov project khoob ntxiv plaub ntaub ntawv tshiab (hloov lo lus "tseem cia nrog" thiab "New" tsim nyog li):

  • Original.xslt
  • New.xslt
  • Yuavtsum Params.xml
  • Params.xml tshiab

Hauv kuv tsev neeg, nws zoo li no:

duab

Hloov hauv cov qhov web thiab luam cov params thiab cov XSL los tseem cia "nrog" Version hauv Studio nrig txog kev pom.

Lub hom phiaj ntawm no yog ua mob rau lub XSL txia qhov txheeb xyuas tau peb mus rov qab los rau cov lus nug DVWP HTML renders li ib lub teeb.

Rau qhov tus kawg, yuav xub xyuas seb cov HTML yuav zoo ua ntej peb ntxov siab insanity uas yog hu ua "XSL". (Yuav tsis ntshiab, cov nram no yog ib tsab ib qho piv txwv; tsis txhob ntaus los yog daim ntawv/muab tshuaj rau studio siv qhov muag saib. Kuv muab ib daim ntawv qhia txog tshuab pib taw tes rau qhov uas rau lub write-up). Cov qauv teeb nram qab no mas nws as per cov HTML tam sim no:

Sample Bar Graph

Coj HTML:

<html>
<lub cev>
<chaw>
<table dav = 80%>
<tr><Td><chaw>Horizontal Bar teeb</Td></tr>
<tr>
<Td dlhos = "center">
<rooj ciam teb = "1" dav = 80%>
<tr>
<Td dav = 10%>Qhib</Td>
<Td><rooj cellpadding ="0" cellspacing ="0" ciam teb = 0 dav = 50%><tr bgcolor = liab><Td>&nbsp;</Td></tr></cov lus></Td>
</tr>
<tr>
<Td dav = 10%>Kaw</Td>
<Td><rooj cellpadding ="0" cellspacing ="0" ciam teb = 0 dav = 25%><tr bgcolor = liab><Td>&nbsp;</Td></tr></cov lus></Td>
</tr>
<tr>
<Td dav = 10%>Stalled</Td>
<Td><rooj cellpadding ="0" cellspacing ="0" ciam teb = 0 dav = 25%><tr bgcolor = liab><Td>&nbsp;</Td></tr></cov lus></Td>
</tr>
</cov lus>
</Td>
</tr>
</cov lus>
</lub cev>
</html>

Kuv siv ib tug tuag yooj yim mus kom ze rau txoj kev Kuv tuav kom tau teem xim tom qab ntawm kom "liab".

Tus take-away no yog qhov no: Thaum kawg, txhua yam peb ua yog tsim HTML natwm thiab txhua.

XSLT Template:

Kuv twb tau theej rau XSLT generates tus kab rov tav bar teeb. Nws tseem zoo haum commented ces kuv yuav tsis ntxiv npaum li cas ntawm no tsuas yog cov sau ntawv:

  • Kuv pib nrog lub neej ntawd XSL SharePoint Designer muab kuv thaum uas kuv xub tsim cov DVWP.
  • Kuv twb tau txiav no los ntawm tus SPD 657 kab rau 166 kab.
  • Kuv ho tsis mess nrog rau cov ntaub ntawv tsis XML (Nws yog ib qho ntawm cov XSL thiab koj mam li paub tias kuv txhais li cas thaum koj mus hloov lub DVWP xwb; muaj cov ntaub ntawv ob tug uas koj yuav tau hloov). Txawm li cas los, yuav kom piv rau nws, Kuv puas tau tshem yuav luag tag nrho rau ntawm tus XSL. Qhov no txhais tau tias yog koj xav siv cov tsis, koj nyuam qhuav tau ntxiv rau lawv kuj tsis paub meej txhais cov ntsiab lus rov qab rau lub XSL. Uas yuav yooj yim vim tias koj yuav ua tau tus thawj XSL kuj tsis paub meej txhais cov ntsiab lus nyob hauv koj qhov project studio siv qhov muag saib.
  • Koj mam mus yuav tau luam thiab no paste rau hauv koj qhov project studio siv qhov muag saib. Ces, tshem kuv hu thiab ntxig rau koj tus kheej hu rau "ShowBar".
  • Laum rau nram tej hauj lwm tsim ib <ib tug href> li no: http://server/List?FilterField1=fieldname&FilterValue1=actualFilterValue. Txheej txheem no tej zaum yuav nqi rau lwm contexts. Thaum xub thawj, Kuv xav tias kuv yuav tau yoog mus rau ib hom ntawv ntau: http://server/List/AllItems.aspx?View={guid}&FilterField1=blah&FilterValue1=blah, tab sis, nyob hauv kuv ib puag ncig uas yog tsis tsim nyog. Daim ntawv sau URL kis rau peb ntawm SharePoint ces yog qhov no yooj yim heev rau generalize.

Nws tseem nyob ntawm no:

<xsl:stylesheet Version="1.0" exclude-no-ua kawg="Reye z o s ddwrt dt msxsl" 
xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xsl="http://www.w3.org/ 1999/XSL/Transform"
xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
xmlns:o="urn:schemas-microsoft-com:chaw" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
xmlns:DT="uuid:1-A29F C2F41010-65B3 - 11d-00AA00C14882" xmlns:Reye="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema"
xmlns:ddwrt2="urn:frontpage:sab hauv"
> <xsl:tso zis txujci="html" txav tom ntej="tsis muaj" /> <xsl:hom zauv NaN="" /> <xsl:param lub npe="ListUrlDir"></xsl:param> <!-- Kuv xav tau no kom txhawb tau laum-down. --> <xsl:Template phim="/" xmlns:SharePoint="Microsoft.SharePoint.WebControls"
xmlns:__designer=http://schemas.microsoft.com/WebParts/v2/DataView/designer xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
> <xsl:kuj sib txawv thiab lub npe="dvt_StyleName">Lub rooj</xsl:kuj sib txawv thiab> <xsl:kuj sib txawv thiab lub npe="Natwm" xaiv="/dsQueryResponse/natwm/leej" /> <xsl:kuj sib txawv thiab lub npe="dvt_RowCount" xaiv="suav($Natwm)" /> <xsl:kuj sib txawv thiab lub npe="IsEmpty" xaiv="$dvt_RowCount = 0" /> <xsl:kuj sib txawv thiab lub npe="dvt_IsEmpty" xaiv="$dvt_RowCount = 0" /> <xsl:xaiv> <xsl:Thauj tw ntsuam xyuas="$dvt_IsEmpty"> Yog tsis muaj cov ntaub ntawv mus rau teeb!<br/> </xsl:Thauj tw> <xsl:txwv tsis pub> <!-- Cov khoom nthuav pib ntawm no. Peb yuav tau txhais ib khub ntawm tus tsiaj ntawv rau txhua leej hauv lub teeb: pes tsawg feem pua ntawm tag nrho cov khoom thiab cov. --> <xsl:kuj sib txawv thiab lub npe="totalProposed" xaiv="suav(/dsQueryResponse/natwm/leej[normalize-chaw(@Status) = 'Qhov'])" /> <xsl:kuj sib txawv thiab lub npe="percentProposed" xaiv="$totalProposed div $dvt_RowCount" /> <xsl:kuj sib txawv thiab lub npe="totalInProcess" xaiv="suav(/dsQueryResponse/natwm/leej[normalize-chaw(@Status) = 'Hauv txoj kev'])" /> <xsl:kuj sib txawv thiab lub npe="percentInProcess" xaiv="$totalInProcess div $dvt_RowCount" /> <xsl:kuj sib txawv thiab lub npe="totalStalled" xaiv="suav(/dsQueryResponse/natwm/leej[normalize-chaw(@Status) = 'Stalled'])" /> <xsl:kuj sib txawv thiab lub npe="percentStalled" xaiv="$totalStalled div $dvt_RowCount" /> <!-- Peb txhais kom meej peb HTML kem ntawm no. Kuv qiv los ntawm ib co txheem SharePoint yeej no yuav ua rau nws zoo ib yam. Kuv xav tias nws yuav tsim kev hloov ntawm lub ntiaj teb no css cov ntaub ntawv kom zoo tseem ntsiab overrides. --> <cov lus dav="100%" cellspacing="0" cellpadding="2" style="ciam teb-txoj cai: 1 #C0C0C0 khoom; ciam teb hauv qab: 1 #C0C0C0 khoom; ciam teb-laug-style: khoom; ciam teb-laug-dav: 1; ciam teb-saum-style: khoom; ciam teb-saum-dav: 1;"> <tr> <Td dlhos="chaw"> <cov lus ciam teb="1" dav="100%"> <!-- Rau txhua leej twg uas peb xav kom cov teeb, peb hu rau "ShowBar cov" Template. Peb yuav kis tau: 1. Ib daim ntawv lo rau ntawm kab ntawd nws twb. Qhov no yog transformed rau hauv ib hyperlink. 2. Tus feem pua (kuj sib txawv thiab los saum toj no). 3. Lub teb cov npe cov chaws ntawm lwm daim ntawv. Qhov no yuav tsis tau phim daim ntawv lo nrog zaub. 4. Teb nqi matched rau #3. 5. Tag nrho cov khoom ntawm txoj txoj cai (tsis grand tag nrho ntawm txhua yam raws li txoj cai lis dej num). Nws emits ib <tr></tr> thiab cov kab rov tav bar teeb kab. Peb hu no template rau txhua txoj peb xav mus saib raws li txoj cai. --> <xsl:hu-template lub npe="ShowBar"> <xsl:nrog param lub npe="BarDisplayLabel" xaiv="'Qhov'"/> <xsl:nrog param lub npe="BarPercent" xaiv="$percentProposed"/> <xsl:nrog param lub npe="QueryFilterFieldName" xaiv="'Leej twg'"/> <xsl:nrog param lub npe="QueryFilterFieldValue" xaiv="'Qhov'"/> <xsl:nrog param lub npe="TotalItems" xaiv="$totalProposed"></xsl:nrog param> </xsl:hu-template> <xsl:hu-template lub npe="ShowBar"> <xsl:nrog param lub npe="BarDisplayLabel" xaiv="'Stalled'"/> <xsl:nrog param lub npe="BarPercent" xaiv="$percentStalled"/> <xsl:nrog param lub npe="QueryFilterFieldName" xaiv="'Leej twg'"/> <xsl:nrog param lub npe="QueryFilterFieldValue" xaiv="'Stalled'"/> <xsl:nrog param lub npe="TotalItems" xaiv="$totalStalled"></xsl:nrog param> </xsl:hu-template> <xsl:hu-template lub npe="ShowBar"> <xsl:nrog param lub npe="BarDisplayLabel" xaiv="'Hauv txoj kev'"/> <xsl:nrog param lub npe="BarPercent" xaiv="$percentInProcess"/> <xsl:nrog param lub npe="QueryFilterFieldName" xaiv="'Leej twg'"/> <xsl:nrog param lub npe="QueryFilterFieldValue" xaiv="'Hauv txoj kev'"/> <xsl:nrog param lub npe="TotalItems" xaiv="$totalInProcess"></xsl:nrog param> </xsl:hu-template> </cov lus> </Td> </tr> </cov lus> </xsl:txwv tsis pub> </xsl:xaiv> </xsl:Template> <!-- No template yog lub chaw ua hauj lwm ntawm displaying kav neeg nyob hauv qhov bar teeb. Koj ntshe yuav ua koj tweaking no feem ntau. --> <xsl:Template lub npe="ShowBar"> <xsl:param lub npe="BarDisplayLabel" /> <!-- daim ntawv lo qhia --> <xsl:param lub npe="BarPercent"/> <!-- Feem pua ntawm tag nrho. --> <xsl:param lub npe="QueryFilterFieldName"/> <!-- Siv dhia rau cov lus nug & lim --> <xsl:param lub npe="QueryFilterFieldValue"/> <!-- Siv dhia rau cov lus nug & lim --> <xsl:param lub npe="TotalItems" /> <!-- suav tag nrho ntawm no barlabel --> <tr> <!-- Qhov bar sau npe rau nws tus kheej. --> <Td hoob="MS-formbody" dav="30%"> <!-- No tom ntej txheej ntawm cov nqe lus thaum txoj saw lus nug uas pub peb tuaj khawb mus ua ib tug uas pom ntawm cov ntaub ntawv uas lwm. Peb yuav siv ob peb yam ntawm no: 1. Peb kuj kis tau FilterField1 thiab FilterValue1 rau ib daim ntawv teev yuav lim tau rau ntawm ib sab. 2. SharePoint muaj dua ib tug tseem ceeb parameter kom peb, ListUrlDir uas ntxiv rau lwm daim ntawv cov tiv thaiv uas no DVWP "khiav khiav". Tsis lom zem XSL? --> <xsl:ntawv nyeem lov tes taw-zis-escaping="yog"> <![CDATA[<ib tug href ="]]></xsl:ntawv nyeem> <xsl:tus nqi-ntawm xaiv="$ListUrlDir"/> <xsl:ntawv nyeem lov tes taw-zis-escaping="yog"><![CDATA[?FilterField1 =]]></xsl:ntawv nyeem> <xsl:tus nqi-ntawm xaiv="$QueryFilterFieldName"/> <xsl:ntawv nyeem lov tes taw-zis-escaping="yog"><![CDATA[&FilterValue1 =]]></xsl:ntawv nyeem> <xsl:tus nqi-ntawm xaiv="$QueryFilterFieldValue"/> <xsl:ntawv nyeem lov tes taw-zis-escaping="yog"><![CDATA[">]]></xsl:ntawv nyeem> <xsl:tus nqi-ntawm xaiv="$BarDisplayLabel"/> <xsl:ntawv nyeem lov tes taw-zis-escaping="yog"><![CDATA[</ib tug>]]></xsl:ntawv nyeem> <!-- Lub ntsis tom ntej no qhia ib co zauv lub hom: "(tag nrho / % ntawm tag nrho)" --> (<xsl:tus nqi-ntawm xaiv="$TotalItems"/> / <!-- Qhov no tsim ib tug ntawv sau raws feem pua zoo rau peb. Tsaug, Microsoft! --> <xsl:hu-template lub npe="percentformat"> <xsl:nrog param lub npe="feem pua" xaiv="$BarPercent"/> </xsl:hu-template>) </Td> <!-- Thaum kawg, emit ib <Td> lossis rau qhov bar xwb.--> <Td> <cov lus cellpadding="0" cellspacing="0" ciam teb="0" dav="{kab($BarPercent * 100)+1}%"> <tr bgcolor="liab"> <xsl:ntawv nyeem lov tes taw-zis-escaping="yog"><![CDATA[&nbsp;]]></xsl:ntawv nyeem> </tr> </cov lus> </Td> </tr> </xsl:Template> <!-- Qhov no tawm ntawm tej XSL kuv nyob hauv ib qho kev MS template. --> <xsl:Template lub npe="percentformat"> <xsl:param lub npe="feem pua"/> <xsl:xaiv> <xsl:Thauj tw ntsuam xyuas="hom ntawv xov tooj($feem pua, '#,##0%;-#,##0%')= 'NaN'">0%</xsl:Thauj tw> <xsl:txwv tsis pub> <xsl:tus nqi-ntawm xaiv="hom ntawv xov tooj($feem pua, '#,##0%;-#,##0%')" /> </xsl:txwv tsis pub> </xsl:xaiv> </xsl:Template> </xsl:stylesheet>

Soj ntsuam:

XSL cov saum toj ntawm no generates no cov teeb:

duab

Tho tau mus ua cov ntaub ntawv uas lwm los txhaj rau cov kev cai raws li txoj cai:

duab

Concluding xav:

Ua qhov no ua Generalized?

Kuv nyiam no cov tswvyim graphing, tab sis, kuv ntxub cov Disease fact uas kuv yuav tsum mus ua heev tes-coding. Thiab kuv twb tau qhia me ntsis xav mus seb nws yuav tsum generalized kuv optimistic, tab sis kuv kuj hais tias yuav muaj cib ntsa qhov chaw raws li txoj kev uas yuav tsis muaj ib yam hauj lwm-nyob ib ncig ntawm fearful me ntsis. Yog leej twg muaj ib co tswv yim zoo rau hauv no, thov koj ua ib cov lus los yog email rau kuv.

Nstuas ntsug:

Qhov no nws yog ib tug kab rov tav bar teeb. Yeej tau los ua ib ntsug teeb. Yog peb yuav hloov cov HTML. Kuv yuav pib tau ib yam nkaus: Ua kom muaj ib tug sawv cev HTML rau ib ntsug bar teeb thiab mam li xyuas seb tau li cas tias ntawm XSL. Yog leej twg xav tias, Kuv yuav tsum tau persuaded sim kom paub thiab ua tau hauj lwm ua tus kinks. Yog hais tias ib tug neeg muaj twb ua tas lawm, please let me know and I’ll gladly link to your blog 🙂

Kuv xav tias kev sib tw nrog ib ntsug kev teeb yog tias tus ntawv rau lub teeb yuav tsis yooj yim uas tswj tus, tiam sis yeej ua tsis yeej.

Teb lub npe Gotcha tus:

Muaj ntau yam uas tsawg kawg yog ob tug mus nrhiav kom paub cov npe teb.

Ua ntej, Vaj teb nrog rau ib qhov chaw muaj los yuav dim hauv hauv lub XSL. Qhov no tej zaum yuav yog ib qhov teeb meem no:

        <xsl:kuj sib txawv thiab lub npe="totalProposed" 
xaiv="suav(/dsQueryResponse/natwm/leej[normalize-chaw(@Status) = 'Qhov'])" />

Yog rau koj "lawv" Kem no yeej hu ua "raws li txoj cai Code" ces koj yuav tau reference li "Status_x0020_Code":

   <xsl:kuj sib txawv thiab lub npe="totalProposed" 
xaiv="suav(/dsQueryResponse/natwm/leej[normalize-chaw(@Status_x0020_Code) = 'Qhov'])" />

Thib ob, thiab kuv fuzzy me ntsis ntawm no, koj kuj yuav tsum muab khaws cia rau hauv alert rau teb lub npe hloov. Yog koj teb "raws li txoj cai Code npe koj" thiab tom qab ces nyob, rename los "Leej twg AFE", cov "lub npe" tsis hloov. Lub npe nrog nws tseem yuav "raws li txoj cai Code" thiab yuav tsum tau hais los ua "Status_x0020_Code". Qhov "lwm yam kev pab" kev mus yuav pab tshawb nrhiav thiab kho qhov teeb meem no seb.

Hais txog ntawd xim:

Kuv khaws cov "liab" vim nws yog pleasing rau kuv rau lub caij. Nws yuav tsis tau ib big deal qhia txawv xim sij muab ntau tshaj yog kev piav qhia txog ib tug xov tooj, tab sis, kuj muaj ib pab KPI. Piv txwv, Yog hais tias qhov feem pua ntawm cov "stalled" Yog tus AFE > 10% mam li pom nws liab liab, txwv tsis pub ua hauv dub. Siv <xsl:xaiv> yuav ua kom tiav no.

Lwm yam kev pab:

Zoo siab transforming!

<kawg />

Subscribe rau kuv blog!

Tam sim no OM ntaub ntawm ib daim ntawv teev kev cai (los sis, Tau lwm OM ntaub Displayor [zoo li YACC, sib txawv, tab sis])

Hnub no, Kuv siv ib handful teev nrhiav hauv lub hauv paus chiv keeb qab hais "lub npe kem uas koj nkag mus twb yog siv los qhaib. Xaiv lwm lub npe."

Yuav tsum tsim sab nug, deleted thiab nyob rau lwm lub chaw re-created, ces kuv paub nws tsis yog ib lub npe reserved. Txawm li cas los, Kuv cias tsis tau nrhiav sab qhov twg ntawm tus txheem SharePoint neeg siv interface ntawm kev kawm ntawv nyob rau hauv qhov chaw sau ntawv.

Kuv muab lo rau MSDN forums no thiab cov indomitable Andrew Woodward taw tes qhia kuv nyob rau hauv cov kev taw qhia txog cov lwm kwv qauv ntaub ntawv.

Kuv tau mus codeplex yuav nrhiav tau tej yam uas yuav pab tau kuv saib mus rau lwm tus OM ntawv thiab pab kuv nrhiav tau qhov teeb meem.

Kuv sim ntau yam thiab lawv tau txias heev thiab nthuav, tiam sis thaum kawg, tsis zoo txaus rau kuv qhov kev povhwm poob haujlwm. Kuv yuav tsis criticizing lawv los ntawm kev txhais tau tias, tiam sis hais meej makers tuam tsis muaj qhov teeb meem kuv nco thaum lawv tsim lawv kev povhwm poob haujlwm :). Neeg feem coob zoo li muaj pes tsawg lub sij hawm thiab dag zog rau txoj kev workstation kom ncaj ncees investing / nyob hauv kev pab daim ntaub ntawv uas muab ntoo views, right-click menus ntsiab lus teb ces yees. Cov no yog cov zoo thiab tag nrho, tab sis, nws yog ib txoj kev ua hauj lwm los tsim tau ib cov neeg siv saum-of-the-kab kev uas yog tau saj zawg zog heev heev.

Kuv yeej yuav tsum tau teb kom tau qhov teeb meem no. Nws tshwm sim rau kuv ntawd yog hais tias kuv yuav tau tag nrho cov kev kawm txhua rau hauv qhov chaw sau los ua ib daim ntawv teev kev cai, Kuv yuav lim, txheeb thiab tsim kev uas yuav pab tau kuv nrhiav tau ncej tag yuav supposedly uas twb muaj lawm no views (uas nws tau ua, BTW). Kuv mus tom ntej thiab ua ntawd thiab teev los yog ob tom qab, tas txhua yam kuv kawm ntawv txhua loaded rau hauv ib daim ntawv teev kev cai nrog grouping, sorting thiab li ntawd. Kuv nrhiav tau kuv teb 5 feeb tom qab.

Yog thiab thaum twg kuv ntse yuav tsum hla lub ntiaj teb no, Kuv xav tias kuv yuav decree tias txhua SharePoint cuab yeej cov neeg zov menyuam yuav tsum tiag xav txog surfacing lawv kwv qauv ntawv nyob rau hauv ib daim ntawv teev kev cai. Ua li ntawd mas, Kuv muaj lub zog mus nrhiav tej kev kuv xav (constrained, tau mas, los ntawm standard sharepoint nta).