Kuv yuav siv daim calendar los teev cia cov vaj huam sib luag tham ib hnub muab. Kuv muaj ob zaug: sawv ntxov ntxov thiab tav su. Kuv xav ua kom pom uas pom tias yog thaum sawv ntxov zaug xwb alphabetically teev ntawm ib daim ID qhib. Qhov no yog lo me ntsis mus ua kom tiav (ntshe kuv yuav tu tej yam cuab kev real).
Kuv tau yooj yim yuav tsim ib tug uas saib uas qhia cia tias hnub twg cov txheej xwm. Daim ntawv thov raws qhov yuav qhia tag nrho cov txheej xwm thiab yog lawv cov noj muab rau cov teev tib, nws teev lawv tog yog tog hauv cov teev qhov. zoo heev. Lo ib sab ntawd yog, los vim, nws xav ua phem rau lawv tus ID hom ntawv sau. Li ntawd, Yog tias kuv hais ntxiv "qhib 02" thiab luag "qhib 01" rau qhov lub, nws qhia lawv tias kom (i.e, Kho 02 thiab ces sib kho 01). Sau hais sib kho ID, Kuv xav tias tej no yuav ua tiag:
- Configure pom qhov siv tau cov web neeg interface. Tsis muaj hmoo. Yog tsis muaj kev xaiv kom khoom li no.
Vim tus uas tsis ua hauj lwm, Kuv yog tam sim no muaj hoping yog ib cov lus nug CAML qhov chaw nyob ntawd uas yuav, cia kuv mus override tus tsi. CQWP cia kuv ntawd tsi hloov ua, tej zaum daim yuav zoo li?
- Kho kom raug rau cov qhov Web site, nrhiav "export ib" nuj nqi thiab … BZZZT! Kuv tsis tau export nws cov XML. Yog tsis muaj kev xaiv export.
Kuv tseem tuav tawm vam cia tias kuv yuav nrhiav thiab hloov tej lus nug CAML. Vim kuv tsis tau export web ib sab, SharePoint Designer yoojyim uas.
- Ntxiv rau daim Web site qhov rau ib qhov chaw sandbox thiab qhib uas qhov chaw siv SharePoint Designer. Kuv saib cov markup rau ib sab qhov web thiab kuv pom dab tsi kuv tab tom nrhiav. Nws muaj encoded kev chim, tiam sis nws tseem muaj: "<ListViewXml …. >encoded kev chim</ListViewXml>". Yeej, yog lub pov haum:
<Lus nug>
<Nyob qhov twg>
<DateRangesOverlap>
<FieldRef Name = "EventDate" />
<FieldRef Name = "EndDate" />
<FieldRef Name = "RecurrenceID" />
<Value yam = "DateTime">
<Hli />
</Tus nqi>
</DateRangesOverlap>
</Nyob qhov twg>
<OrderBy><FieldRef Name = "Session_x0020_ID" /></OrderBy>
</Lus nug>
(Kuv twb decoded cov <tus thiab &lub gt thiab lawv hais kom cov kab ntau rau tus clarity sake phua).
Ntxiv rau <OrderBy> tshuav thiab tam sim no nws sorts los ntawm sib kho ID, tsis rau sab hauv daim ntawv teev khoom ID.
GIGANTIC taub o’ kaus mom rau Becky Isserman rau nws saib kom Isha Sagi blog ncej: http://www.sharepoint-tips.com/2008/07/caml-sorting-by-file-name.html. Kuv tsis tau muab cov <OrderBy> nyob rau hauv qhov chaw yog nws saib tsis tau.
Kuv vam tias sau ntawv no ntxiv kom meej meej screen txhaj tshuaj sai sai, tiam sis thaum kuv yeej tsis ua, ntawm kuv puas no much.
</kawg>