URL not displaying correctly in InfoPath.

  • 24 November 2010
  • 2 replies
  • 5 views

Badge +6

Hi All,


I have a smartobject that pulls data from a list in SharePoint 2010. One of the columns is a URL and the SmartObject definition says that the column is a URL. When this smartObject is used in InfoPath, the data connection says the URL column is of type string. When I try to display the results in a repeating table I get these two issues depending on the control used:


Hyperlink control to display: nothing displayed


Textbox to display URL: full xml string as below.


<hyperlink><link>http://jnbapp01:42466/sites/memory/hr/CandidateCVS/Atties awesome CV.docx</link><display> http://jnbapp01:42466/sites/memory/hr/CandidateCVS/Atties awesome CV.docx</display></hyperlink>


I have tried putting a hyperlink in the repeating table and then binding to the result of function that grabs the url out of the xml string, but I can only bind straight to the smart object, there is no option to use a function.


What do I need to do to the smartObject or the control to get the URL to display and be clickable?


2 replies

Badge +6

We had somthing similar to this, dropdownlist will show the list of items. Hyperlink beside that will take you to the file location. Link changes on dropdown selectoin changed.


While retrieving the URL using smart objects. It will return it in XML format. What we did was, we filtered the text between <link> & </link> and assigned it to an hyperlink. It worked for us.

Badge +6

That was my first thought but the problem is that we use a smartObject to populate a repeating table which contains this URL, so we can't change the binding.


I have actually reworked the list in SharePoint so that the column is now just a single line of text, then Hyperlink control seems happy to bind and display a URL that is in a plain text field.

Reply