Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Add Site Title to Custom List Column

  Asked By: Mindy Bishop         Date: Sep 05, 2007      Category: Sharepoint      Views: 327
 

Does anyone know how to make a custom list column autofill with the
site's title? I want to be able to use this column (for filtering,
etc.) when I combine different lists from different sites using the
Data View WP.

Tagged:              

 

2 Answers Found

 
Answer #1       Answered By: Octavio Dotson          Answered On: Sep 05, 2007       

The SPWeb class property "Title" contains the site  title. The link below
shows how to retrieve and set the value for the current context.

msdn2.microsoft.com/en-us/library/ms868263.aspx

Perhaps this will give you some ideas. I don't have a server to test on at
the moment, so can't take this any further

 
Answer #2       Answered By: Judy Pittman          Answered On: Sep 05, 2007       

Thanks for the response, Steve. That's certainly an option. I was
hoping not to have to use the object model. I wanted to see if
someone knew of some nifty way to use a Lookup or Calculated column
to achieve the same end.

 
Didn't find what you were looking for? Find more on Add Site Title to Custom List Column Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].