Egutegia elementuak ordenatzeko Egutegia ikuspegian

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 (galdu dut zerbait erreala, begi-bistakoa ez bada behintzat).

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, lehenetsi, it wants to list them in ID format. Beraz,, if I add "Session 02" and then "Session 01" egutegian, horiek erakusten ditu, ordena horretan (I.E, Session 02 eta, ondoren, Session 01). To list them in Session ID order, Gauza horiek saiatu pentsatu nuen:

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

    Ez zuen lan noiztik, 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, agian egutegia izango baita?

  2. Editatu web zatia, look for an "export" funtzioa eta … 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, uzten 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, baina ez da: "<ListViewXml …. >kodetuta eromena</ListViewXml>". Zehazki, altxor hau ez da:

<Kontsulta>
<Non>
<DateRangesOverlap>
<FieldRef Name="EventDate"/>
<FieldRef Name="EndDate"/>
<FieldRef Name="RecurrenceID"/>
<Value Type="DateTime">
<Hileko />
</Balio>
</DateRangesOverlap>
</Non>
<OrderBy><FieldRef Name="Session_x0020_ID" /></OrderBy>
</Kontsulta>

(Dekodetu dut &lt;'S eta &GT eta zatitu itzazu hainbat lerro argitasun horrek onerako).

Gehitu <OrderBy> pixka bat, eta, gaur egun, mota Session ID arabera, Ez barneko zerrendako elementu ID.

Erraldoi punta o’ a kapela Becky Isserman bere Isha Sagi-ren blog post iruzkina: http://www.sharepoint-tips.com/2008/07/caml-sorting-by-file-name.html. I wouldn’t have put the <OrderBy> iruzkin gabe bere lekuan.

Hau argiago idazteko pantaila plano batekin, laster espero dut, baina kasu horretan ez dut sekula egin, gutxienez, askoz ere hau egin nuen.

</amaiera>

2 buruzko gogoeta "Egutegia elementuak ordenatzeko Egutegia ikuspegian

  1. Hibbs du

    Informazioa esker. Funtzionatzen duen xarma bat bezalakoa da. Antzeko trikimailu bat egin nuen multi-eremua ordenatu batean (3 eremu). CAML editatzen arazo bakarra da ikuspegia aldatzen bada, aldaketak gainidatzi. Baina hori da bizitza!

    Argitaratzeko esker!

    Erantzun
  2. Gogorra

    Jarri nuen Etiketa ondoren . Baina oraindik ez da nire ordena aplikatuz Egutegia an. Horrez gain, bada ant izena eman nuen FieldRef balio gero ere, ez du bota akatsen. E.g egiteko. test123 zutabean ez da existitzen nire egutegian, baina saiatu naiz eremu hori erabili nahi izanez gero ere Orrialdearen doesnot da akatsen bat bota. Ez nago ziur etiketa den lan. SharePoint erabiltzen dut 2010.

    Erantzun

Utzi iruzkin bat Gogorra Utzi erantzuna

Zure e-posta helbidea ez da argitaratuko. Beharrezko eremuak markatu dira *