Interesting iPhone thov

image Cov mobile team nov hauv Slalom muaj tsim ib tug ntawv iPad txias heev uas combines virtual kev muaj tiag augmentation w/ offline muaj rab peev xwm yuav muab dab tsi yuav tau qhov zoo tshaj plaws New York subway finder thiab routing app muaj hnub no.

Ntawm no yog cov kawm ntawv txog cov app rau ntau yam: http://www.nycstationfinder.com/.

Kuv tsis muaj cov kua khoom ntawv ces kuv yuav tsis kuaj nws tawm ntawm kuv tus kheej, tiam sis nws zoo zoo nkauj txias. Kuv tabtom hoping lawv port nws nyob rau hauv sai sai.

</kawg>

Subscribe rau kuv blog.

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

MVP rov

Microsoft rov muab kuv cov SharePoint MVP rau lub Xya hli 1 xyoo no thiab nws yog exciting tsis tsawg tshaj yog thawj thawj zaug plaub xyoos dhau los.

SharePoint zej zog yog ib tug chaw amazing xwb.  Kuv nco txog thaum kuv twb xub tswvcuab rau SharePoint yog kuv qhov chaw ua haujlwm qub, Conchango.  Kuv twb tsis zoo siab txog nws Luag nyav.  Kuv twb tau nyob rau hauv ib lub ntiaj teb BizTalk rau lub xyoo los yog ob tug ua rau kuv txoj hauj lwm nws muaj thiab ua ntej uas, ua haujlwm hauv lub ntuj uas cov neeg thiab lub tuam txhab uas muag uas ua tau ib tug nyob tawm ntawm insular Npaj Software.  Kuv hais "insular" vim lub ntiaj teb no SharePoint yog dabtsi, tab sis!

Kuv pheej zoo siab thiab tus pog mus yuav tau ib feem ntawm no bizarre hauv internet zog ntawm cov neeg uas hnov feeb compelled mus blog endlessly, tso lawv Saturdays dawb tham, muaj dab nyob hauv internet forums, ua txhua yam khoom whacked tawm dawb uas yuav muab mus rau ntawm CodePlex thiab ib myriad ntawm lwm lub zej zog kev nrhiav thiab qhov ntau thiab tsawg. 

Kuv tsis paub tias yog dab tsi txog qhov khoom inspires no volunteerism thiab immersion, tab sis, kuv vam tias yeej tsis hloov.

</kawg>

Subscribe rau kuv blog.

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

Cia Shining piv txhuas txoj kev muaj zog tu SharePoint

Luam kuv thawj "ntshiab" BrightStarr blog nkag tau tawm hnub no.  Ntawm no yog ib teaser:

Muaj tau txoj kev sib tham rau ntawm tus Internets lig lawm rau lub npe ntawm tus me nyuam los tu SharePoint thiab tshwj xeeb tshaj yog cov tsis thereof heev. Tsis muaj leej twg xav mus rau txhua qhov teeb meem ntawm vim kev ua liaj ua teb thiab ruaj ntseg infrastructure, mus koom rau hauv kev cob qhia, sau ua ke rau ib snazzy thiab mloog tus mob, ua hauj lwm tawm ib pob zeb qhia khoom architecture uas tau mas lub vicissitudes ntawm tuam txhab re-orgs thiab thaum kawg, ib tug puv fanfare rollout cia li mus nrhiav tau peb lub hlis ncej mus-nyob uas tsawg tshaj 50% ntawm qhov cov neeg ua haujlwm siv cov SharePoint thiab lawv feem ntau yog siv nws los hloov tus laus network ntaub ntawv servers ("tus S:\ tsav").

Tsis muaj cov nyiaj mos txwv (los yog blog xwb ncej) yuav kom daws tau qhov teeb meem ntawd. Txawm li cas los, muaj ntau ntau yam uas koj yuav ua tau kom txo qhov kev uas yuav muaj kev anemic SharePoint portal. Tej txheej txheem ib yog cov "Shining piv txwv txawv."

