prev next

Hide/Show Edit Fields Based on SharePoint Permissions

June 1 2010  Categorized Under: SharePoint  Add Comment

I have been looking for a way to hide edit fields based on permission levels in SharePoint. I have done it before using conditional formatting in SharePoint Designer but sadly when you do this, it breaks the form. That is when I discovered SPServices. It is essentially a jquery library that simplifies the SharePoint web services and makes them easier to use.

Based on the following code snippet, I was able to hide the edit field based around the user’s permission level in SharePoint.

$().SPServices({
    operation: "GetGroupCollectionFromUser",
    userLoginName: $().SPServices.SPGetCurrentUser(),
    async: false,
    completefunc: function(xData, Status) {
        if($(xData.responseXML).find("Group[Name='SHAREPOINTGROUP']").length == 1)
        {
            $("#DIVID").hide();
	}
        else
        {
             $("#DIVID").show();
        }
    }
});
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • MySpace
  • Reddit
  • Technorati
  • Twitter

Spinach Wrap With Fruit

February 23 2010  Categorized Under: Pictures of Everyday Life  Add Comment

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • MySpace
  • Reddit
  • Technorati
  • Twitter

The 2000 Mile Challenge

January 8 2010  Categorized Under: 2000 Mile Challenge  Add Comment

Runner/Tom Belding/Flickr

Challenge

Run or walk at least 2000 miles in a year.

Rules

  1. This challenge will end December 31, 2010.
  2. Only runs or walks that have no purpose but to run or walk will count towards the 2000 miles.
  3. Things like walking to work, around the office, running to the car, etc will not count.
  4. Runs and walks will only count if the distance is more than two miles.
  5. For every mile, I will donate $1 to charity.
  6. I may run or walk more than the 2000 miles for this cause.
  7. If I do not make it to 2000 miles, I will still donate $2000 to charity.
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • MySpace
  • Reddit
  • Technorati
  • Twitter

Resolutions

January 7 2010  Categorized Under: Life  Add Comment

New Year Resolution/Sabine Davis/Flickr

Year after year, people make New Year’s resolutions. Almost nobody keeps them past January or even thinks of them after the first month. Most of these resolutions are made in good faith that we are going to stick to them but usually they are too ambitious and we end up giving up before February.

I am no different in this. My resolutions are usually made on the spur of the moment and not planned out entirely. I end up forgetting about them pretty quickly with the hustle and bustle of every day life.

This excuse only takes me so far. As 2010 starts off, I plan on changing this. Most of my goals for 2010 aren’t all that complicated and pretty generalized. Really that is the way it should be. If I go for something outrageous, then I may not complete it. I do have one goal that might be a little lofty but what fun would it be if I just played it safe.

My main goal for the year altered since when I first thought of it. At first it was to complete a triathlon. It isn’t that I don’t want to anymore but I am adding on to it. Not only do I want to do the triathlon, I want to really motivate myself and drive myself for something better.

When it comes to setting fitness goals, I am hands down terrible at it. I don’t know why but the usually fitness goals of losing weight, getting stronger, etc doesn’t motivate me. I see them more as side effects for what happens when you workout.

Most likely, you will lose weight if you consistently run or get stronger if you continue to lift weights. While you can hit peaks with this but that isn’t the reason why I do all the things I do.

I don’t run because I want to lose weight. I don’t lift weights to be able to lift 10 more pounds. I do it because I am living and I want to be healthy. I think about what my life would be if I couldn’t walk or run. How would that feel if I had to sit there in a wheelchair and watch everyone else run by? It isn’t like life would stop if this happened to me but while I can, I will do everything I can do. Plus I enjoy it.

I think about how different this is compared to the rest of my life. In most things, I am a goal-oriented person and strive to complete them. This is one part of my life where this doesn’t hold true. I don’t have any true fitness goals that truly motivate me.

I think most of the people who know me would agree that I usually put others in front of myself. This is probably why it is hard for me to make goals like getting stronger because they only serve myself. This made me think about how I could change this. How could I do this so it just doesn’t serve myself. This is what I came up with.

My goal this year is to walk/run at least 2000 miles. For every one of those miles I walk or run, I will donate $1 to charity. So by the end of the year, I should have at least $2000 to donate not counting the monthly donations I already do.

This means I have to walk/run at least 38.4 miles a week. Some weeks I will probably go further and then there will be the weeks where I don’t go too far so I am not going to try to worry about getting to 38.4 miles every week. Most likely I am going to be able to run at least half of these miles per week. The other part I will need to walk.

So far this week, I have walked/run 25 miles. I have a long ways to go. So much for having an easy goal.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • MySpace
  • Reddit
  • Technorati
  • Twitter

“Before I die, I want to live”

December 26 2009  Categorized Under: Life  Add Comment

Magic of Christmas/Natal Luz/Flickr

As I walked around on this cold Christmas day night, I thought back to these words. These words I will always remember and Katie who spoke them.

I thought back to this past year. Was I living life to everything that I wanted it to be? The memories of this year came rushing back in. It was a great year. There are so many moments that I hope to always remember but what I will remember most are the people.

As I thought about the people who came, left and continued to stay in my life, I realized one thing. It has been the people in my life that I truely cherish. Without them, those pieces of time wouldn’t be the same. They help make and shape the person who I am today.

I will continue to make new friends and say goodbye to some as time progresses. I do hope that the ones I do say goodbye to, they remember that they will always have a place within me and are welcome back.

As I think to what this new year will bring, I hope that it is as great as this past year has been. I will walk down the path of taking chances and enjoying everything that life brings to me.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • MySpace
  • Reddit
  • Technorati
  • Twitter