Hli Archives: Tim 2011

SharePoint 2010 KeywordQuery thiab cov neeg siv cov Anonymous

Kuv enabled anonymous mus saib hauv qhov chaw kuv yuav ntsuam xyuas seb tus nrhiav Web site qhov kuv twb tau tsim thiab tsis muaj cov poj surprise, Nws kuj luv.  Anonymous ntawv yeej zoo nkauj npaum li cas yog muaj kev sib tw rau kuv.

Qhov no, tsis mus nrhiav qhov pib tsis khiav vim.  Kuv yuav tsum hais tias nws heev running tab sis nws twb tsis rov muaj lub ntsiab.  Kuv siv kuv cov KeywordQuery rau ntawd cov zaub pib.

Kuv puas tau ceev teem ib lub caij mus nrhiav thiab no ncej blog los"sowmyancs"tuaj haum sai sai: “SharePoint 2010 Nrhiav: tsis uas qhia cov kev tshwm sim rau anonymous cov neeg?”  Tias blog nkag piav qhov teeb meem los ntawm tus tawm ntawm lub thawv lo lus tseem ceeb mus nrhiav foundations tab sis tus cwj pwm ntawd zoo li kuv li – nws ua haujlwm rau cov neeg siv cov authenticated thiab rau cov neeg siv cov anonymous, tab sis cov neeg siv cov anonymous txais tsis tau. 

Kuv raws li cov lus qhia thiab cov bang!  Nws solved kuv qhov teeb meem.  Kuv tsis paub dab tsi phiv no yuav muaj thiab lawv yuav pom tau ib qho teeb meem, tab sis, cov me ntsis lub sij hawm no yuav pab tau.

Nyem rau ntawm qhov blog:

image

</kawg>

Subscribe rau kuv blog.

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

SharePoint 2010 KeywordQuery thiab ntiag HiddenConstraints

Kuv twb tau ua me ntsis hauj lwm nrog cov KeywordQuery kwv nyob SharePoint 2010 making ua tus HiddenConstraints khoom.

Kuv tsis nrhiav yam tam sim ntawd xov tooj rau qhov uas cuab yeej, ces kuv xav tias kuv yuav ceev nrooj jot cia li kuv twb tau siv nws.

Raws li kuv tau qhia, qhov no yog ib qho tsis zoo no feem constraint ntxiv rau cov lus nug kom thiaj txheeb ntawm cov chaw ua si ntawd muaj thiab tsis txhawj txog nws.  Zoj, Nws yog ib lo lus tseem ceeb rau lwm xwb (los yog txheej keywords) thiab modifiers uas koj tau ntaus nyob rau daim UI thaum koj ua ib lo lus tseem ceeb nrhiav.  Ntawm no yog ib qho piv txwv:

keywordQuery.HiddenConstraints = "tau:\"Industry" ";

Koj ntxiv tau kev xyuas ntxiv nrog rau ib qhov chaw delimiter.

keywordQuery.HiddenConstraints = "tau:\"Industry" kws muaj txuj ci";

Cov saum no yog hais rau hauv Hmong, "khiav ib lus nug lo lus tseem ceeb rau cov kws muaj txuj"ci"thiab tas, siv qhov "Kev lag luam" tau.

Ntawm no yog ib txoj kev saib nws:

image

Kuv twb tau siv ntawd los muab lub ntsiab lus teb-his tuaj tau rau ib lub qhov Web site rau kev cai.  Thaum cov neeg clicks nyob rau ib lub tab thiab clicks tus nrhiav khawm, tus tab dictates ib tug mus nrhiav tau.  Nws yuav ua zoo li ntawd, nyob deb.

</kawg>

Subscribe rau kuv blog.

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

Piv txwv: XSLT tsim HTML Href tus

Kuv twb tau ua me ntsis XSL khoom lately thiab xav tias kuv yuav muab sib dhos ib tug qauv rau kuv cov neeg siv yav tom ntej thiab uas tej zaum yuav nqis los rau peb sawv daws XSLT-ers ua ib tug nyob hauv cov internets.

Xav txog cov lus hauv qab no XML:

<FdcSearchTabsCollection suav = "2">
  <SearchTab daim ntawv lo = "kev lag luam" SortOrder = "00" daim ntawv lo = "Industries" SearchConstraints = "contenttype:Kev lag luam" TabID = "831b2a74-98c4-4453-8061-86e2fdb22c63" />
  <SearchTab daim ntawv lo = "txoj kev" SortOrder = "01" daim ntawv lo = "Practices" SearchConstraints = "contenttype:PracticeGroups" TabID = "678e206b-6996-421f-9765-b0558fe1a9c0" />
</FdcSearchTabsCollection>

Cov lus hauv qab no XSL snippet yuav tsim ib daim ntawv teev sorted txog hrefs tabs:

<xsl:Template match = "FdcSearchTabsCollection" xml:chaw = "khaws cia">
   
    <!– "Tagnrho cov" tab –>
    <ib tug href = "javascript:ViewTab('Txhua')">Saib tag nrho cov</ib tug>
   
    <!– Txhua tus neeg tab –>
    <!– Iterate los ntawm tag nrho cov Tabs thiab tso saib qhov tseeb  kev mus. –>
    <xsl:rau-ib qho = "SearchTab">
      <xsl:tsi select="@SortOrder"/>

      …
      <ib tug href = "javascript:ViewTab(‘{@ TabID}’)"><xsl:tus nqi-cov select="@Label"/></ib tug>
    </xsl:rau-ib>

    <br /> 
   

   </xsl:Template>

Nov yog qhov nws zoo li hauv SharePoint:

SNAGHTML78aa2cb

 

 

</kawg>

Subscribe rau kuv blog.

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

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>