Kuv xav paub txog lwm SharePoint los tu cov tswv yim uas koj tu los sib hlub nws.  Yog hais tias koj tsis koom, thov koj cia li ib tug saib rau ntawm tus BrightStarr blog.

Nyeem tag nrho qhov nov: http://www.brightstarr.com/US/Pages/blog-view.aspx?BlogID=52

</kawg>

Subscribe rau kuv blog.

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

"Saib tsis” mus Default.aspx rau ib SharePoint 2010 Sub Site

Ib tug ntawm kuv cov neeg mus nyob nrog lawv cov SharePoint 2010 chaw hnub no.  Peb sab tias ib yam los ntawm cov neeg tsis tau nkag tau cov nplooj ntawv vim lub tsev.  SharePoint teb nrog "Ntawv tsis pom zoo" thiab tus li ib txwm "tuaj sau npe rau hauv kom lwm tus neeg siv" lossis "thov mus saib" teb. 

Thaum twg peb siv lub nifty "Mus saib" kev ua nws yuav paub tseeb tias tus neeg siv cov kawg tiag puas tau.  Tsis tau, lawv tsis tau mus rau sab.

Kuv taug heev ntawm txoj kev mus txog hnub tuag kom txog thaum kuv yuav txiav txim siab los sib piv cov qhov Web site nyob rau sab tiv thaiv tsis tau ua hauj lwm sab zoo lawm.  Kuv puas uas tso rau sab hauv nkawm hom los ntawm kev ntxiv"?txheem = 1 "mus rau sab. Li ntawd, nws ntsia zoo li "http://server/subsite/subsite/default.aspx?txheem = 1 ". 

Qhov no tsom kuv ob tug web site qhov hu ua "Yuam kev" rau ib nqe lus piav li "Yuam kev" nyob rau lawm sab.  Kuv tsis xav tias yuav nqa ib cov nqi tshuaj ntsuam thaum lub sij hawm.

Kuv muab tshem lawv thiab solved qhov teeb meem uas.

Kuv pom ib nqe lus nug zoo li no tuaj txog rau hauv forums yav dhau los thiab kuv twb tsis tshua muaj neeg skeptical txog cov daim ntawv loj loj insistence uas nws tau teem kom ruaj.  Kuv * paub * kuv tau muaj kev ruaj ntseg uas txoj cai teem Luag nyav  Lwm zaus, Kuv mam li yuav qhib ntau thiab tsawg skeptical.

</kawg>

Subscribe rau kuv blog.

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

XSLT thiab jQuery Samples

Kuv tau raug ua ntau heev nyob ntawm XSLT thiab jQuery, thiab kuv yuav muab ib ob peb snippets uas lwm tus tau nrhiav pab yav thought.

Piv txwv 1: Emit yooj yim JavaScript / jQuery hauv XSLT:

<xsl:Template match = "tej yam" xml:chaw = "khaws cia">

  <!– Dawb paug tawm tau cov lus nug cov ntxaij lim dej tus phooj ywg thaum teb –>
  <Script yam = "ntawv nyeem/javascript">
    $(daim ntawv).npaj txhij(muaj nuj nqi(){
      $("#QueryFriendlyFilters").val("tas");
    });
  </tsab ntawv>

</xsl:Template>

Tus ntsis emits ib co JavaScript waits rau ntawm nplooj los suaj kaum rau nraum chaw thau khoom (vim tias tus $(daim ntawv).npaj txhij(…)) hu ces poob lawm tus nqi thaum teb ua QueryFriendlyFilters mus rau cov nqi literal "tas".

Piv txwv 2: Siv <xsl:Yog hais tias> saib "ntau dua",  "tsis tau muaj", yam.

<xsl:Template match = "tej yam" xml:chaw = "khaws cia">

  <div daim id = "fdcAllFilters">
 
    <xsl:yog test="@Count>0">
      <ntsua kev kawm = "fdcFilterLabel">Lim tam sim no:</ntsua kev>
    </xsl:Yog hais tias>

    <!– ntxiv khoom zoo li no. –>

