Archive
Creating Test / Filler / Example text from Microsoft Word #SharePoint #SP2010 #in ‘#MSOffice
I always forget the following link when I want some example text in my projects for Plain / Rich Text fields (in Lists and InfoPath Forms), Word Documents (Document Management etc.)
Microsoft Office Help Link: http://blogs.office.com/b/microsoft-word/archive/2009/05/12/quick-tip-filler-text.aspx
Quick Reference
Within Word type the following:
- =rand()
- =lorem()
These produce a single paragraph, but the function is configurable via the following parameters:
- =rand(insert the number of paragraphs, insert the number of sentences)
- =lorem(insert the number of paragraphs, insert the number of sentences)
Example: =lorem(1,6)
A reference / links to Creating Custom Actions in #SharePoint #SP2010 #in
Some good links that a colleague found about adding custom menu actions (ECB):
SharePoint 2007 Examples: http://www.customware.net/repository/pages/viewpage.action?pageId=69173255
SP2010 MSDN Article: http://msdn.microsoft.com/en-us/library/ms473643.aspx
WSS 3.0 / MOSS 2007 MSDN Article: http://msdn.microsoft.com/en-us/library/ms473643(v=office.12).aspx
Useful Information: Determining if the web service return is a File or a Folder in GetListItems (Lists.asmx) #in #SP2010 #SharePoint
Just a useful quick tip I noticed whilst answering a question for a client the other day.
In the return of the GetListItems method of the Lists.asmx Web Service, one of the fields is:
- ows_FSObjType
This essentially allows us to determine of the return is either a File or a Folder.
The detail of the return is as follows:
- <Item ID>;#<File System Object Type>
- Example Data: 1;#0
Options for the File System Object Type:
- 0 = File
- 1 = Folder
Useful JavaScript Function: PreSaveAction #SP2010 #SharePoint #PS2010 #ProjectServer #in
Just a quick blog post to talk about a standard JavaScript function that exists in SharePoint 2007 and 2010 – PreSaveAction().
Now I have done extra validation and functions on list forms in allsorts of ways before (some of which is blogged on this site) and it is only recently that this standard function has been brought to my attention. (Thanks @GlynClough via twitter).
Once I learned about this function I of course google’d about it to see what I could find and came across the following blog articles:
- http://www.endusersharepoint.com/2008/10/07/endusersharepointcom-extending-issues-and-tasks-part-3/
- http://www.allaboutmoss.com/index.php/tag/presaveaction/
These are excellent articles that explain the function, however in the way I tend to work in my projects it posed a problem.
We are essentially overriding a standard SharePoint JavaScript function and the articles assume that you can place a Content Editor Web Part onto the page to add the functionality.
Now in SharePoint 2010 this is less of a problem, since there are very good and official ways to add web parts to list form pages, even in a Publishing Site.
However, in Microsoft Office SharePoint Server 2007 utilising publishing sites, editing newform.aspx and editform.aspx pages caused many issues.
This forced the consultant / developer to create their own new / edit forms and pages in order to insert sometimes a very small amount of code.
Since most of my projects seem to involve the Publishing feature in one way or another, I typically place JavaScript reference files in the Master Page. This means that my JavaScript code is running on every page.
So, getting to the point of this article, I have modified the general example that is supplied on other sites to take into account this method of JavaScript development by simply querying what page I am on before I run my validation tests and functions.
Code Example:
Found a useful post about #SharePoint Web Services #SP2010 #in
In my travels of playing with the SharePoint Web Services, I found the following post useful.
Although it is based on WSS 3.0 / MOSS 2007. Much of it is still relevant for SharePoint 2010.
http://bhavtosh.wordpress.com/2009/10/05/sharepoint-2007-web-services/
Using jQuery to return all members / users of a group #in #SP2010 #SharePoint
I’ve recently had cause to determine if a user is within a particular group in SharePoint and act upon the output.
Luckily the standard SharePoint web services allow to query for this information utilising the User Group service at location: http://<server>/_vti_bin/usergroup.asmx.
In particular the method GetUserCollectionFromGroup will provide the complete list including the Windows SAMAccountName (login name) as part of the return.
However, in this instance I was caught a little by a permissions problem. Although I could query the web service, it kept returning a status of “parsererror” and an output of “Access Denied”.
This was resolved by changing the group settings to allow “Everyone” to read the membership of the group.
Code Example
The following code utilises jQuery to access the web service:
I just won a free MSDN subscription… SharePoint Home Drive Web Part #in #SP2010 #SharePoint
A while ago I entered a competition that Liam Cleary (MVP) was running about Web Part contributions in the community. (Link)
Turns out I won. (Link)
Thanks Liam, I shall be using the subscription for some new web part ideas I have.
The web part in question was my SharePoint Home Drive web part. This was developed for IT Administrators in schools to give access to Teacher’s & Student’s home drives within their intranet to aid SharePoint adoption.
It was released a couple of years ago and has been used in various educational institutions. It has also recently been tested in SharePoint 2010.
Competition Entry:
1. What the original problem was
Ensuring that users can access their home drives within SharePoint to aid adoption of the SharePoint Portal within the education establishment.
2. Why SharePoint was chosen
SharePoint was chosen due to its flexibility and support from third party vendors for the various applications currently in use.
SharePoint’s educational licensing costs allows schools to user enterprise scale solutions for a fraction of the cost.
3. What the solution was (end-to-end)
To aid education establishments in providing a single collaboration portal connecting all appropriate solutions into one place including:
- File Shares
- Cashless Catering
- MIS integration
- E-Learning
- + others
4. How it helped
Although all the 3rd party vendors provided web parts etc. for the various applications, users were still having to go away from the solution to access their personal files.
Document libraries will be used for future years of children as the architecture catches up with the change in solution, however for current student data, financials did not allow for the required increase in storage in the SQL database.
Training of document libraries for non-IT staff in terms of uploading files and the understanding of metadata was troublesome and take up of the collaboration solution was slow among some staff and students.
Shared folders on the network were easily integrated using the Page Viewer Web Part in File / Folder mode and a Search Server Content Source of the Network Share.
However, this method could not easily be implemented for a user’s home drive, due to the dynamic nature of the UNC path.
Typically, this is set up in Active Directory using the user’s ADUserName (SAMAccountName) as the folder name for the share.
To solve this, I created a Web Part that allows administrators to specify the UNC path of the file share; it will then inject the AD username after the UNC path.
This provides a File Explorer view of the user’s home drive within the SharePoint Portal.
This was developed to be an interim solution until Document Libraries were fully adopted by end users and the SQL storage could be bought with future budget.
The SharePoint Home Drive web part was released to the community via CodePlex in June 2009 and has recently been tested in SharePoint 2010 environments also.
Compatibility of the Web Part also includes WSS 3.0 and SharePoint Foundation 2010.
Web Part URL: http://gileshhomedrive.codeplex.com/
Scaling Limitations for SharePoint and Project Server 2007 / 2010 #SP2010 #ProjectServer #EPM #WSS #MOSS
Just a useful link about SharePoint and Project Server scaling limitations that I keep losing.
SharePoint Foundation 2010 / SharePoint Server 2010 / Project Server 2010
SharePoint Server 2010 capacity management: Software boundaries and limits: http://technet.microsoft.com/en-us/library/cc262787.aspx
Windows SharePoint Services 3.0 / Microsoft Office SharePoint Server 2007
Plan for software boundaries (Office SharePoint Server): http://technet.microsoft.com/en-us/library/cc262787(office.12).aspx
Project Server 2007
Plan for software boundaries (Project Server): http://technet.microsoft.com/en-us/library/cc197693(office.12).aspx
Video Showcase – Media Player #in #SP2010
SharePoint Media Player 1.1
A web part which places a Windows Media Player object on the page to play audio / video. The web part takes into account the problem of menu’s going behind the Media Player window.
Compatibility:
- Windows SharePoint Services 3.0
- Microsoft Office SharePoint Server 2007
- SharePoint Foundation 2010
- SharePoint Server 2010
Video Showcase – Internet Search #in #SP2010
SharePoint Internet Search 1.6
A Web Part to place an Internet Search area on the page.
Extended from the original Google Search to include Windows Live (default), Google and Yahoo. Logo’s are provided as standard with configuration of your own logo’s if required.
Compatibility:
- Windows SharePoint Services 3.0
- Microsoft Office SharePoint Server 2007
- SharePoint Foundation 2010
- SharePoint Server2010
You must be logged in to post a comment.