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:
- 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?
- 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.
- 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- <"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>