คำตอบ Error DWVP lookup field link

  • 28 มิถุนายน 2555 9:31
     
      มีโค้ด

    Hi experts, Im using a DVWP with a lookup column with strange value showing below:

    <a onclick="OpenPopUpPage('http://sps2010/projects/dgs/_layouts/listform.aspx?PageType=4&ListId={F37815DB-2B39-4C4A-9B58-391B9460C67E}&ID=1&RootFolder=*', RefreshPage); return false;" href="http://sps2010/projects/dgs/_layouts/listform.aspx?PageType=4&ListId={F37815DB-2B39-4C4A-9B58-391B9460C67E}&ID=1&RootFolder=*">This is the link </a>

    is there a way where it will only shows the hyperlink text?

    Appreciate any ideas.



    Cheers, R2C3 ----------------------------------- starting sharepoint :)


    • แก้ไขโดย R2C3 28 มิถุนายน 2555 9:35
    •  

ตอบทั้งหมด

  • 5 กรกฎาคม 2555 7:17
    ผู้ดูแล
     
     คำตอบ

    Hi R2C3,


    I Suggest you edit your DVWP xslt file, and try using "disable-outscape-escaping" property after xsl:value-of select="@YourField" like this:
    xsl:value-of select="@Body" disable-output-escaping="yes"

    For more information, please refer to the following link:

    http://sharepoint.stackexchange.com/questions/2620/dvwp-xslt-text-only-from-rich-text-field

    Thanks,
    Lhan Han
    • ทำเครื่องหมายเป็นคำตอบโดย Lhan HanModerator 5 กรกฎาคม 2555 9:50
    •  
  • 5 กรกฎาคม 2555 12:49
     
     คำตอบ

    Hello Lhan,

    Thanks for sharing the link its useful and also I have the solution through nested substring-before and substring-after string function.


    Cheers, R2C3 ----------------------------------- starting sharepoint :)

    • ทำเครื่องหมายเป็นคำตอบโดย R2C3 5 กรกฎาคม 2555 12:49
    •