开发者

Using hyperlink within sharepoint listview

开发者 https://www.devze.com 2023-01-21 09:23 出处:网络
I know I can use sharepoint designer to convert list to data view wp and then i can do this easily. but I wanted to if there was a way to do this with list view wp without intervention of sp designer.

I know I can use sharepoint designer to convert list to data view wp and then i can do this easily. but I wanted to if there was a way to do this with list view wp without intervention of sp designer.

I have a order table

orderid  orderdate  
1        1/1/2011
2        2/2/2012
3        3/3/2013

I like to establish hyperlink to the orderid values where it will go it's correspondence page. for example, you are on the list view page for

http://server/Lists/Orders/Allitems.aspx

then I like to see the orderids are hyperlinked. so when user clicks o开发者_开发问答n order id 2 it will take user to

http://server/ordersite/2/order.aspx


You can use Christophes method to generate HTML in a calculated column and then javascript to turn the 'escaped' html into 'real' html.

e.g.

="<a href='http://server/ordersite/" & ID & "/order.aspx">Show Order</a>"

http://blog.pathtosharepoint.com/2008/09/01/how-to-open-hyperlinks-in-a-new-window-or-not/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号