Flokkun dagbókaratriði í dagbókarskjánum

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 (nema að ég missti eitthvað alvöru augljóst).

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, sjálfgefið, it wants to list them in ID format. Svo, ef ég bæta við "fundur 02" og þá "Session 01" í dagbók, það sýnir þá í því skyni (i.e, Fundur 02 og þá þing 01). To list them in Session ID order, Ég hélt að reyna þetta:

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

    Þar sem ekki vinna, 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, kannski dagbók mun svo?

  2. Breyttu vefur hluti, look for an "export" virka og … 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, sem fer 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, en það er það: "<ListViewXml …. >kóðuð Madness</ListViewXml>". Sérstaklega, það er þetta gimsteinn:

<Fyrirspurn>
<Hvar>
<DateRangesOverlap>
<FieldRef Nafn = "EventDate" />
<FieldRef Nafn = "EndDate" />
<FieldRef Nafn = "RecurrenceID" />
<Value type = "datetime">
<Mánuður />
</Gildi>
</DateRangesOverlap>
</Hvar>
<OrderBy><FieldRef Name = "Session_x0020_ID" /></OrderBy>
</Fyrirspurn>

(Ég hef afkóða að &lt;Er og &s GT og skipta þeim út til margar línur fyrir sakir skýrleika í).

Bæta við sem <OrderBy> hluti og nú er tegund af ID Session, ekki innri listi atriði ID.

Risa ábending o’ húfan að Becky Isserman til umsagnar hennar til blogg Isha Sagi í: http://www.sharepoint-tips.com/2008/07/caml-sorting-by-file-name.html. I wouldn’t have put the <OrderBy> á réttum stað án athugasemda hennar.

Ég vona að skrifa þetta upp betur með skot skjár fljótlega, en ef ég geri aldrei, að minnsta kosti ég gerði þetta mikið.

</enda>

2 hugsanir á "Flokkun dagbókaratriði í dagbókarskjánum

  1. L Hibbs

    Takk fyrir info. Það virkar eins og a þokki. Ég gerði svipað bragð á multi-sviði tagi (3 sviðum). Eina málið með að breyta CAML er að ef útsýnið er breytt, breytingar eru plága. En það er lífið!

    Takk fyrir að senda!

    Svara
  2. Harsh

    I had put the tag after . But still it is not applying sorting on my Calendar. Also if I provide ant name in FieldRef value then also it does not throw any error. For e.g. test123 column does not exists in my calendar but if I try to use this field then also the page doesnot throw any error. I am not sure whether the tag is working. I am using SharePoint 2010.

    Svara

Leyfi svar við Harsh Hætta við svar

Netfangið þitt verður ekki birt. Nauðsynlegir reitir eru merktir *