Qeb Archives: Tej ntaub ntawv saib Web site qhov

Muab piv rau hnub rau hauv ib cov ntaub ntawv saib Web feem tsim tau ib lub KPI WSS

Ceeb toom: qhov no yog thawj zaug muab lo rau tom www.endusersharepoint.com ntawm no: http://www.endusersharepoint.com/ 2009/11/02/comparing-dates-in-a-data-view-web-part-to-build-a-wss-kpi-in-sharepoint/.

Qhov no yog ib qho uas tsis tau blog lwm rooj vag rau muab piv rau hnub ua XSL nyob rau hauv ib cov ntaub ntawv saib web tshooj nyob rau hauv SharePoint.

Qhov no yog kuv scenario:

  • Kuv muaj ib daim ntawv teev kev cai.
  • Lub hom phiaj ua lag luam ntawm daim ntawv no mus txhawb rau lub tswv yim ntawm ib tug neeg ua hauj lwm tshiab thiab cov kev pab raws qib uas nws yuav ua kom tiav tsis pub dhau 7 hnub pib txoj hauj lwm.
  • Lawv nyob rau hauv lub "ceeb toom zoo noj" tom qab 4 hnub yog hais tias lawv tsis tiav cov paub tab.
  • Kuv xav kom koj tsim ib dashboard yooj yim uas pom tias yog ntsuab thaum lawv yog kawm ua hauj lwm los sis yog hais tias lawv muaj ntau tshaj 4 hnub ua kom tiav rau nws.
  • Kuv xav kom lub dashboard qhia daj yog hais tias lawv nyob rau hauv daim ntawv ceeb toom tsam.
  • Kuv xav kom pom kev liab yog hais tias lawv muaj tsis tiav rau neeg ua hauj lwm tom qab lub hnub.

