Showing posts with label SP_design. Show all posts
Showing posts with label SP_design. Show all posts

Friday, March 27, 2009

Using formulas in SharePoint

Pointers from sharepointdiscussions@yahoo.com to answers for a question I have often asked myself but never researched: just what can you put into a SharePoint calculated column formula?



------ Forwarded Message
From: Peter Brunone
Date: Tue, 29 Jul 2008 10:02:06 -0500
To: "sharepointdiscussions@yahoogroups.com"

Subject: Re: [sharepointdiscussions] using formulas in sharepoint

Hi Liz,

The functions look (to me) a lot like XPath, but I'm at a loss to put a
name on them. You can find an overview and a complete function list,
respectively, at the following locations:

Summary:

http://office.microsoft.com/en-us/sharepointtechnology/CH011711541033.aspx


Function List:

http://office.microsoft.com/en-us/sharepointtechnology/CH011711171033.aspx


As you will discover, the "if" condition isn't quite what you'd expect
as a .NET developer. There's actually a function that performs a test and
returns one of two parameters based on the result of the test; you can read
the explanation of the IF function at the following location:

http://office.microsoft.com/en-us/sharepointtechnology/HA011610101033.aspx

Yell if you need more help.

Cheers,

*Peter Brunone *

*Improving* – It's what we do. | www.improvingenterprises.com


On Tue, Jul 29, 2008 at 9:01 AM, Liz.Pumilia wrote:

> Hello all,
>
>
>
> I am brand new to using formulas in SharePoint. First question is what
> language is the formula written in? Next question is how would I write a
> formula to fill in a field called "Completed date" that looks at a
> field [status] and uses the current date if the status is "06-Complete".
> The following is what I tried, but again it is just a shot in the dark.
>
>
>
> If [status]="06-Complete" then {Completed date]=current
>
>
>
> Any guidance would be greatly appreciated.
>
>
>
> Thanks,
>
>
>
> Liz Pumilia
>
------ End of Forwarded Message

Wednesday, March 11, 2009

Arithmetic on Times in SharePoint

A note about how to calculate a field as the sum of two times. The catches
are the format of the "Length" field (probably better titled "Duration"), and the use of the "TEXT" function.

------ Forwarded Message
From: Tom <tomsrig@hotmail.com>
Reply-To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Date: Wed, 11 Mar 2009 00:50:43 -0000
To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Subject: [sharepointdiscussions] Re: Useing Time in SharePoint

Hi, Peter,

You gave me some additional information I did not know, but here is what I
came up with to make this time thing work:

=TEXT([Air Date & Time]+[Show Length],"h:mm:ss")

The [Air Date & Time] column could be set to either text or a date & time
format. [Show Length] must be in this format; hh,mm,sec. For example
01:10:30. The calculated value with then be the air date and time + show
length. Works good.

Your added tip .....""m/d/yyyy hh:MM:ss") gives me the way to combine the
date and time.

Thanks much, Peter

Tom

