Wednesday, March 28, 2012

How to create custom buttons i Sharepoint 2010

To create custom buttons in the ribbon menues

1. Open Sharepoint Designer, open the relevant list

2. Choose Custom Actions from the Custom Actions ribbon image

3. Choose Display Form Ribbon to create a button i the Display Form.

3.1 Set a name

3.2 Choose which workflow to start or a url

3.3 Under Button Image give siteadress to a buttonicon.

3.4. In the field for Ribbon Location the string Manage can be exchanged for another ribbongroup. For example Action. This way we can control where our button is displayed. With the help of Sequence numbering the order in which they’re shown can be controlled aswell.

image

image

Tuesday, March 27, 2012

Annoying liveupdate error in backup exec 2010 R3

This error was showing when I tried to run liveupdate image

I solved by doing the following:

1) Open the command prompt and browse to the following directory C:\Program Files\Symantec\Backup Exec\

2) Run BeUpdateOps.exe -AddBE -OptOut

3) Run LiveUpdate

Done! Second time this error occurs, but maybe sp2 will have solved it…

References:

http://www.symantec.com/business/support/index?page=content&id=TECH66265

Wednesday, March 21, 2012

Create a task-list with mailto-function

To create a tasklist with ability to receive mail the following steps were required.
1.Create a list based on Task, for example weeklymeeting
2. Create a list based on Announcements, for example incomming
3. In the list incomming, activate mailto support (Communications>Incomming e-mail settings>Allow list to receive e-mail)
4. In list incomming, create an associated workflow in SPD. Make it autostart when item is created.
5. Edit workflow to Create Item in weeklymeeting, copy relevant fields like Name and Body to new fields in weeklymeeting from incomming.  Then Delete item in CurrentItem.
image

Tuesday, March 20, 2012

Can’t get workflow to start when mailing to list

I just had major problem with getting a workflow to start when mailing to a sharepoint 2010 list. I found this solution to the problem. Not really obvious so im putting it here.
Error description: When mailing to announcement or document library list, a workflow configured to start when new item is created, doesn’t start. When creating item manually in list the workflow kicks off without any problems.
Solution: On the sharepoint server. Check if mailto list is enabled
/> stsadm -o getproperty -pn declarativeworkflowautostartonemailenabled
if this is returned: <Property Exist=”No” />
or <Property Exist="Yes" Value="fales" />
Then run /> stsadm -o setproperty -pn declarativeworkflowautostartonemailenabled -pv true
It will take a few seconds but after this the workflow starts when mail is received to the list.

Wednesday, February 22, 2012

Sharepoint alert user when case is assigned

To set your own alertsystem to notify user when they are assigned a case.
1. Set up a securitygroup in Sharepoint where you add your users. You need to configure their emails in sharepoint user config. Your sharepointserver also need to be able to send emails. Aka you’ve already setup your smtp.
2. In your sharepointlist, choose Create a workflow in Sharepoint Designer.
3. If CurrentItem:Assigned is not empty e-mail CurrentItem:Assigned
To make this fly the assigned column need to be of type Person or Group and only allow selection from Sharepointgroup you’ve previously created.
In Sharepoint Designer you can now edit Start Options for the workflow to start automatically when an items is changed or created.
You can also design the email which is sent to the user to contain basically anything from the current item.
References:
http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/26649ef1-3333-4d08-b2a5-1c988c975959

Friday, February 17, 2012

Free up more space

If you’re aching for more space on your server or workstation, use this command to remove all uninstallfiles related to servicepack1 on Windows Server 2008 R2 and Windows 7.

dism /online /cleanup-image /spsuperseded /hidesp 

For an offline WIM-image,

dism /image:wimfile.wim /Cleanup-Image / spsuperseded /hidesp.

/hidesp option removes SP1 from the “Installed Updates” section of Programs and Features, to ensure that users do not try to uninstall the service pack.

After doing this maneuver on a Server 2008 R2 my winsxs went from 12.12GB down to 6.82GB. Not a real true value though since winsxs contains mostly softlinks, but still an indication.

References:

http://matthewlong.wordpress.com/2011/03/04/cleaning-up-windows-7-server-2008-r2-service-pack-1-files/

Friday, February 10, 2012

Find that missing driver

A nice resource to have is the ability to grab the device id of a missing hardware driver and get the correct softwaredriver in return.

Get the hardware device-ID. Copy the last line of values, for example \\USB\VID_08FF&PID_2580 for the struggling fingerprintreader.

Goto catalogue.microsoft.com, and input the deviceid. Put the device in your basket and download. This will get you a cab-file, which you can extract using 7Zip. Then just update your missing driver and point the search to your newly extracted folder.

Resources:

catalogue.microsoft.com

Powershell and Uptimerobot

Uptimerobot can be quite tedious when you need to update many monitors at once. For example say you bought the license for Uptimerobot and n...