Posts

Showing posts from December, 2014

Sharepoint: Calculate Today in Sharepoint 2010 using Javascript

How to calculate Today's Date in SharePoint 2010Problem: Need a column in sharepoint that has updated today's date? This is an issue with sharepoint, there are couple of way going around this issue, its even more limited if you only have client side access to sharepoint.

Solution: Use client side (javascript) to update a column with today's date.
Note** javaScript is runtime script and so what this means, it will execute only when a user loads the page where the code exists.

Implementation: Refer to other blog post -- > Link


---------------------------------------------- Code ---------------------------------------------------------------
<script type="text/javascript">

var myListItemColelction;
var myListcontext;

//Delays function from running until sp.js loads
$(document).ready(function() {
    ExecuteOrDelayUntilScriptLoaded(getMyListItems, "sp.js");
});

function getMyListItems()
{
try
{
myListcontext =  new SP.ClientContext.get_current();
var we…

Sharepoint List: Days Elapsed or Countdown

Image
SharePoint List: How to Display Days Elapsed or Countdown 
Problem:Have you thought about introducing a countdown or even days elapsed as a feature in a sharepoint list?

Solution:Well i have a solution for you using javascript. It does get a little involved with code but very easy to implement.
4 Step Implementation:Step 1: Create the list in sharepoint and name it what you like
Add two columns:
Column 'Today" type = Date and Time
Column 'Days Elapsed' type = calculated

Step 2: Under list settings, go to column you have just added called Days Elapsed and enter the following formula: =ROUND(Today-Created,0)&" days" --> Output Data Type as a Single Line of Text.


Step 3: Some code --> Copy the code below and paste it into a nodepad, go through the code and change the name of your list: Look for LIST NAME, thats where you will change the name to your list name and also change the column name for "Today" if you named it different. Save this file to…

How to find pc serial number

Image
Find Computer Serial Number on any windows machine

1. Open command prompt (Click start, and search cmd) 2.Enter the command wmic bios serialnumber