Kuv los borrowed cov tshooj no Thaum Marc Anderson Blog (http://mdasblog.wordpress.com/2008/02/19/comparing-dates-in-sharepoint-using-xsl/) kom tau txais cov kev sib piv logic thiab cov tshooj no Thaum www.endusersharepoint.com rau cov tswv yim yooj yim qab tus dashboard (http://www.endusersharepoint.com/2008/12/09/visual-indicators-for-the-masses-kpis-in-wss/) sau los ntawm Toni Frankola.

Koj yuav tsum nyeem cov txhawb blogs, tab sis qhov yuav siv mus li no:

  1. Tsim ib cov hom (txhua + I)
  2. Tsim kev cai sau thiab cov nyob qib qub nrog rau cov hom.
  3. Tsim ib daim nplooj web Tshooj.
  4. Ntxiv rau cov kev cai teev rau cov nplooj ntawv Web site qhov.
  5. Qhib tau cov nplooj ntawv hauv SPD.
  6. Hloov daim ntawv mus rau ib DVWP.
  7. Hloov cov XSL rau Meskas lub dashboard khoom.

Kuv muaj sijhawm ob: ib hnub tim ceeb toom thiab ib hnub. Piv lub hnub, Kuv xsl puas muaj cov nram qab no:

 
 <xsl:xaiv>
 
 <!-- Thaum cov phau ntawv thiab txoj cai uas kos npe, peb yeej tsis hais hnub ntsuab. -->
 <xsl:Thauj tw ntsuam xyuas="@Employee_x0020_Handbook_x003F_ = 1 thiab @Security_x0020_Policies = 1">
 <img src= "/ _layouts/dluab/KPIDefault-0.GIF" kev= "Tsis muaj teeb meem"/>
 <ib tug href= "/ HumanResources/npe/tshiab ua hauj lwm Checklist/EditForm.aspx?ID ={@ID}&amp;Qhov = / HumanResources/qhia tawm cov ntaub ntawv/tshiab ntiav Dashboard.aspx"> [Kho kom raug]</ib tug>
 </xsl:Thauj tw>
 
 <!-- Qhov taw qhia qhia tias amber yog tag lawm yav tas los hnub tim ceeb toom. -->
 <xsl:Thauj tw ntsuam xyuas= "ddwrt:FormatDateTime(hlua(ddwrt:Hnub no()), 1033, 'yyyyMMdd') &gt;= ddwrt:FormatDateTime(hlua(@TaskDueDate), 1033, 'yyyyMMdd')">
 <img src="/_layouts/images/KPIDefault-2.GIF" kev= "Dlau caij lawm"/>
 <ib tug style"border =: 0px" href= "/ HumanResources/npe/tshiab ua hauj lwm Checklist/EditForm.aspx?ID ={@ID}&amp;Qhov = / HumanResources/qhia tawm cov ntaub ntawv/tshiab ntiav Dashboard.aspx"> [Kho kom raug]</ib tug>
 </xsl:Thauj tw>
 
 <!-- Qhia liab qhov taw qhia tau tias peb nyob nraum lub hnub. -->
 <xsl:Thauj tw ntsuam xyuas= "ddwrt:FormatDateTime(hlua(ddwrt:Hnub no()), 1033, 'yyyyMMdd') &gt;= ddwrt:FormatDateTime(hlua(@Warning_x0020_Date), 1033, 'yyyyMMdd')">
 <img src="/_layouts/images/KPIDefault-1.GIF" kev= "Ceeb toom"/> 
 <ib tug href= "/ HumanResources/npe/tshiab ua hauj lwm Checklist/EditForm.aspx?ID ={@ID}&amp;Qhov = / HumanResources/qhia tawm cov ntaub ntawv/tshiab ntiav Dashboard.aspx"> [Kho kom raug]</ib tug>
 </xsl:Thauj tw>
 
 <!-- Yog hais tias peb tau nyob ntawm no, tag lawm yav dhau hnub tim ceeb toom, yog li tag lawm ntsuab. -->
 <xsl:txwv tsis pub>
 <img src= "/ _layouts/dluab/KPIDefault-0.GIF" kev= "Tsis muaj teeb meem"/>
 <ib tug href= "/ HumanResources/npe/tshiab ua hauj lwm Checklist/EditForm.aspx?ID ={@ID}&amp;Qhov = / HumanResources/qhia tawm cov ntaub ntawv/tshiab ntiav Dashboard.aspx"> [Kho kom raug]</ib tug>
 </xsl:txwv tsis pub>
 
 </xsl:xaiv>

Ob peb tseem ceeb uas los saum toj no:

  • Kuv sim mus piv rau hnub uas tsis tas siv cov ddwrt functionality thiab poob nowhere. Kuv tseem tsis tau taub tias. Lawv tso tawm kom pom looj hnub, tiam sis ob">"thiab"<"counselor yeej ua tsis tau tejyam. Thaum kawg, ddwrt tuaj kuv cawm (tsaug, dua, Marc).
  • Kuv tabtom kuj displaying ib [Kho kom raug] txuas rau qhov khoom. Kuv mas ua qhov no kom kuv tau yooj yim yuav kuaj no tawm. Qhov link xwb tej zaum yuav pab tau rau lwm tus neeg rau nws paub tseeb.
  • Qhov no yog DVR hauv SharePoint hauv internet thiab xwb nicely.
  • Cov dluab kuv siv nyob rau hauv lub _layouts directory (/_layouts/dluab/KPI...) yog muaj nyob rau hauv lub thawv nyob rau hauv kuv lub chaw ces lawv yeej muaj tej zaum koj yuav zoo li.

Ntawm no yog ib qho screen txhaj ntawm seb nws zoo li rau kuv:

image

</kawg>

Subscribe rau kuv blog.

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

Txoj kev sai thiab yooj yim: Tsim ib cov ntaub ntawv saib Web feem (DVWP)

Muaj ib tug wealth yawm hais txog ntawm tus WSS 3.0 Tej ntaub ntawv saib Web site qhov (DVWP) nyob rau web los ntawm ntau qhov chaw. Txawm li cas los, Kuv pom tias nws yuav tsis yooj yim kuj ceeb tias yuav nrhiav tau cov lus qhia ntawm no thawj kauj ruam yooj yim heev. Ntawm no yog ib tsab xov xwm nyob rau hauv "txoj kev sai thiab yooj yim" Series nyob rau nws.

Ua raws li cov kauj ruam yuav tsim ib tug ntawv saib Web site qhov (DVWP). Lawv yog raws "Tshajtawm ib" cov qhov Web site, tab sis, feem ntau cov npe rau koj.

  1. Tsim kev tshajtawm web Tshooj thiab ntxiv mus rau ib qhov chaw.
  2. Qhib lub site los rau SharePoint Designer.
  3. Qhib lub site default.aspx.
  4. Xaiv ib sab Tshajtawm web thiab right-click.
  5. Ntawm lub ntsiab lus teb ntawv qhia ua zaub mov, xaiv "sau tug ntawv hloov ua lwm yam kom xLT tej ntaub ntawv saib".

SharePoint Designer ceeb rau koj hais tias qhov Web site no yog tam sim no Mekas los ntawm nws qhov chaw txhais. Uas yog tsis tas tsis zoo, tiam sis yog ib qho tseem ceeb uas siv (kev kawm, txawj tej yam ntxiv, lwm tus) uas muaj tshaj li qhov uas cov no me ntsis "ceev thiab yoojyim" nkag. Kom paub ntau ntxiv txog cov ntawv no, Kuv xav ob phau ntawv ntawm no as Well as koj tsis mus nrhiav hauv Internet nyiam.

Tshawb kom paub tseeb tias koj ua nws thwj:

  1. Kaw thiab rov qhib cov qhov web browser (yuav tsum tsis txhob ntawd rov ntaus tej ncauj lus tus thawj "ntxiv cov qhov web tshiab").
  2. Xaiv cov Web site qhov tus xub nco-down thiab xaiv "hloov koom Web site qhov" los ntawm cov ntawv qhia zaub mov.
  3. Tus tuam vaj huam sib luag rau txoj cai opens.
  4. Lub vaj huam sib luag tau hloov los ntawm nws cov teeb li ib txwm xaiv tau qhov no:
duab