Link to home
Create AccountLog in
Avatar of bon733
bon733Flag for United States of America

asked on

SharePoint 2010 Dynamic WebPart Title

I have a requirement to add a date\time to a webpart title with a SharePoint site. The source of the date is contained in a sql table (e.g. process date) . Whats the easiest way? CEWP?
Avatar of static-void
static-void

Is the webpart you want to change the title for a webpart of your own (if so i would set the title in the constructor of the part)

If not you can use the LimitedWebPartManager to retrieve a collection of webparts for a given SP page (url) and from there you can manually set the title.
Avatar of bon733

ASKER

The web parts in question are generated by DashBoard Designer to a Dashboard page. I was hoping to use javascript and a CEWP to cycle through the titles on the page and just append a date time to them. It seems very simple, but getting the script to cycle through all of the Titles is difficult. I will take a look at the LimitedWebPartManager object and see the options.
ASKER CERTIFIED SOLUTION
Avatar of static-void
static-void

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account