Piv txwv li SharePoint so hu

Hauv qab no yog qauv so hu uas ua hauj lwm rau kuv thiab tej zaum yuav pab tau koj thiab txheej. Li ntawm 02/2014, yog piv txwv 2 🙂

  1. Reference ib sab nrog rau tej qhov chaw hauv nws lub npe
  2. Siv ib tug ncej tag ntau qho
  3. Ua ib tug neeg mus nrhiav ntawm so

 

Kuv mam ntxiv rau qhov no raws li lub sij hawm dhau mus.

Nov yog ib co pab inks kuv twb pom zoo li:

Reference ib sab nrog rau tej qhov chaw hauv nws lub npe

Kuv tsim ib daim ntawv teev kev cai nrog rau ib sab hu ua "Blog sau" (qhov chaw ntawm cov Blog thiab sau).

Yog tus $select mus reference ntawd qhia kiag:

image

Ib tsab no yuav hloov tau qhov chaw uas "_x0020_". Peb pom cov _x0020_ nyob rau cov qauv no nyob rau internets thiab so kom txaus yog tsis txawv.

Yog hais tias tsis txhob ua li, koj nyob nraum nyog yuav tau txais ib qho lus yuam kev li no:

Cov qhia “Blog sau” yog tsis siv tau.

Yooj yim txaus.

Siv ib qho ntau Lookup sab

Teeb:

  1. Tsim ib daim ntawv teev kev cai hu ua pawg.
  2. Ntxiv rau tej pawg. Kuv ntxiv tus kab thusly:image
  3. Tsim dua sau kev cai hu ua MockBlog thiab ntxiv cov pawg raws li ib qho ntau teev kem (los yog qhov chaw qhia kiag tias yog li cas koj ntog).

Ntxiv ib co khoom rau koj daim ntawv teev hauv Mockblog thiab koj.

Tus Ajax style hu siv jQuery yuav nrhiav tej yam zoo li no:

serverUrl  = "/_api/web/npe/GetByTitle('MockBlog')/khoom" +
             "?$xaiv = Title,Pawg/Title,Blog_x0020_Author/Title" + 
             "&$nthuav = Blog_x0020_Author,Pawg";

Peb nyob nraum qhia SharePoint "muab kuv lub npe rau txhua pawg (Pawg/Title). Tau qhov tseeb qhov tseem ceeb rau Npe by $nthuaving pawg daim ntawv." (Kuv RESTful paraphrasing yog xoob ntshe zoo nkauj, tab sis qhov no li cas kuv tabtom txhais tau tias).

Yog koj nyob nraum ua no ntawm JavaScript thiab siv cov Fiddler nyob hauv cov zis, koj mus muab tau tej yam zoo li no koom:

 

image

(Cov saum no yog ib yam twj paj nruas JSON)

Ua ib tug neeg mus nrhiav ntawm so

Kuv blogged txog no nyias. Lub ntsiab yog hais kom meej ib sourceid parameter cov nqi uas nws yog tus GUID uas yog lub zos neeg qha qhov. (Qha qhov chaw siv yog hu ua scopes thiab yog kuv-huag-kuv nyuaj ua luaj tsis txhob hu rau txhua tsav txhua tus uas duav txhua yam rau kuv!).

Read ntxiv hais txog nws ntawm no: http://www.mstechblogs.com/paul/?p=10385

 

</kawg>

undefinedSubscribe rau kuv blog.

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

sau ntawv cia

Koj email chaw nyob yuav tsis muab luam tawm. Search cim *