--- In sharepointdiscussions@yahoogroups.com, Peter Brunone
<peter.brunone@...> wrote:
>
> Hi Tom,
>
> Does the calculated field save if you use this formula? According to the
> reference at
> http://office.microsoft.com/en-us/sharepointtechnology/HA011610841033.aspx ,
> TIME(0, 0, 30) would yield a decimal value of something like 0.000347. To
> add this to a DateTime field, you'd probably have to convert the date/time
> stamp using TIMEVALUE to get a similar decimal value, e.g.
>
> =TIMEVALUE([Date & Time]) + TIME(0,0,30)
>
> Another option would be to use VALUE([Date & Time]) + VALUE("0:0:30") and
> see if that would work.
>
> Of course to re-convert that into a meaningful time figure, you'll have
> to use the TEXT function. I'm not sure of its ability to display seconds,
> but you should have that available (note that I'm extrapolating the time
> syntax below based on my knowledge of past and current Microsoft date
> nomenclature):
>
> =TEXT(TIMEVALUE([Date & Time]) + TIME(0,0,30), "m/d/yyyy hh:MM:ss")
>
> Something like this *should* work, if anything does. Let me know how it
> goes.
>
> Cheers,
>
> Peter
>
> On Mon, Mar 9, 2009 at 3:37 PM, Tom <tomsrig@...> wrote:
>
> > Hi, Peter,
> >
> > I use the TIME formula, like below.
> >
> > =[Date & Time]+TIME(0,0,[Offset Number])
> >
> > [Date & Time] in this example would be 3/5/2009 1:00 PM - but notice I
> > can't display seconds in a list.
> >
> > The [offset number] in this example would be 30 (meaning 30 secoonds)- This
> > number is set as a NUMBER. SharePoint has no way of setting seconds that I
> > know of, and that may be my dilema.
> >
> > Yet, if you look at the formulas in the Help file, it does show a way to do
> > hours, minutes and seconds.
> >
> > I'm stumped.
> >
> > --- In sharepointdiscussions@yahoogroups.com, Peter Brunone
> > <peter.brunone@> wrote:
> > >
> > > What is your formula, and how does it display?
> > >
> > > Is there a chance that the seconds are somehow rendered but not visible
> > in
> > > the browser?
> > >
> > > Peter
> > >
> > > On Mon, Mar 9, 2009 at 2:42 PM, Tom <tomsrig@> wrote:
> > >
> > > > Hi, all,
> > > >
> > > > I have a case where I need to take a Time like: 10:10:10 (ten hours,
> > ten
> > > > minues, and 10 seconds, and subract (or add) a number like 1:10 (one
> > minute
> > > > and 20 seconds. The result should be 10:10:09, (ten hours, nine
> > minutes.
> > > >
> > > > So far, I can't get seconds to appear using the calculated column, even
> > > > though the formulas do support seconds.
> > > >
> > > > Any ideas?
> > > >
> > > > Tom
> >
>
>
> [Non-text portions of this message have been removed]
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sharepointdiscussions/

<*> Your email settings:
Individual Email Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/sharepointdiscussions/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:sharepointdiscussions-digest@yahoogroups.com
mailto:sharepointdiscussions-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
sharepointdiscussions-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/


------ End of Forwarded Message

Tuesday, January 6, 2009

Hiding List form fields by user rights in Moss 2007

Limiting presentation of data based on user rights (NOT the same as roles --
that may be trickier).

There are Codeplex projects that offer some field-by-field visibility and editability controls; see

http://www.codeplex.com/SPListDisplaySetting

And

http://www.codeplex.com/sptoolbasket

and possibly others.

-- Joshua

------ Forwarded Message
From: Laura Laura <laura.rogers@healthsouth.com>
Reply-To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Date: Wed, 24 Dec 2008 19:47:51 -0000
To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Subject: [sharepointdiscussions] Re: Hiding List form fields by user rights
in Moss 2007


I did something similar, and to hide and show rows (fields) of the
custom form according to certain permissions, you can use the
Conditional Formatting feature!

After you've inserted your custom form into the page in SharePoint
Designer, here's what you do.
In this example, I want to only show this field to people who have
"Approval" rights on the list:

1. Select the whole row that contains the field that you want to hide.
2. In Conditional Formatting, click <Create> and choose <show content>
3. Click <Advanced...>
4. In the expression box, put:
ddwrt:IfHasRights(16)

5. Click OK twice
6. Where did I get this mysterious "16" number?

http://www.wssdemo.com/blog/archive/2007/08.aspx
<http://www.wssdemo.com/blog/archive/2007/08.aspx>

Someone named Ian has listed all of the types of rights, and the
associated number. For example, "edit" is equal to 4.

Laura Rogers



--- In sharepointdiscussions@yahoogroups.com, "Tom" <tomsrig@...> wrote:
>
> Is there any way, using SharePoint Designer, to make a standard lists
> form field visible or invisible by user rights?
>
> I have the following Example list:
>
> Name
> Address
> Phone Number
>
> I want to make the phone number field in the form invisible to some
> users and visible to others.
>
> I want to do the same in the Edit Item form.
>
> Any ideas?
>
> Why did MS leave out the capability to make fields in forms
> invisible/visible per user access rights?
>




[Non-text portions of this message have been removed]


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sharepointdiscussions/

<*> Your email settings:
Individual Email Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/sharepointdiscussions/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:sharepointdiscussions-digest@yahoogroups.com
mailto:sharepointdiscussions-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
sharepointdiscussions-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/


------ End of Forwarded Message

Can folder metadata be displayed in columns?

This should be an FAQ...

Adding custom columns to a folder type makes it possible (e.g.) to post status on a folder of documents.

-- Joshua

------ Forwarded Message
From: boomer4d <boomer4d@yahoo.com>
Reply-To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Date: Thu, 18 Dec 2008 16:41:01 -0000
To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Subject: [sharepointdiscussions] Re: Can folder metadata be displayed in
columns?

You can do this by creating a custom site content type.

Go to Site Settings and the under Galleries select Site Content Type.

Click Create

Give your new content type a name and description

For the parent content type form select Folder Content Types

For the Parent Content Type select Folder

Select a content type group to put your new content type in. I
usually use Custom for this.

To add columns to your new content type click the "Select from
existing site columns"

Select columns from Core Contact and Calendar columns

Add the contact columns you want to see for your employees.

I haven't done exactly this but it should work. As with anything
custom I strongly recommend you try this in a development environment
first and see if it fits your needs and doesn't break anything. I
believe that would be a YMMV kind of thing ya know?

Hope that points you in the right direction.


--- In sharepointdiscussions@yahoogroups.com, "robtbenz"
<robtbenz@...> wrote:
>
> I am owner of a sharepoint 7 document library consisting of one
folder
> per company employee. In each employee's folder, the employee's
> resume, job description, and other documents reside. Only the
employee
> can edit them.
>
> I want to display contact info on each employee, in columns, next
to
> the folders. (call it 'folder metadata'.)
>
> But I can't figure out how to get folder metadata into those
columns.
> When I choose Actions\Edit in Datasheet, all the column cells are
> locked as read only. There's no way to enter any folder metadata.
>
> Whereas, if I open any folder and view the documents inside it, the
> columns become editable.
>
> What am i missing? How do I set up columns that can contain folder
> metadata?
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sharepointdiscussions/

<*> Your email settings:
Individual Email Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/sharepointdiscussions/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:sharepointdiscussions-digest@yahoogroups.com
mailto:sharepointdiscussions-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
sharepointdiscussions-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/


------ End of Forwarded Message

Add a customized column in Blog List

This is a great tip on extending the Blog (and perhaps other lists?) It appears to require MOSS, not just WSS.

-- Joshua

------ Forwarded Message
From: Laura Laura <laura.rogers@healthsouth.com>
Reply-To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Date: Fri, 19 Dec 2008 22:10:25 -0000
To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Subject: [sharepointdiscussions] Re: Add one more customize column in Blog
List......

Create a new site column (instead of on the list level). For column
type, select "Image with formatting and constraints for publishing".

Then, add that new column to your blog. See if this gives you the
results you're looking for.

Laura Rogers
Come see me at the SharePoint Best Practices conference
(www.sharepointbestpractices.com)

--- In sharepointdiscussions@yahoogroups.com, santhosh babu
<santhmon@...> wrote:
>
> Dear all,
> Â
> Â Â Â
> I have added a one more column in my blog list.
> The column Type is a picture.
> Â
> I have added a new post, the picture column show as a web address.
> I need to display like an attachment field.
> Ho w to change the column.
> (I need to upload a image in local system to server)
> Â
> Regards,
> Santhosh
>
>
> Bollywood news, movie reviews, film trailers and more! Go to
http://in.movies.yahoo.com/
>
> [Non-text portions of this message have been removed]
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sharepointdiscussions/

<*> Your email settings:
Individual Email Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/sharepointdiscussions/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:sharepointdiscussions-digest@yahoogroups.com
mailto:sharepointdiscussions-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
sharepointdiscussions-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/


------ End of Forwarded Message

Sunday, November 16, 2008

Email-enable a SharePoint Group

You can use SharePoint to send email to a mail-enabled AD Distribution
group. But did you know that you can email-enable a SharePoint permission
group? Daniel A. Galant gives the recipe below. Brian Hart notes that you
must have AD and Exchange behind the scenes for this to work.

GALANT:

If you go into the settings for a given group, (select the group and then
Settings>Group Settings) you'll find a setting to Create an e-mail
distribution group for this group. Select this. You will then likely need to
go into your Central Administration and actually approve the group before
you can use it. This is done from the Operations tab, Approve/Reject
Distribution groups.



Daniel A. Galant MINDSHARP 636-233-0762

MCITP - Enterprise Administrator, MCTS - SharePoint, MCTS - WSS v3, MCTS -
OCS, MCSE+Messaging, MCSE+Security, MCT...



daniel.galant@mindsharp.com


HART:

Of course this approach requires AD and Exchange Server, since what's
happening behind the scenes is that an Exchange Distribution Group is
being created for the members of the SharePoint group...



Bryan Hart Technical Consultant Solanite Consulting, Inc.

Thursday, November 13, 2008

Incoming email to SharePoint Document Libraries

You WILL run into this at some point if you use incoming mail to lists or
libraries. An incredibly useful technique, but "incredibly
limited".

There is an EmailReceived event for which you can write a handler, but this is not for the faint-of-heart.


------ Forwarded Message
From: "Todd O. Klindt" <todd@klindt.org>
Reply-To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Date: Mon, 10 Nov 2008 08:49:50 -0600
To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Subject: RE: [sharepointdiscussions] incoming email to SharePoint Document
Libraries

1) There is no way to alert the sender out of the box.

2) There is no way to alert the administrator out of the box.

3) There is no way to send an NDR out of the box



