Təqvim View Calendar maddələr çeşidlənməsi

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 (Mən Aşkar real bir şey buraxılmış halda).

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, by default, it wants to list them in ID format. Belə, if I add "Session 02" and then "Session 01" to the calendar, it shows them in that order (i.e, Sessiya 02 and then Session 01). To list them in Session ID order, I thought to try these things:

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

    Since that didn’t work, 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, bəlkə Təqvimə eləcə də olacaq?

  2. Web hissəsi Düzenle, look for an "export" funksiyası və … Bzzz! 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, SharePoint Designer yarpağı.

  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, lakin o, var: "<ListViewXml …. >kodlanmış dəlilik</ListViewXml>". Xüsusi, there’s this gem:

<Sorğu>
<Harada>
<DateRangesOverlap>
<FieldRef Name="EventDate"/>
<FieldRef Name="EndDate"/>
<FieldRef Name="RecurrenceID"/>
<Value Type="DateTime">
<Month/>
</Dəyər>
</DateRangesOverlap>
</Harada>
<OrderBy><FieldRef Name="Session_x0020_ID" /></OrderBy>
</Sorğu>

(I’ve decoded the &lt;’s and &gt’s and split them out to multiple lines for clarity’s sake).

Add the <OrderBy> bit and now it sorts by Session ID, not the internal list item ID.

GIGANTIC tip o’ the hat to Becky Isserman for her comment to Isha Sagi’s blog post: http://www.sharepoint-tips.com/2008/07/caml-sorting-by-file-name.html. I wouldn’t have put the <OrderBy> in the right place without her comment.

I hope to write this up more clearly with screen shots soon, but in case I never do, at least I did this much.

</son>

2 Haqqında "fikirləriTəqvim View Calendar maddələr çeşidlənməsi

  1. L Hibbs

    Thanks for the info. Bu bir cazibədarlığı kimi işləyir. Mən bir çox sahədə cür oxşar oyun idi (3 sahələri). Ki, CAML redaktə ilə yalnız məsələ odur ki, fikrini redaktə əgər, dəyişikliklər üzerine var. Lakin bu həyat!

    Poçt üçün təşəkkür edirik!

    Cavab
  2. Sərt

    Mən sonra tag qoymuşdu . Amma hələ də mənim Calendar çeşidlənməsi tətbiq deyil. Mən FieldRef dəyəri qarışqa ad Həmçinin, əgər bunu da hər hansı bir səhv atmaq deyil. E.g üçün. test123 sütun mənim Təqvimə mövcud deyil, amma bu sahədə istifadə etməyə çalışırıq, əgər, bu səhifənin doesnot hər hansı bir səhv atmaq. Mən tag iş olub-olmadığını əmin deyiləm. Mən SharePoint istifadə edirəm 2010.

    Cavab

Bir cavab buraxın Sərt Cavab ləğv

E-poçt ünvanından dərc olunmayacaq. Lazım alanlar qeyd olunur *