</xsl:Template>

Saum cov snippet nug saib puas yog ib tug attribute npe hu ua "Suav" ntawm cov "tej yam" caij ntau dua zero.  XML hauv qab no yuav ua ib yam dab tsi zoo li:”

<yam suav = "5" />

Piv txwv 3: Iterate los ntawm tag nrho cov ntsiab, interspersing jQuery hu.

<!– Iterate los ntawm txhua lub lim thiab tso saib qhov tseeb  kev mus. –>
<xsl:rau-ib qho = "UserFilter">

  <hoob kawm = "FilterHref" href = "javascript:mySubmitPage('RemoveUserFilter','{@ID}’)">[X]</ib tug>

  <ntsua kev kawm = "fdcFilterLabel"><xsl:tus nqi-cov select="@FilterValue"/></ntsua kev>

  <Script yam = "ntawv nyeem/javascript">

    $(daim ntawv).npaj txhij(muaj nuj nqi(){
        <xsl:ntawv nyeem><![CDATA[$("#QueryFriendlyFilters").val( ($("#QueryFriendlyFilters").val() + " ]]></xsl:ntawv nyeem>\"<xsl:tus nqi-cov select="@FilterValue"/>\"<xsl:ntawv nyeem><![CDATA["));]]></xsl:ntawv nyeem>
    });

  </tsab ntawv>

</xsl:rau-ib>

Saum cov snippet yog tus tshaj txoj thiab tej zaum yuav muaj txoj kev uas yooj yim ua.

Lub XML qab no zoo roughly li no:

<UserFilter ID = "123" FilterValue = "xyzzy" />

Cov snippet no yog ntsuas los ntawm <UserFilter> o. 

Nws xub emits ib lub thauj tog rau nkoj tag uas thaum clicked invokes ib JavaScript zoo uas twb yog nyob rau sab, "mySubmitPage" thiab kis tau tus nqi ntawm ib lub attribute lub <UserFilter> ntawm hu ua "ID". 

Nws mam li emits ib co jQuery waits rau rau sab mus thauj khoom.  Tus jQuery siab thaum teb hu ua "QueryFriendlyFilters" los ntawm kev ntxiv cov nqi ntawm qhov FilterValue attribute.  Nco ntsoov txhua lub crazy <xsl:ntawv nyeem> thiab <![CDATA[ … ]]> khoom.

Tus ntawd yog nws, vam tias nws yuav pab!

</kawg>

Subscribe rau kuv blog.

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

PerformancePoint thiab yuam kev 33494

Ib tus neeg tau kuv hu ua hnub no thaum twg PerformancePoint ib puag ncig (nyob rau hauv SharePoint 2010) dam lawm.  Yog ib qhov app servers nyob hauv lub teb twb khiav tsawg ntawm qhov chaw disk.  Hos thaum hais tias, cov neeg uninstalled "ntau heev" thiab cov PP khoom txhua tsis tau hauj lwm.  Ntau qhov chaw hauv web yuav qhia "ib qho yuam kev lawm npaj txhij txog neeg. Yuam kev 33494. In thiaj li txhawb ntxiv tau raug tso rau koj cov neeg khiav dej num":

image

Ntsia cov yuam kev thiab tsis paub dab tsi hais rau "yuam kev 33494" tiam sis no MSDN forums xo yog yuav pab tau: http://social.technet.microsoft.com/forums/en-us/sharepoint2010setup/thread/E1FE189D-7F89-455D-A98B-C1A12D8626AB

Kuv nyob ADOMD.NET nov li ib tivthaiv rau hauv tus neeg rau zaub mov SQL 2008 Feature pob: http://www.microsoft.com/downloads/en/details.aspx?FamilyId=228DE03F-3B5A-428A-923F-58A033D316E1&displaylang=en

image

(nyem qhov ntug)

Download tau thiab ntsia ntawd thiab nws tas txhua yam.

