Solved

SharePoint 2010 Dynamic WebPart Title

Posted on 2010-11-08
3
1,638 Views
Last Modified: 2012-06-27
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?
0
Comment
Question by:bon733
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Expert Comment

by:static-void
ID: 34100754
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.
0
 

Author Comment

by:bon733
ID: 34105363
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.
0
 
LVL 8

Accepted Solution

by:
static-void earned 500 total points
ID: 34108275
$('.ms-WPTitle span')[0].InnerHtml('fdfsfsdfsdf');

something like that?
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question