in

InfoPath Dev

Retrieving Hyperlinks from a "Link" List in MOSS 2007

Last post 07-18-2008 09:39 PM by Clay Fox. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-17-2008 06:39 PM

    Retrieving Hyperlinks from a "Link" List in MOSS 2007

    I've created a Links List in MOSS 2007 and am trying to use an IP 2003 form to retrieve the items from this list into the Form. That isn't a problem but what I encounter is the Hyperlink attached to the List Item containst both the URL and the "Description" from the original List Item in MOSS (see below). What then happens is in the IP 2003 Form the Hyperlink concatenates both the URL and Description into a single URL which now doesn't have the correct address.  Is there something I'm overlooking when Retrieving the List data from my Sharepoint list or is this something I'm stuck with in the absence of custom code? Here's an Example:

     SharePoint Item in a "Links" list:

    URL: http://www.anysite.com, Description: An interesting site showing nothing important

    InfoPath Display of above mentioned List Item: http://www.anysite.com,%20an%20interesting%20site%20showing%20nothing%20important/

     This is real frustrating because now every time the user of the Form wants to view the link he must click on the hyperlink, get annoyed with the error message on the screen, then manually erase the appended URL extension of the "Correct" address before the hyperlink launches correctly. What am I missing here? and how can I get this to work properly.

  • 07-18-2008 09:39 PM In reply to

    Re: Retrieving Hyperlinks from a "Link" List in MOSS 2007

    In Hyperlink control properties, if each is a seperate field in the secondary data, then you should be able to set one as the vale and one as the label.

    Another trick is to use a substring function to remove the extra.

    substring-before(link, %)

     

Page 1 of 1 (2 items)
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.