Incoming e-mail is incredibly limited, unfortunately.



tk



From: sharepointdiscussions@yahoogroups.com
[mailto:sharepointdiscussions@yahoogroups.com] On Behalf Of
anderson.matt86
Sent: Friday, November 07, 2008 3:05 PM
To: sharepointdiscussions@yahoogroups.com
Subject: [sharepointdiscussions] incoming email to SharePoint Document
Libraries



I have successfully enabled incoming email to Document Libraries. On
the Document Library settings for Incoming email, I have selected the E-
mail security policy of "Accept e-mail messages based on document
library permissions". I receive the following message in the log file
when an unathorized user sends an email to the document libary: "An
error occurred while processing the incoming e-mail file
C:\Inetpub\mailroot\Drop\2cea94d301c93f820000000c.eml. The error was:
Access denied. You do not have permission to perform this action or
access this resource.."

Is there any way to configure SharePoint to 1)alert the sender, 2)alert
an administrator, or 3)somehow return an undeliverable message when
this situation occurs?





[Non-text portions of this message have been removed]


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sharepointdiscussions/

<*> Your email settings:
Individual Email Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/sharepointdiscussions/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:sharepointdiscussions-digest@yahoogroups.com
mailto:sharepointdiscussions-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
sharepointdiscussions-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/


