UPDATE: Jeremy Thake je blogged o tome i staviti neke kod za konzole primjene koja prikazuje unutarnje imena.
Ja sam težak da biste dobili web dijela za pretraživanje sadržaja za prikazivanje datuma iz zadatka i zbog zaslon label "Datum dospijeća", Pretpostavila sam da stupac ime za korištenje u <CommonViewFields> je "Due_x0020_Date".
Pogrešno!
Pravi stupac ime u ovom slučaju bio "DueDate".
Kako sam ga pronaći? I re-read Heather Solomonov blog entry o preinakama CQWP to show additional columns of data. She describes this process at step #13. Trust it. It’s correct. Barem, it was correct for me. I did not trust it at first for another column with a much longer name.
Kažem "to povjerenje" because I did not trust it and probably wasted near two hours butting my head up against a wall. After I resolved the "DueDate" ime, Htjela sam dodati još polja <CommonViewFields>. Using the Solomon technique, Sam bio uzimajući stupca ime poput "XYZ_x0020_Project_x0020_Due_x00".
Pomislio sam:, that’s clearly a truncated name. I went ahead and un-truncated it with no success. I finally used the seemingly truncated name and it worked.
Bonus savjet: Kada sam radio s CQWP, ako sam dodao unutarnje loše ime <CommonViewFields>, the CQWP would tell me that the query had returned no results. Ali, ako sam dodao vrstu podataka za polje ime, it would return a result. Adding the data type actually masked a problem since I was referencing a non-existent field. I could add it, ali kad sam pokušao prikazati svoju vrijednost, I would always get a blank.
To se nije prikriti pogrešku:
<CommonViewFields>Due_x0020_Date;</CommonViewfields>
Ovo nije maska pogrešku:
<CommonViewFields>Due_x0020_Date,DateTime;</CommonViewfields>
</kraj>