Eric’s adventures in Sharepoint, technology, and life.
Email icon Home icon
  • Setting read only fields on an Editform.aspx page

    Posted on August 17th, 2009 Eric No comments

    So I was working on a proof of concept assignment that was relatively simple, but thinking about it there was an inherent security issue. The idea for this Sharepoint site is to have a list where someone would register for a research topic. They only get to choose 1 topic. I was going to go about it in a simple way since it’s a POC after all, so it’s just a 2 list solution with a workflow.

    All the research topics are entered on one list, and users will just add their name to the desired topic and save the item back to the list, where Ill do some workflow things and remove it from the list of available topics. Since users have edit rights, I removed the toolbar so they can’t delete it on my custom EditForm.aspx page. The big security hoop is them changing the actual content of the topic and or description.

    This is where my simple solution comes into play. The EditForm.aspx page renders code that looks like this for the Description field.

    
    

    Simply change the ControlMode from Edit to Display, and you have a Read Only field on your Edit page. No jQuery, Javascript, or additional CSS required.

    Post to Twitter Post to Plurk Plurk This Post Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Stumble This Post

  • Black Tuesday

    Posted on August 11th, 2009 Eric No comments

    This morning I got some Facebook notifications from some friends back in Ohio. As it turns out, my previous employer, whom I spent 6 years working for and really enjoyed, fell on some hard times after a prosperous looking first half of the year. As a result, they had to let a lot of people go. Some were people I worked with on a daily basis while there and others were people I supervised before we moved down south.

    It’s unfortunate they had to be let go and my thoughts go out to them all. Heartland was my first professional place of employment and provided me a lot of opportunities. It paved the way for my entry into Sharepoint and where I am today. I will always look back upon today as Black Tuesday and remember those who were let go.

    I know there will be bigger and better opportunities out there for them, it may not be in Toledo. Follow your gut and believe in yourself and you’ll come out even better.

    Post to Twitter Post to Plurk Plurk This Post Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Stumble This Post