I'd need to display a red/amber/green indicator?

How can I create and display a red/amber/green indicator for the 0 to 100% data (i.e disk space capacity) in SharePoint 2007 using C#. Thanks.

2 Answers

Relevance
  • 1 decade ago
    Best Answer

    You can do it in C# but you don't need to. If you have an enterprise lisence, use the KPI features (you may need to turn those features onin site settings --> site features and in Site Collection Settings --> Site Collection Features --> KPI).

    Or, you can do it without KPI:

    Create your list, and create a calculated field to calculate percentage based on the other columns in your list.

    Create another calculated column based on the percentage calculated column, and have it return 'amber.gif' 'red.gif' or 'green.gif'.

    Create a view that has the fields you want as well as the 'amber.gif' field.

    Using SharePoint Designer, convert the view to XSLT and change the field so that it displays the image instead of the text.

    Upload the images to the list directory, and you will have what you want.

  • 1 decade ago

    Look c# book!OK..

Still have questions? Get your answers by asking now.