Retrieving SharePoint site title name possible? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Retrieving SharePoint site title name possible?

Last post 01-26-2009 07:55 AM by geoffc. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-24-2008 06:55 AM

    Retrieving SharePoint site title name possible?

    Is it possible for InfoPath to retrieve the SharePoint site title name and have it automatically populate in a text box? Any information is appreciated. Thank you.

  • 11-24-2008 09:21 PM In reply to

    Re: Retrieving SharePoint site title name possible?

    Hi,

    Use the following code lines to get the site name. Note: This code works if the url is in the form of //" target=_blank>http://<servername>/<sitename>/.... Ex: http://server3/test/test1/Forms/template.xsn We will get the value ‘test' if we use the following code lines. 

    string url = thisXDocument.Solution.URI;

     url = ((url.Remove(0, url.Substring(0, url.IndexOf("//") + 2).Length)).Remove(0, url.Substring(0, url.IndexOf("/") + 3).Length)).Substring(0, url.IndexOf("/") - 1);   

    Swathip
    www.ggktech.com
  • 01-12-2009 06:40 AM In reply to

    Re: Retrieving SharePoint site title name possible?

    Thank you Swathip. The site title is actually different than the site title in the URL. The reason for this is that the title can be very lengthy and we wanted the URL to be short. Is there any way to access this title?

  • 01-26-2009 07:55 AM In reply to

    Re: Retrieving SharePoint site title name possible?

    anyone else have any ideas on how to accomplis this?
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.