SharePoint - Playing with csegScript Some users of csegRollUp2 ask to me how to get the complete list of fields for a list, remember that you can use the internal names with csegRollUp. Now you can use csegScript to show all fields and types of any list.

Change the red code with the name of your list, and put the webpart in the site where the list is stored.

Begin Script Code

csegAlertMan

- 1 min read

I am working in three webparts for handling alerts in Sharepoint, as advance here is first of them. 

csegUserListsAlerts

This webpart shows

  1. A drop-down list with all the lists of the Web site in where it is located. 
  2. The name of the current user
  3. One lists with all the users of the Web site
  4. The alerts for the selected list

o_csegUserListAlerts.gif

You can do:

Eliminate the selected alert
Eliminate all alerts for the current list
Add alert to selected users (specify type and frecuency)
Add alerts to all users

First, thanks to all by the comments about RollUp webpart.

Now, do you need a Calendar view with your RollUp events, tasks or any list???

Are you ready?.

You can use the Sharepoint calendar whith csegRollUp it’s easy and you can view the Month view, weekly view or day view whit your aggregated data.

Just, a sample of XSL to render.

<?xml version=’1.0′ encoding=’utf-8′?\>  
<xsl:stylesheet version=“1.0″ xmlns:xsl=“http://www.w3.org/1999/XSL/Transform”\>  
<xsl:output method=“html”/\>  
<xsl:template match=“/”\>  
       <SCRIPT\>  
       var dopt = new DateOptions;       
       dopt.chDateSep = “/”;
       dopt.chTimeSep = “:”;
       dopt.SetTimeFormat(1);
       dopt.SetDateOrder(1);
       dopt.SetDOW(0);
       dopt.webTZOffsetMin = -60;       
       var cal = new Calendar(null, null, dopt);
       var rgIcons = new Array;    
       rgIcons\[0\] = “\\u003cIMG border=0 width=16 height=16 title=\\u0022\\u0022 SRC=\\u0022/\_layouts/images/blank.gif\\u0022\\u003e”;    
       rgIcons\[1\] = “\\u003cIMG alt=\\u0022\\u0022 border=0 width=16 height=16 SRC=\\u0022http://srvsp/\_layouts/images/blank.gif\\u0022″;
       <xsl:for-each select=“Rows/Row”\>  
             <xsl:variable name=‘datetime’ select=‘Caduca’ /\>  
             <xsl:variable name=‘year’  select=‘substring( $datetime, 7 , 4 )’ /\>  
             <xsl:variable name=‘month’ select=‘substring( $datetime, 4 , 2 )’ /\>  
             <xsl:variable name=‘day’   select=‘substring( $datetime, 1 , 2 )’ /\>  
             <xsl:variable name=‘hour’  select=‘substring( $datetime, 1 , 1 )’ /\>  
             <xsl:variable name=‘minute’ select=‘substring( $datetime, 4 , 2 )’ /\>  
             <xsl:variable name=‘second’ select=‘substring( $datetime, 7 , 2 )’ /\>  
             <xsl:variable name=‘spdate’ select=“concat($year, ‘-’, $month, ‘-’, $day, ‘T0′, $hour, ‘:’, $minute, ‘:’, $second, ‘Z’ )” /\>
             cal.AddFullEvent(“<xsl:value-of select=‘$spdate’ /\>“,  
<xsl:value-of select=‘$spdate’/\>“,                                          
<xsl:value-of select=“Texto”/\>“,
<xsl:value-of select=“Título”/\>“,
<xsl:value-of select=“\_ItemUrl”/\>“,
                              rgIcons);          
        </xsl:for-each\>  
        cal.BuildUI();        
    </SCRIPT\>     
    </xsl:template\>  
</xsl:stylesheet\>

Result Screenshots

 

Some people ask me about samples of transformations, XSL to use with the csegRollUp webpart. First of all, I adopted XSL because it is the best way to customize any webpart.

I’m using mainly XMLSpy in work, but those days in my laptop I’m using too a freeware application to edit XSL called “cooktop” written by Victor Pavlov, it is a xsl, xpath and dtd editor, you can use the XML debug output from csegRollUp and test your XSL.

csegRollUp webpart

- 2 mins read

This is my new webpart, that I have worked in order to solve a common problem. The Rollup for Sharepoint lists.

With this webpart you can rollup any list in any site, you can get data from different lists (Tasks, Announcements, your customs lists)

The Webpart check the security so that if a user does not have access to a site or a list these data will not appear.

Webpart gathers data from the specified lists and join it in a common xml that later will render it using xsl.

csegRollUp webpart v2

- 1 min read

First, once again many thanks to all you for your kind commentaries about csegRollUp.

Sorry for being so late but I have had a lot of work last days, and nights are so short…

Fixes

For users with problems in sites with ports diferents to 80, I must say that all tests of this new version have been done with a server installed in the port 1000 and all them have run correctly.

csegSearch 1.1

- 2 mins read

Buff, finally csegSearch 1.1

Thanks to Henrik, Raphael, André, Klaus and Mario for your comments.

Fixed/Improvements

  • Add support to display custom attributes in results view.
  • Fix the query string parameters
  • Fix empty Hilight color
  • Hilight keywords in document title and author
  • Parser optimization and autofix 

Operation

Webpart will transform the keywords into sharepoint joining  the words with the nexus AND as in google.  Internally csegSearch uses a parser engine that tries to correct the syntax of queries.

csegSearchWebPart

- 3 mins read

csegSearch – Adds google type searches to your Sharepoint site – boolean searches

This webpart allows to make searches GOOGLE  type in sharepoint.

In the first place I would like to thank  Mattiew Cosier since to a large extent I have been inspired by his work. And Gustavo to test the webpart in your systems.

This webpart is a subclass of the webpart included in sharepoint called SearchResults. Baically, csegSearch   transforms the keywords and  gives them the correct syntax to be used with the predicate CONTAINS of the Sharepoint searches..

Uno de los problemas con los que me he encontrado cuando se cargan documentos html en una biblioteca de documentos es que cuando Sharepoint indexa el contenido de dichos documentos, al cárgalos  se pierde toda la estética del portal, esto también ocurre cuando abrimos los documentos desde una biblioteca de documentos.

Por lo general estos documentos los cargamos dentro de un webpart de contenido para que el usuario pueda navegar por estas páginas de manera que lo ideal sería que el documento se visualizará en el site del cual proviene.

This weekend I have been working in some improvements of the page viewer webpart and this is the result

New features

  • Control height of webpart
  • ICellConsummer Interface (to get an URL from another webpart)
  • AutoLoad if main page pass an URL in Load param

Control height.

This webpart use all client height area by default less  115 pixels used by site header. You can adjust this in the cssWebContent properties.