tag:blogger.com,1999:blog-4721830145069718578.post4260034820768301875..comments2023-04-25T15:15:17.530+10:00Comments on SharePoint Development & Administration + InfoPath: SharePoint XSL String Replacement FunctionDanielShttp://www.blogger.com/profile/07274977002584498975noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-4721830145069718578.post-20302631043684110432012-04-23T22:11:20.211+10:002012-04-23T22:11:20.211+10:00Hi ,
Please helpe me I need the same astuce but I ...Hi ,<br />Please helpe me I need the same astuce but I don't know where I will put this code :-(Chaimahttps://www.blogger.com/profile/01782936030170176469noreply@blogger.comtag:blogger.com,1999:blog-4721830145069718578.post-52822799580842975712010-07-23T02:21:20.803+10:002010-07-23T02:21:20.803+10:00Thank you very much buddy !! - you saved my day. ...Thank you very much buddy !! - you saved my day. I am new to XSL technologies and your blog post helped me satisfy the same exact requirement that you were talking about :-)<br /><br />Thanks Again!<br />Anand.Anand Balasubramanianhttps://www.blogger.com/profile/08866051609069564063noreply@blogger.comtag:blogger.com,1999:blog-4721830145069718578.post-29474122419418806302009-12-19T12:40:10.968+11:002009-12-19T12:40:10.968+11:00Hi Daniel,
Thanks for this post, it helped a lot ...Hi Daniel,<br /><br />Thanks for this post, it helped a lot especially the previous comment where you explain how to make a hyperlink to the lookup values. <br /><br />However in the range of lookup values all of the lookup values get the href from the first one. So lookupvalue 2 refers to href=server/subsite/list/dispform.aspx?id=value of lookupvalue 1 instead of href=server/subsite/list/dispform.aspx?id=value of lookupvalue 2<br /><br />Can you shine a light on this?<br />Our whole site (www.potatopro.com) is full with multiple lookups: if I can get this to work...that would be great!<br /><br /><br />marjaMarjahttps://www.blogger.com/profile/02931367994875661415noreply@blogger.comtag:blogger.com,1999:blog-4721830145069718578.post-71064116761057796062009-09-04T17:03:55.688+10:002009-09-04T17:03:55.688+10:00To make each lookup link to the item, try the foll...To make each lookup link to the item, try the following:<br /><br />1. Using SharePoint Designer, Click the title of one of the lookups in the dataview (after it has been converted to "- lookupname" using the string replace XSLT function)<br /><br />2. Make sure the field is formatted as "Rich Text".<br /><br />3. Right Click on the same lookup value and select "Hyperlink..."<br /><br />4. On the Edit Hyperlink dialog, make sure the "Text to Display" is set to "{concat(substring-before($stringIn,$charsIn),$charsOut) }". <br /><br />5. Set the Address field of the hyperlink to {ddwrt:URLLookup('{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}', 'lookup_x0020_field', string(@Title))}<br /><br />- where "{XXXX....} is the ID of the list which contains the items the lookup field refers to<br /><br />- lookup_x0020_field is the name of the lookup field containing the lookup pointing to a separate list (same field as what was customised by the string replace function)<br /><br />- String(@Title) is the the name of the field which the lookup is mapped to. In this case, the url for the item is found by matching the "Title" field from an item in the separate list with the value of the current lookup.<br /><br />Let me know how you go.<br /><br />Thanks<br /><br />DanielDanielShttps://www.blogger.com/profile/07274977002584498975noreply@blogger.comtag:blogger.com,1999:blog-4721830145069718578.post-31265377785865506142009-09-04T02:55:22.873+10:002009-09-04T02:55:22.873+10:00Thanks for the post, it has helped me with half my...Thanks for the post, it has helped me with half my problem! Do you know how to add the code to pull in the href value for each of LookUp value? I need users to be able to click on the LookUp values. - david from Texas A&MDavid from Texas A&Mhttps://www.blogger.com/profile/09509542227172677798noreply@blogger.com