Blog Home  Home |  Breeze Home RSS 2.0 Atom 1.0 CDF  
SCAREY Sharepoint Blog - Monday, April 28, 2008
Shannon - Breeze Training
# Monday, April 28, 2008

So today the question was posed,

What happens if you stop the Central Administration or Web service in SharePoint in a small farm/single server?

Well maybe you should start them again. How you ask?

Use the stsadm command to do so. Simply run stsadm from the 12 hive (by default C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin) with the following options

For the Web Service
stsadm.exe -o provisionservice -action start -servicetype Microsoft.SharePoint.Administration.SPWebService

For central administration
stsadm.exe -o provisionservice -action start -servicetype Microsoft.SharePoint.Administration.SPWebService -servicename WSS_Administration

Monday, April 28, 2008 10:04:22 PM (AUS Eastern Standard Time, UTC+10:00)  #    Comments [4]    | 
# Wednesday, April 23, 2008

So today I was trying to work out how to create a web part connection using pictures in one list and linking that to text in another list. Ohh and all this without having to create a custom web part!

First I tried adding a picture column to the first list, and creating the connection on various areas of the picture. No such luck.

Next I decided that I was going to have to write some code, but wanted to be able to get other people to do this as well without having to fire up Visual Studio, so I investigated a Form Web Part.

The way this works is that we upload our pictures into a library. We then need to configure the Form Web Part to use these pictures as Hyperlinks. Some JavaScript is then run to set a hidden text field to a predefined value based on the image clicked on, and finally the connection provides the data from the hidden field to a column in the other list.

Here is the code

<!-- Start JavaScript -->
<script type="text/javascript">
 
//Function to tell the page to set a hidden textbox (Resource Type) to value 
//"Applications" and then posting it to SharePoint. 
//The value in the textbox will be used to filter the 
//list that the web part is connected to
function application1()
{
document.getElementById("Resource Type").value = "Application";
_SFSUBMIT_;
}
function tool1()
{
document.getElementById("Resource Type").value = "Tools";
_SFSUBMIT_;
}
</script>
 
<!-- set up a hidden textbox that will be used to hold the --> 
<!-- filter data for the web par connection -->
<p><input name="Resource Type" id="Resource Type" type="hidden" /></p>
 
<!-- set up a hyperlink of a picture that when clicked on -->
<!-- will run the javascript to set the custom field type -->
<!-- for the web part connection -->
<a href="javascript:application1()">
<img alt="Applications" src="/applications.jpg" /></a><br />
<a href="javascript:tool1()"><img alt="Tools" src="/applications.jpg" /></a>

Wednesday, April 23, 2008 12:00:51 AM (AUS Eastern Standard Time, UTC+10:00)  #    Comments [0]    | 
# Thursday, July 19, 2007

Today I was playing around with CAML and CAML Query builder, when I wanted to call the current user, which was not in the tool, I found that <UserID/> is the correct syntax

Thursday, July 19, 2007 11:38:07 AM (AUS Eastern Standard Time, UTC+10:00)  #    Comments [0]    | 
# Tuesday, July 17, 2007

Hey everyone :) and System.Console.WriteLine("Hello World");

WELCOME TO THE SCAREY BLOGG! all things scarey sharepoint.

What will be here?
At this stage I will be posting some tips and tricks that I have learnt on sharepoint. I might also post the occasional helpful tool as well.

* as I run into trouble with infrastructure systems as a whole I will post solutions.

Any requests and I will be more than happy to download the lyrics and sing loud.....I mean try and figure out the sharepoint answer to.

Anyway come back later and I'll have some cool stuff to read

 

Brainbuster for Mick!
What has 2 legs and bleeds alot?

Tuesday, July 17, 2007 12:29:29 PM (AUS Eastern Standard Time, UTC+10:00)  #    Comments [2]    | 
Copyright © 2010 Breeze Training. All rights reserved.