Sal die ware XPath stap vorentoe?

Oorsig:

Maak 'n persoonlike lys wat die bestuur van 'n inhoud soort met 'n paar dosyn kolomme.

Het bygevoeg dat dit na 'n bladsy en dan via SPD, omskep in 'n data view.

Probleem:

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>
            Huidige Status:
            <xsl:value-of select="@Current_x0020_Status"></xsl:waarde van>
          </td>
        </tr>
      </xsl>
    </tafel>

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

Terwyl dors soos 'n besetene oor, op soek na 'n oplossing, I instead referred to "@Recruiter" en kyk! — that actually returned back the current status. I expected it to return back the recruiter when I did that.

Oplossing:

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

Wegneem:

SPD bied gesaghebbende Xpath uitdrukkings vir rye & kolomme in 'n data-oog.

Tweede, it shows the actual data. So for example, 'n kolom van die tipe toon hierdie:

<nobr><span><A HREF="/sites/Corporate/HumanResources/TalentAcquisition/_layouts/userdisp.aspx?ID=17">Galvin, Paul</'N><img border ="0" height="1" width="3" src="/_layouts/images/blank.gif"/><a href = "javascript:’ onclick = 'IMNImageOnClick();terugkeer valse;’ class = "MS-imnlink '><img name=’imnmark’ title =” border =’0′ hoogte = '12’ breedte = '12’ src = "/ _layouts / images / blank.gif’ alt = "Nee teenwoordigheid inligting’ sluk = 'PGalvin@xxx.com’ id = 'imn_77, type = smtp' /></1></span></nobr>

Laat 'n antwoord

Jou e-posadres sal nie gepubliseer word nie. Verpligte velde gemerk *