ઝડપી અને સરળ: એક સાઇટ કૉલમ આંતરિક કૉલમ નામ નક્કી

અપડેટ: જેરેમી 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,Datetime;</CommonViewfields>

</અંત>

3 પર "વિચારોઝડપી અને સરળ: એક સાઇટ કૉલમ આંતરિક કૉલમ નામ નક્કી

  1. Waldek Mastykarz
    કેટલાક સમય પહેલાં હું સામગ્રી પ્રકાર અને સ્તંભોને સંબંધિત પણ વધુ મુદ્દાઓ સામનો કરવો પડયો હોય: આંતરિક નામો, શિર્ષકો અને સ્થિર નામો. પછી હું મારી જમણી નામો મેળવવા માટે મદદ કરવા માટે થોડી ટૂલ બનાવવા માટે નિર્ણય કર્યો છે જ્યારે. સાથે સાથે તમે એક નજર પડી શકે છે: http://www.sharepointblogs.com/tmt/archive/2007/08/24/imtech-fields-explorer.aspx

એક જવાબ છોડો પીડી Galvin જવાબ રદ કરો

તમારું ઇમેઇલ સરનામું પ્રકાશિત કરવામાં આવશે નહીં. જરૂરી ક્ષેત્રો ચિહ્નિત થયેલ છે *