ತ್ವರಿತ ಮತ್ತು ಸುಲಭ: ಒಂದು ಸೈಟ್ ಲಂಬಸಾಲಿನ ಆಂತರಿಕ ಅಂಕಣ ಹೆಸರು ನಿರ್ಧರಿಸಲು

ನವೀಕರಿಸಲು: ಜೆರೆಮಿ ಥಾಕೆ has blogged about this and put up some code for a console application that shows internal names.

I was trying to get a content query web part to display a due date from a task and because the screen label is "Due Date", ನಾನು ಕಾಲಮ್ ಹೆಸರಿನಲ್ಲಿ ಬಳಸಲು ಊಹಿಸಲಾಗಿದೆ <CommonViewFields> is "Due_x0020_Date".

ತಪ್ಪಾದ!

The real column name in this case was "DueDate".

How did I find it? I re-read Heather Solomon’s blog entry on modifying CQWP to show additional columns of data. She describes this process at step #13. Trust it. It’s correct. ಕನಿಷ್ಠ, it was correct for me. I did not trust it at first for another column with a much longer name.

I say "Trust it" because I did not trust it and probably wasted near two hours butting my head up against a wall. After I resolved the "DueDate" ಹೆಸರು, I wanted to add another field to <CommonViewFields>. Using the Solomon technique, I was getting a column name like "XYZ_x0020_Project_x0020_Due_x00".

I thought to myself, 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 tip: When I was working with the CQWP, if I added a bad internal name to <CommonViewFields>, the CQWP would tell me that the query had returned no results. ಆದರೆ, if I added a data type to the field name, 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, but when I tried to display its value, I would always get a blank.

This did not mask the error:

<CommonViewFields>Due_x0020_Date;</CommonViewfields>

This did mask the error:

<CommonViewFields>Due_x0020_Date,DateTime;</CommonViewfields>

</ಕೊನೆಯಲ್ಲಿ>

3 ಮೇಲೆ "ಆಲೋಚನೆಗಳುತ್ವರಿತ ಮತ್ತು ಸುಲಭ: ಒಂದು ಸೈಟ್ ಲಂಬಸಾಲಿನ ಆಂತರಿಕ ಅಂಕಣ ಹೆಸರು ನಿರ್ಧರಿಸಲು

  1. Waldek Mastykarz
    Some time ago I have faced even more issues related to Content Types and Columns: Internal names, Titles and Static names. ನಂತರ ಒಂದು ನನ್ನ ಬಲ ಹೆಸರುಗಳು ಹಿಂಪಡೆಯಲು ಸಹಾಯ ಸ್ವಲ್ಪ ಗ ಮಾಡಲು ನಿರ್ಧರಿಸಿದರು ಹಾಗೆಯೇ. ನೀವು ಒಂದು ನೋಟ ಹೊಂದಿರಬಹುದು: http://www.sharepointblogs.com/tmt/archive/2007/08/24/imtech-fields-explorer.aspx

ಒಂದು ಉತ್ತರಿಸಿ ಬಿಡಿ

ನಿಮ್ಮ ಈಮೇಲ್ ವಿಳಾಸ ರ ಆಗುವುದಿಲ್ಲ. ಅಗತ್ಯವಿರುವ ಜಾಗ ಗುರುತಿಸಲಾಗಿದೆ *