------ End of Forwarded Message

Friday, September 5, 2008

Social Networking Primer and Overview

Mike Gratta, a Principal Aalyst at the Burton Group, has contributed to Educause a 46-page primer and analysis of social networking in the enterprise:


http://net.educause.edu/ir/library/pdf/ecar_so/ers/ers0806/rs/ERS0806.pdf

[Note: a free registration (available to all WSU staff) is required.]

The key takeaway is that social networks cannot be counted on to happen via a simple "corporate Facebook" strategy; rather, an analysis of goals and methods is needed (surprise!). Anyone who wishes to plan or even discuss social networking in an enterprise context should be familiar with the terms and concepts introduced in this paper.

Tuesday, June 17, 2008

SharePoint Designer Technique: Mashups

From the Microsoft SharePoint Designer Team Blog (that is, the guys who know
this stuff well enough to write code around it), here are a couple of
mashup-type techniques. One is used to combine information from different
lists in a single display (almost like <gasp> a relational database); the
other brings in a Google map.

http://blogs.msdn.com/sharepointdesigner/archive/2008/03/26/sharepoint-confe
rence-building-a-sharepoint-designer-mashup-part-1.aspx


-- Joshua

Wednesday, April 9, 2008

Thursday, April 3, 2008

SharePoint 2007 URL Quick List

SharePoint 2007 URL Quick List

Heather Solomon is a Microsoft MVP (that is, she is a person recognized for her expertise by Microsoft, but is outside the company). This list of URL's for direct access to SharePoint management pages is part of her website focusing on SharePoint Design and customization.