Home RSS 2.0 ATOM 1.0  CDF  
 
CodeSegment - Carlos Segura Sanz (blog)
 

I continue working in my csegSharePoint library. Meanwhile I'm doing some test with this, as this webpart that is a small calendar that show a date field from a list, and  it allows select the dates witth entries, and provide a cell value with the date. You can select the List and the Field and the styles to draw the calendar.

Also you can use this with csegRollUp to filter by dates, using [CellProvider] in queries.

The source code will be available along with more examples as csegNavigator and others with csegSharePoint.

 csegSmallCalendar.zip (13,68 KB)
Tuesday, May 02, 2006 6:26:56 PM (Hora de verano romance, UTC+02:00)
Whenver I add this webpart to a page and point it at a events list, I receive the following error. Any Ideas?

PANIC:
Message : Value does not fall within the expected range.
Source : Microsoft.SharePoint
Stack : at Microsoft.SharePoint.SPListCollection.get_Item(String strListName)
at csegSmallCalendar.csegSmallCalendar.a(Object A_0, DayRenderEventArgs A_1)
at System.Web.UI.WebControls.Calendar.OnDayRender(TableCell cell, CalendarDay day)
at System.Web.UI.WebControls.Calendar.RenderDays(HtmlTextWriter writer, DateTime firstDay, DateTime visibleDate, CalendarSelectionMode selectionMode, Boolean buttonsActive)
at System.Web.UI.WebControls.Calendar.Render(HtmlTextWriter writer)
at UnStyledCalendar.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at csegSmallCalendar.csegSmallCalendar.Render()
at csegSharePoint.WebParts.csegWebPart.RenderWebPart(HtmlTextWriter output)

Russell Powell
Wednesday, May 03, 2006 10:02:00 AM (Hora de verano romance, UTC+02:00)
Russell, use this http://www.ideseg.com/SharePointCsegSmallCalendarWithIFilterProvider.aspx and the filter interface.
Carlos.
Thursday, May 04, 2006 6:28:29 PM (Hora de verano romance, UTC+02:00)
Which field is to be indicated by "field name"? I have a German server and it with "beginning" (English begin) and "end" (to English end) tries. Does not function unfortunately.
Co
Thursday, May 04, 2006 6:39:25 PM (Hora de verano romance, UTC+02:00)
Co, try the german names. I don´t know the names in german, if you can send to me the schema.xml from tasks template.
Carlos.
Tuesday, May 09, 2006 5:44:37 AM (Hora de verano romance, UTC+02:00)
Hola, gracias por el desarrollo de estos webpart. Mi pregunta es con respecto al webpart del calendario, la versión que incluye el filtro. Unos compañeros y yo hemos tratado de conectarlo con un webpart "events", uno "task" y uno "announcement". El problema es que no hemos tenido éxito en hacer que se comporte como se indica, es decir que ponga link en lod ías que tengan un evento según el otro webpart. Gracias por la ayuda que pueda brindarnos
Tuesday, May 09, 2006 9:37:44 AM (Hora de verano romance, UTC+02:00)
Adrian,

Para la lista de eventos usa por ejemplo el campo "EventDate" que se corresponde con el campo comienzo, con anuncios la columna caduca es "Expired", con las listas de tareas por ejemplo la ficha de finalización es "DueDate", todos los campos por defecto de las listas tienen sus nombres en inglés. Los que tú crees puedes usarlos con el nombre que le hayas dado al campo, también recuerda que si renombras un campo, SharePoint mantendrá el nombre del campo que se dio en primer lugar.
Comments are closed.

Copyright © 2008 Carlos Segura. All rights reserved.