Search Server Express: No Scopes Link?
// February 11th, 2009 // No Comments » // Uncategorized
Weird isnt it? well it is actually there!
http://[your-server]/ssp/admin/_layouts/viewscopes.aspx?mode=ssp
Sharepoint Services Company specializing in Sharepoint, MOSS 2007 and WSS 3.0 Solution Development, Solution Architecture & Design.
// February 11th, 2009 // No Comments » // Uncategorized
Weird isnt it? well it is actually there!
http://[your-server]/ssp/admin/_layouts/viewscopes.aspx?mode=ssp
// January 22nd, 2009 // 1 Comment » // Uncategorized
Isnt wasnt long ago when googling a person or yourself wouldnt give you much unless you had a couple of web projects to your name. These days any ol Harry can google themselves and come up with some sort of Online Presence, in most cases the form of a Facebook Profile.
Not too long ago Facebook released Facebook Connect, a way of enabling your website to use Facebook as the user database. So instead of maintaining a user database, you enable people to login to facebook through your site and use their details on your website.
The idea of mysites and facebook being able to connect came to me and so i started to compile a webpart which will add your Facebook profile details to your mysite. I started to use the Facebook developer toolkit which proved really handy consolidating all the user data.
One thing which i was battling with is the logout process where the logout occurs and then there is a redirect but finally managed to put together something which i have managed to use. Here it is:
<br />
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"<br />
head<br />
/head<br />
body<br />
script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript" /script<br />
script type="text/javascript"<br />
FB_RequireFeatures(["XFBML"], function() {<br />
FB.init('api_id','xd_receiver.html');<br />
FB.Connect.logoutAndRedirect("/******/Login.aspx?timeout=logout");<br />
});<br />
/script<br />
/body<br />
// November 18th, 2008 // No Comments » // Uncategorized
One of the problems with the Sharepoint API is that you cannot interface with the AD groups. i mean when i browse a group (SPGroup) and come upon a user which is in fact a domain group, then i cannot view the users within this group.
I wrote some code to help with that. hope it helps
private bool bIsInGroup(SPUser user, string strname)<br />
{<br />
bool isinGroup = false;<br />
try<br />
{<br />
SPUserToken token = SPContext.Current.Site.SystemAccount.UserToken;</p>
<p> using (SPSite mySite = new SPSite("http://asi7/", token))<br />
{<br />
using (SPWeb oWeb = mySite.OpenWeb())<br />
{</p>
<p> SPGroup testGroup = oWeb.Groups[strname];</p>
<p> foreach (SPUser oUser in testGroup.Users)<br />
{</p>
<p> if (oUser.IsDomainGroup)<br />
{</p>
<p> if (isUserinADGroup(oUser.LoginName.Replace("ASIGROUP\\", ""), user.Name))<br />
{<br />
isinGroup = true;<br />
break;<br />
}</p>
<p> }<br />
else if (oUser.Name == user.Name)<br />
{</p>
<p> isinGroup = true;<br />
break;<br />
}</p>
<p> }<br />
}<br />
}</p>
<p> }<br />
catch (Exception exception)<br />
{<br />
Label1.Visible = true;<br />
Label1.Text = exception.Message;<br />
return isinGroup;<br />
}<br />
return isinGroup;<br />
}
public bool isUserinADGroup(string groupName,string userName) {</p>
<p> StringCollection groupMemebers = new StringCollection();</p>
<p> Label1.Visible = true;</p>
<p> bool isIngroup = false;<br />
try<br />
{<br />
DirectoryEntry ent = new DirectoryEntry("LDAP://CN=" + groupName + ",OU=Security_Groups,OU=MyBusiness,DC=asigroup,DC=local", System.Configuration.ConfigurationSettings.AppSettings["ADLoginUsername"], System.Configuration.ConfigurationSettings.AppSettings["ADLoginPassword"]);<br />
string strGroup = "";<br />
object members = ent.Invoke("Members", null);</p>
<p> foreach (object member in (IEnumerable)members)<br />
{</p>
<p> DirectoryEntry x = new DirectoryEntry(member);</p>
<p> strGroup = x.Properties["displayName"].Value.ToString();</p>
<p> if(strGroup.Contains(userName)){<br />
isIngroup = true;<br />
}</p>
<p> }</p>
<p> return isIngroup;<br />
}<br />
catch (COMException ex) {<br />
Label1.Text += ex.Message;<br />
return false;<br />
}</p>
<p> }
// November 10th, 2008 // 1 Comment » // Uncategorized
Today i was writing up some hands on labs for a course im presenting on wednesday, i realised how much id probably enjoy getting into some sharepont training. But i mean some real hands on labs. Actually getting into, site content type creations, dataviews, infopath forms etc etc. I mean the opportunities are endless.
Really get into going into businesses and teaching them the nitty gritties of design and customization, sitting with administrators and getting them to maximise their usage of Sharepoint!
So heres to that, and heres to what comes of it!
// August 20th, 2008 // 1 Comment » // Uncategorized
SO below is an exert of what i did on a client site, except i copied and pasted another person’s experience which happened in the same order i did!
In SharePoint Designer 2007 I’m trying to customize the edit form that you get when you create a list item in a SharePoint 2007 list (EditForm.aspx). I took the following steps:
1. Open the site in SharePoint Designer 2007.
2. Browse to the list and open the ‘NewForm.aspx’ web form.
3. Save this list as ‘customNewForm.aspx’.
4. Delete the default List Form Web Part from the page.
5. Insert a Custom List Form: Insert > SharePoint Controls > Custom List Form
6. In the List or Document Library Form dialog, select the appropriate list, content type and type of form.
7. Click Ok. The new Data Form Web Part is added to the page.
8. Save the Site.
I didn’t do any customizations yet. I only inserted the new listitem form on the page and saved it.
Now when I want to create a new listitem in my browser the newform.aspx-page opens correctly. Only when I hit the ‘OK’-button I receive the following error:
“The data source control failed to execute the insert command”
It seems that something goes wrong when inserting the new data in the list. Can someone help me out with this???
Apparently this is a problem with datepicker field in the lists which cause this problem. i have tested this and it is in fact true! also true is that the fact that MS have not come to the party with a bugfix yet! I hope that this is solved really soon
// August 18th, 2008 // No Comments » // Uncategorized
Hey so it took a little longer than expected but it really is a great upgrade, and yes, very simple to upgrade!
Well done wordpress on another great version!
// August 8th, 2008 // No Comments » // Uncategorized
So i wrote it this morning and passed it. It was a pretty fair exam, some questions i felt were a little off the topic and i feel that maybe they didnt focus on features so much. Nonetheless, i recommend the exam for anyone that works with a little code cutting, webparts or features!
// July 29th, 2008 // No Comments » // Uncategorized
I recently read about the new Silverlight Charting capabilities by Visifire. This provides a much needed solution for Sharepoint and reporting from Lists of data, a department in which Sharepoint seems to lack slightly. The charts come in all shapes and sizes and can be designed using the sites handy designer tool located here. I suggest you go over and demo some its capability!
I suppose the drawback at the moment would be the mandatory use of Sharepoint Designer, creating dataviews appropriate for the data and linking in all the xaml files etc. This process is covered by the Sharepoint Designer blog located here.
At that’s left to do is to package this as a webpart, perhaps the handy designer tool included and be able to link your charts to custom lists. This could prove to be a welcome addition to growing list of custom features over on Codeplex.
Â
// June 20th, 2008 // No Comments » // Uncategorized
Was having the following issue:
Whenver i tried to install a template such as RoomEquipmentReservations.wsp i was getting the error:
Feature ’75a0fea7-ff19-4b2e-953b-bea234eba14a’
for list template ’100′ is not installed in this farm. The operation could
not be completed.
To solve this, MAKE SURE you install the ApplicationTemplateCore.wsp first!!