Txoj kev sai thiab yooj yim: Seb lub npe qhia kiag ntawm ib qhov chaw kem

HLOOV TSHIAB: Jeremy Thake muaj kev blogged txog qhov no thiab yuav muab ib co chaws rau ib daim ntawv thov console uas pom tias yog lub npe.

Kuv twb ua tau ib cov lus nug qhov web qhov mus tso saib ib hnub so ntawm kev ua hauj lwm ib thiab vim tias daim screen "Hnub", Kuv assumed uas qhia kiag lub npe siv nyob rau hauv <CommonViewFields> yog "Due_x0020_Date".

Tsis ncaj ncees lawm!

Rau lub npe tiag qhia kiag qhov no yog "DueDate".

Kuv mus nrhiav puas tau nws li cas? Kuv rov nyeem Heather Xatau-ntoos lub blog nkag rau modifying CQWP qhia ntxiv txhua cov ntaub ntawv. Nws piav txoj kev no kauj ruam #13. Nws ntseeg. Nws yeej muaj tseeb. Tsawg, yog tseeb rau kuv. Kuv yeej tsis ntseeg nws nyob rau ib sab nrog ib tug ntau ntev lub npe ua ntej.

Kuv hais tias "ntseeg nws" vim kuv yeej tsis ntseeg nws thiab tej zaum lub sij hawm nyob ze ob teev butting kuv taub hau up against ib phab ntsa. Tom qab kuv lawm "DueDate cov" lub npe, Kuv xav mus ntxiv rau lwm daim teb mus <CommonViewFields>. Siv tus txheej txheem Xatau-ntoos, Kuv tau txais ib kem lub npe zoo li cov "XYZ_x0020_Project_x0020_Due_x00".

Kuv xav hais rau kuv tus kheej, li no kom meej meej tau ib tug lub npe truncated. Kuv mus ntej thiab tsis truncated nws tsis tau zoo. Kuv thaum kawg siv lub npe seemingly truncated thiab nws ua haujlwm.

Lawm muaj ntsis: Thaum kuv tau nrug cov CQWP, Yog hais tias tus phem lub npe ntxiv kuv <CommonViewFields>, tus CQWP yuav qhia kuv tias cov lus nug yuav tsum rov qab tsis tau. Tab sis npog, Yog hais tias kuv ntxiv ib cov hom ntaub ntawv rau cov cov npe teb, nws yuav rov muaj tshwm sim. Muab cov ntaub ntawv yam ua tau masked ib qho teeb meem vim kuv yog referencing teb tsis-existent. Kuv phem muab nws, tiam sis thaum kuv sim mus tso saib nws cov nqi, Kuv puas yuav tsum tau ib VOJVOOS.

Qhov no tsis tau npog qhov yuam kev:

<CommonViewFields>Due_x0020_Date;</CommonViewfields>

Qhov no puas tau los npog qhov yuam kev:

<CommonViewFields>Due_x0020_Date,DateTime;</CommonViewfields>

</kawg>

3 xav txog"Txoj kev sai thiab yooj yim: Seb lub npe qhia kiag ntawm ib qhov chaw kem

  1. Corey
    Siv "yuj lub" txheej txheem tsis yog phem dhau rau ib los yog ob lub teb. Tab sis, cov lookups loj heev kuv siv cov Stramit Caml tuav txuas. Kuv yeej nyiam ntawd ib tug zoo li tus U2U ib — Nws yog keej heev thiab nws twb tau lub zoo feature xa cov CAML ua StringBuilder code.
    Teb

sau ntawv cia

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