Kuv xav tias qhov no yog ib yam zoo nkauj oddball kev yuam kev, tab sis, yog hais tias koj yuav tsoo nws, koj tsawg kawg yog koj muaj ib qho kev xaiv.

</kawg>

Subscribe rau kuv blog.

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

Lists.asmx, GetListItems thiab Folders

Kuv tau ua tej kev soj ntsuam rau ib tug neeg niaj hnub ncig lub list.asmx Web site pab muaj li ntawm SharePoint 2010 (thiab ua ntej lawm).  Nws tau txais cov ntawv teev khoom ntawm lub hauv paus sis (xws li lub npe ntawm sub-folders), tab sis, tsis tau txais cov khoom nyob rau hauv sub-folders.  Kuv puas tau ib co saib ib ncig ntawm lub internets, thiab nws yog ib qho kuj ceeb tias lo lus nug.  Tsis tau, Kuv tsis tau muab lus teb rau lo lus nug yooj yim zoo, "yog hais tias kuv paub lub ceev, cas kuv yuav tau txais cov khoom nyob rau hauv daim nplaub tshev?”  Yuav tsis ncaj ncees, Kuv ho tsis sim ib tag li vim kuv yeej xav kom daim duab no ib qho tawm ntawm kuv tus kheej ib pliag Luag nyav.

Teeb no, Kuv tsim ib qhov chaw uas hu ua "Blogging Scenarios" thiab cov kev cai sau npe hu ua "Kev cai sau nrog Sub Folders".  Kuv ces zoo folders muaj npe:

  • Xyoo 2005
  • Xyoo 2006
  • Xyoo 2007

Kuv tov ob peb yam khoom rau hauv daim nplaub tshev "xyoo 2006".  Qhov no yog qhov uas nws zoo li:

image

Tab sis kuv cov phooj ywg tsis yog sau ntawv C# code, theej siv Java, vim li ntawd hauv lub hnab ntawv uas tsis yog tshuaj ntxuav tes muaj li nws yeej tau.  Tau tias, Sau tau me ntsis txog cov jQuery thiab ces muab fiddler los mus sib tham HTTP txhua lub sij.

Nov yog yam hais txog cov jQuery (Tau kuv theej lub chaws los hauv qab no yog koj xav luam los muab tshuaj):

image

Lawv thawj qhov tseem ceeb yog kom muaj ob lub <queryOptions> thiab <QueryOptions> ntawm.  Tus yuam sij thib ob uas yog tus <Ceev> ntawm no ib URL uas tus neeg muaj ntaub.

Tej zaum yuav muaj lwm txoj kev kom tau no, tab sis qhov haujlwm zoo rau kuv thaum uas siv cov jQuery.

Nov yog lub hnab ntawv tshuaj ntxuav tes mus rau saum:

<soapenv:Hnab ntawv xmlns:soapenv =’http://schemas.xmlsoap.org/soap/envelope/’>                
  <soapenv:Lub cev>
    <GetListItems xmlns =’
http://schemas.Microsoft.com/sharepoint/soap/’>
      <listName>Kev cai sau nrog Sub Folders</listName>
      <viewFields>  
        <ViewFields>
          <FieldRef Name ='Title’ />
          <FieldRef Name ='EncodedAbsUrl’ />
        </ViewFields>
      </viewFields>
      <queryOptions>
        <QueryOptions>
          <Ceev>
http://demoserver1/Blogging Scenarios/npe/nchuav sau nrog Sub Folders los lub xyoo 2006</Ceev>
        </QueryOptions>
      </queryOptions>
   
</GetListItems>
  </soapenv:Lub cev>
</soapenv:Hnab ntawv>

Ntau cov lus piv ntxwv thiab kev sib sab laj nyob ib ncig ntawm no coj kuv ntseeg tias txhua yam kuv xav tau <QueryOptions> thiab hais kom meej nplaub tshev npe.  Rau kuv, Kuv xav kom neb ob leeg qhwv nws sab hauv <queryOptions> li zoo li qhia kom meej URL mas tsim nyog rau cov <Ceev> ntawm.

