விரைவான மற்றும் எளிதான: ஒரு தள வரிசை உள்ளக வரிசை பெயர் தீர்மானிக்க

புதுப்பிப்பு: ஜெர்மி 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. கோரே
    Using the "hover" technique isn’t too bad for one or two fields. But for massive lookups I use the Stramit Caml viewer இணைப்பு. I actually like that one better than the U2U one — இது மிகவும் விரைவான மற்றும் அதை StringBuilder குறியீடு என CAML திரும்பும் நல்ல அம்சம் இருக்கிறது.
  2. Waldek Mastykarz
    சில நாட்களுக்கு முன்பு நான் உள்ளடக்க வகைகள் மற்றும் பத்திகள் தொடர்பான மேலும் சிக்கல்களை எதிர்கொண்டனர்: உள் பெயர்கள், தலைப்புகள் மற்றும் நிலையான பெயர்கள். பின்னர் நான் சரியான பெயர்களை பெற உதவும் ஒரு சிறிய கருவியை செய்ய முடிவு போது. நீங்கள் அதே ஒரு வேண்டும்: http://www.sharepointblogs.com/tmt/archive/2007/08/24/imtech-fields-explorer.aspx

ஒரு பதில் விட்டு பால் கால்வின் பதிலை நிருத்து

உங்கள் மின்னஞ்சல் முகவரி வெளியிடப்பட்ட முடியாது. தேவையான புலங்கள் குறிக்கப்பட்டன *