Will vërtetë XPath hap përpara?

Përmbledhje:

Krijuar një listë me porosi që menaxhon një lloj përmbajtje me disa kolona duzinë.

Shtuar atë në një faqe dhe pastaj nëpërmjet SPD, konvertuar në një pamje të dhënave.

Problem:

My Xpath expression was returning blank for a column named "Current Position". I referenced it thusly:

    <table border="1">
      <XSL:for-each select="/dsQueryResponse/Rows/Row" >
        <tr>
          <td>
            Current Status:
            <XSL:value-of select="@Current_x0020_Status"></XSL:vlera-e>
          </td>
        </tr>
      </XSL>
    </tryezë>

The column in the CT is named "Current Status". It shows up in the lookup as "Current Status". Everywhere you look, you see "Current Status".

While thrashing madly about, looking for a solution, I instead referred to "@Recruiter" and behold! — that actually returned back the current status. I expected it to return back the recruiter when I did that.

Zgjidhje:

I poked about in SPD. Go to that page in SPD and it shows the data view. You can inspect the actual data provided to the view and associated Xpath. Here I found out that indeed, the Xpath pointed at "Recruiter". Strangely enough, the "actual" recruiter field pointed from "Recruiter1".

Marr me vete:

SPD ofron autoritative shprehje XPath për rreshtat & kolona në një pikëpamje të dhënave.

I dytë, it shows the actual data. So for example, një kolonë e tipit tregon këtë:

<nobr><hapësirë><A HREF="/sites/Corporate/HumanResources/TalentAcquisition/_layouts/userdisp.aspx?ID=17">Galvin, Paul</Një><img border ="0" height="1" width="3" src="/_layouts/images/blank.gif"/><a href = "javascript:’ onClick = "IMNImageOnClick();kthimit të rreme;’ class = "ms-imnlink '><Emri img = 'imnmark’ title =” border =’0′ height = '12’ width = '12’ _layouts / src = '/ images / blank.gif’ alt '= Asnjë informacion prania’ PGalvin@xxx.com Sip = '’ id = 'imn_77, type = SMTP' /></një></hapësirë></nobr>

Lini një Përgjigju

Adresa juaj e emailit nuk do të publikohet. Fusha e kërkuar janë shënuar *