Ntawm no yog cov jQuery AJAX teeb:

$(daim ntawv).npaj txhij(muaj nuj nqi() {
       Var soapEnv =
           "<soapenv:Hnab ntawv xmlns:soapenv =’http://schemas.xmlsoap.org/soap/envelope/’> \
               <soapenv:Lub cev> \
                    <GetListItems xmlns =’http://schemas.Microsoft.com/sharepoint/soap/’> \
                       <listName>Kev cai sau nrog Sub Folders</listName> \
                       <viewFields> \
                           <ViewFields> \
                              <FieldRef Name ='Title’ /> \
                              <FieldRef Name ='EncodedAbsUrl’ /> \
                          </ViewFields> \
                       </viewFields> \
                       <queryOptions> \
                         <QueryOptions> \
                           <Ceev>http://demoserver1/Blogging Scenarios/npe/nchuav sau nrog Sub Folders los lub xyoo 2006</Ceev> \
                         </QueryOptions> \
                       </queryOptions> \
                   </GetListItems> \
               </soapenv:Lub cev> \
           </soapenv:Hnab ntawv>";

</kawg>

Subscribe rau kuv blog.

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

Lists.asmx, GetList thiab "tus nqi tsis raug null”

Kuv sab hnub uas cov GetList() txoj kev ua lists.asmx cov qhov Web site yog hu ua tib zoo heev lawm los sis yog nws muab pov ib mysterious kos "Tus nqi tsis tau thov" (thiab cov piv txwv uas yog tias koj tau txais yav tas los tseem heev tshaj generic yuam kev hais, "Kos yam ' Microsoft.SharePoint.SoapServer.SoapServerException’ ces muab pov twb tseg.")  Yeej, Kuv pom tias koj muab tsis tau prefix txhua yam nyob rau hauv cov txujci GetList.  Cov nram qab no jQuery snippet illustrates tus taw tes:

image

Yog hais tias ua li, qhov kev pab cov qhov web teb nrog "Tus nqi tsis tau thov" as per qhov no fiddler-yog muab HTTP transcript:

<?xml version = "1.0 Tub ntxhais" encoding = "utf-8"?>
  <xab npum:Hnab ntawv
     xmlns:xab npum ="
http://schemas.xmlsoap.org/soap/envelope/"    
     xmlns:xsi = "
http://www.w3.org/ 2001/XMLSchema-lom
     xmlns:xsd ="
http://www.w3.org/ 2001/XMLSchema">

  <xab npum:Lub cev>
    <xab npum:Txhaum>
      <faultcode>xab npum:Neeg rau zaub mov</faultcode>
      <faultstring>
        Kos yam ' Microsoft.SharePoint.SoapServer.SoapServerException’ ntawd ces muab pov tseg.
      </faultstring>
      <nthuav dav>
        <errorstring xmlns ="
http://schemas.Microsoft.com/sharepoint/soap/">
Tus nqi tsis tau thov.
        </errorstring>
      </nthuav dav>
    </xab npum:Txhaum>
  </xab npum:Lub cev>
</xab npum:Hnab ntawv>

tau mas, koj ntshe tsis ntxiv ntawd cov prefix "s0" ntawm tus kheej, tiam sis yog nws ua ib co cuab yeej (zoo li cov dab noj hnub).

Qhov no yog tag yim ruam tag / frustrating vim hais tias muaj lwm txoj kev tso ua kawg.  Piv txwv, lub GetListCollection txoj kev tsis mloog yog hais tias nws yog raug prefixed, Txawm tias yog muaj dev paus ua kawg xws li "xyzzy":

image

Qhov no "tus nqi tsis tau thov" rau nkawd MBDD ntau nrog lists.asmx hopefully li no yuav pab lwm tus neeg paub yav.

</kawg>

Subscribe rau kuv blog.

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