త్వరిత మరియు సులువు: ఒక సైట్ కాలమ్ యొక్క అంతర్గత కాలమ్ పేరు నిర్ణయించటానికి

UPDATE: జెరెమీ Thake ఈ విషయాలను గురించి తన బ్లాగులో మరియు కొన్ని అప్ చాలు ఉంది ఒక కన్సోల్ వినియోగానికి కోసం కోడ్ అంతర్గత పేర్లు చూపే.

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".

నేను దానిని ఎలా కనుగొన్న? I re-read Heather 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" పేరు, నేను మరొక రంగంలో చేర్చాలని కోరుతున్నాయి <CommonViewFields>. Using the Solomon technique, I was getting a column name like "XYZ_x0020_Project_x0020_Due_x00".

నేను నాలో అనుకున్నది, 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.

బోనస్ చిట్కా: నేను CQWP పని చేసినప్పుడు, నేను ఒక చెడు అంతర్గత పేరు జోడిస్తే <CommonViewFields>, the CQWP would tell me that the query had returned no results. కాని, నేను రంగంలో పేరు ఒక డేటా రకాన్ని జోడిస్తే, 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, కానీ నేను దాని విలువ ప్రదర్శించడానికి ప్రయత్నించినప్పుడు, I would always get a blank.

ఈ లోపం మాస్క్ లేదు:

<CommonViewFields>Due_x0020_Date;</CommonViewfields>

ఈ లోపం మాస్క్ లేదు:

<CommonViewFields>Due_x0020_Date,తేదీసమయం;</CommonViewfields>

</చివర>

3 "న ఆలోచనలుత్వరిత మరియు సులువు: ఒక సైట్ కాలమ్ యొక్క అంతర్గత కాలమ్ పేరు నిర్ణయించటానికి

  1. Waldek Mastykarz
    కొంతకాలం క్రితం నేను కంటెంట్ రకాలు మరియు కాలమ్ సంబంధించిన మరింత సమస్యలు ఎదుర్కొంటున్నాయి: అంతర్గత పేర్లు, శీర్షికలు మరియు స్టాటిక్ పేర్లు. తరువాత ఒక నేను కుడి పేర్లు తిరిగి సహాయం కొద్దిగా సాధనం నిర్ణయించుకుంది అయితే. మీరు ఒక లుక్ కలిగి ఉండవచ్చు: http://www.sharepointblogs.com/tmt/archive/2007/08/24/imtech-fields-explorer.aspx

ఒక Reply వదిలి పాల్ గాల్విన్ ప్రత్యుత్తరం రద్దు

మీ ఇమెయిల్ చిరునామా ప్రచురితమైన కాదు. లు గుర్తించబడతాయి *