Sortjar Punti Kalendarju fil-View Kalendarju

I’m using a calendar to track panel discussions on a given day. I have two sessions: morning and afternoon. I want to create a view that shows morning sessions only listed alphabetically via a session ID. This is a little tricky to accomplish (sakemm I qbiżt xi ħaġa reali ovvju).

I can easily create a filtered view showing just that day’s events. The calendar will show all those events and if they all take place on the same hour, it lists them side by side in the hour slot. That’s great. The tricky part is that, b'mankanza, it wants to list them in ID format. Allura, if I add "Session 02" and then "Session 01" il-kalendarju, jurihom f'dik l-ordni (I.E, Sessjoni 02 u mbagħad Sessjoni 01). To list them in Session ID order, Ħsibt li jippruvaw dawn l-affarijiet:

  1. Configure the view using the web user interface. No luck. There are no options to sort items this way.

    Peress li ma ħadmux, I am now hoping there’s a CAML query somewhere in there that will allow me to override the sort. CQWP lets me make that kind of change, maybe calendar will as well?

  2. Edit the web part, look for an "export" function and … BZZZT! I can’t export its XML. There is no export option.

    I’m still holding out hope that I can find and modify some CAML query. Since I can’t export the web part, that leaves SharePoint Designer.

  3. I add the calendar web part to a sandbox site and open that site using SharePoint Designer. I look at the markup for the web part and I find what I’m looking for. It’s encoded madness, but it’s there: "<ListViewXml …. >encoded madness</ListViewXml>". Speċifikament, hemm dan gem:

<Mistoqsija>
<Fejn>
<DateRangesOverlap>
<FieldRef Name="EventDate"/>
<FieldRef Name="EndDate"/>
<FieldRef Name="RecurrenceID"/>
<Value Type="DateTime">
<Xahar />
</Valur>
</DateRangesOverlap>
</Fejn>
<OrderBy><FieldRef Name="Session_x0020_ID" /></OrderBy>
</Mistoqsija>

(Stajt decoded l- &lt;"Iu &tal gt u maqsuma minnhom għal-linji multipli f'ġieħ iċ-ċarezza).

Żid il- <OrderBy> bit u issa xorta mill Sessjoni ID, mhux l-lista ta 'loġġetti ID intern.

Ġiganteski ponta o’ il-hat biex Becky Isserman għall-kummenti tagħha biex blog post Isha Sagi tal: http://www.sharepoint-tips.com/2008/07/caml-sorting-by-file-name.html. I wouldn’t have put the <OrderBy> fil-post dritt mingħajr kumment tagħha.

Nispera li tikteb dan up aktar ċar fir screen shots malajr, iżda fil-każ I qatt ma, inqas Jien għamilt dan ħafna.

</aħħar>

2 ħsibijiet dwar "Sortjar Punti Kalendarju fil-View Kalendarju

  1. L Hibbs

    Grazzi għall-info. Dan jaħdem bħal CHARM. Jien għamilt trick simili fuq tip multi-qasam (3 oqsma). L-unika kwistjoni ma 'l-editjar CAML huwa li jekk il-fehma hija modifikata, il-bidliet huma miktubin fuq xulxin. Iżda dan huwa l-ħajja!

    Grazzi għall-istazzjonar!

  2. Ħarxa

    I kien poġġa l-tikketta wara . Imma xorta mhux qed tapplika issortjar fuq Calendar tiegħi. Ukoll jekk I ipprovdi isem ant fil-valur FieldRef allura wkoll ma tarmi xi żball. Għal e.g. test123 kolonna ma jeżisti fil-kalendarju tiegħi imma jekk jien jippruvaw jużaw dan il-qasam allura wkoll il-paġna doesnot tarmi xi żball. I am not sure jekk il-tag qed taħdem. I am jużaw SharePoint 2010.

Ħalli Tweġiba għal Ħarxa tikkanċella risposta

Your email address mhux se jkun ippubblikat. Meħtieġa oqsma huma mmarkati *