Home RSS 2.0 ATOM 1.0  CDF  
 
CodeSegment - Carlos Segura Sanz (blog)
 
Page 1 of 6 in the SharePoint category Next Page

Thanks to the guys from SPSProfessional, my small toy YACAMLQT, is ONLINE you can play with this in www.spsprofessional.com/sqlcaml.aspx

Enjoy...

 

Friday, June 27, 2008 6:53:53 PM (Hora de verano romance, UTC+02:00)   #    Comments [0]   CAMLEditor | SharePoint  | 

WOW. In only 4 minutes, connecting two webparts. You can download a public beta from www.spsprofessional.com

View Full Screen

Saturday, May 10, 2008 9:20:00 PM (Hora de verano romance, UTC+02:00)   #    Comments [0]   SharePoint  | 

It returns, the best Roll Up of contents for Share Point, of the hand of SPSProfessional. Sure it sounds you a lot.


And besides now it does pretty graphics.


 

More information in www.spsprofessional.com

 

Monday, May 05, 2008 5:56:24 PM (Hora de verano romance, UTC+02:00)   #    Comments [0]   csegRollUp | SharePoint  | 

From Windows Sharepoint Services 2.0 I was looking for a solution to do the Document Libraries a bit more Explorer like, time ago I wrote some WebParts to try solve the problem.

• csegDocLibTools

After the migration to Office Sharepoint Server 2007 the first thing that my users asked for was where is the copy and paste feature??  And where is the explorer like functionality??  Is it a new version of SharePoint?

What happened here… When the users have a characteristic that they are using continually it’s important that they have it in a new version otherwise the IT people are all incompetent. Yes, it’s normal. (I don´t speak here about the new office 2007 Ribbon bar, only to remember
that my users still hate me, as if it were my fault) 

Now they are using the SPSProfessional cut copy & paste feature and the navigation webparts… both work on Windows Sharepoint Services 3.0 and MOSS 2007.  You can see some images here, and here

Wednesday, January 23, 2008 2:28:50 PM (Hora estándar romance, UTC+01:00)   #    Comments [1]   SharePoint  | 

Data integration from an outside source into SharePoint, was one of the most wished characteristics that the SharePoint 2003 users were waiting for.

When Microsoft announced the Business Data Catalog, in Microsoft Office SharePoint 2007 we all were expecting the possibility of modifying our data, but it never happened, and by the moment the BDC remains as read-only.

On the other hand, the complexity of defining the BDC interface has always been an important barrier, so that a certain number of applications have arose to help us to define these interfaces.

SPSProfessional it's working on a set of WebParts  with which we can edit data bases ( for the present only SQL 2005) in just a few minutes. Furthermore these WebParts are working in both MOSS 2007 and WSS3. They are namely ActionDataBase WebParts ...

Let us take a quick view

Trough a little win form application ActionDataBase Generator, and introducing a simple Select query of SQL the necessary XML to configurate the ActionDataBaseGrid is generated to recover data from SQL Server and show them into SharePoint.

We can define a simple data view as it in less than one minute.

Using the same utility we can get further, there where BDC is not able to arrive. So simple as indicating a table and the ActionDataBase Generator will generate XML to form another of its powerful WebParts, the ActionDataBaseEditor. A fully CRUD WebPart for our table.

Through it we could edit online our database.

Don´t frighten, it takes just a couple of minutes.

And the ActionDataBase WebParts has other greats features as:

  • Fully customizable Tool Bar
  • Lookup fields
  • Date and DateTime fields controls
  • Fields validations (Required, Range, Regular Expression, Comparison)
  • Rich Text format fields
  • Filter data

So simple, so marvellous.

You can read more on http://www.spsprofessional.com/

Monday, January 14, 2008 11:22:23 AM (Hora estándar romance, UTC+01:00)   #    Comments [0]   SharePoint  | 

Continuing with the YACAMLQT, I have finished the first version. Now the "toy" tool supports, "group by" and "order by", and some expression errors are now fixed. In order to not increase the complexity of the lexer part, the clause "group by" must be write like "groupby" and the "order by" clause as "orderby".

To support this new clauses the first expression must begin with a "where" clause. The syntax is:

[WHERE boolean_expression] [GROUPBY field_list] [ORDERBY field_list]

A CAML complex query written in sql mode can look as:

WHERE ((Column1 = "Value1") AND (Column2 = "Value2")) OR ((Column3 = 10)
AND (Column3 <> NULL)) GROUPBY Column1 ORDERBY Column1, Column2 ASC, Column3 DESC

Also, you can use ==  for equal and != for not equal  and && for and, or, || for or (it's a c# goodie)

The CAML result code

<Query>
  <Where>
    <Or>
      <And>
        <Eq>
          <FieldRef Name="Column1" />
          <Value Type="Text">Value1</Value>
        </Eq>
        <Eq>
          <FieldRef Name="Column2" />
          <Value Type="Text">Value2</Value>
        </Eq>
      </And>
      <And>
        <Eq>
          <FieldRef Name="Column3" />
          <Value Type="Integer">10</Value>
        </Eq>
        <IsNotNull>
          <FieldRef Name="Column3" />
        </IsNotNull>
      </And>
    </Or>
  </Where>
  <GroupBy>
    <FieldRef Name="Column1" />
  </GroupBy>
  <OrderBy>
    <FieldRef Name="Column1" />
    <FieldRef Name="Column2" Ascending="True" />
    <FieldRef Name="Column3" Ascending="False" />
  </OrderBy>
</Query>

 

Also you can add the assembly (IdeSeg.SharePoint.Caml.QueryParse) in your projects

using IdeSeg.SharePoint.Caml.ParseQuery;
 
string query = "where Campo1=10 && campo2=\"Test\" and campo3=#01/01/2007# order Campo3";
try
{
    string xmlQuery = CAMLParser.Query(query);        
}
catch (ParserException ex)
{
    statusError = ex.Message;
}       

Internally the code use a Parser to generate an AST and a Lexer to scan the query, they do the hard work you can see the UML class diagrams below: 

Finally in the winforms application there is also a c# generator to do copy and paste. Enjoy!!!!!

 YACAMLQT.zip

(File Updated December 9, 2007)

Sunday, June 24, 2007 12:57:28 AM (Hora de verano romance, UTC+02:00)   #    Comments [2]   SharePoint  | 

Some time ago, I thought write a small tool in order to do CAML queries in plain text, as in SQL "where" clause. I have the idea forgotten, I missed myself in the daily work. Yesterday doing a little modification in a program I remembered this, of course while I was writting a complex CAML query.

I named it "Yet Another CAML Query Tool" aka (YACAML-QT).

By moment it's a little toy, you can write your queries as in a "where" clause, using the same syntax that you'd write in a SQL Sentence. It's is more easy!!!

Updated
Use "=null" as CAML IsNull operator and "<>null" as IsNotNull also you can use dates enclosed into sharp characters #01/01/1990# the sql Like operator is replaced by CAML Contains and the at "@" operator for the CAML BeginsWith. Also support parentheses for operator precedence.

TODO: a pretty interface :-)

 YACAMLQT.zip

(File Updated December 9, 2007)

Tuesday, June 19, 2007 10:50:10 PM (Hora de verano romance, UTC+02:00)   #    Comments [2]   NET Development | SharePoint  | 

Some days ago Eli Robillard wrote a fantastic post about how to build a sharepoint development machine it's very similar to which I use, but in a last step, I would add a tool to maintain remote sessions. A tool as Secure Shell (ssh) or Remote Shell, I use rsh, because it's easy for deployment and free, this comes with the Windows Services for Unix 3.5.

Using it I can install and uninstall solutions, features and webparts from my visual studio, external tools menu. Also you can add this to the post generation commands in order to deploy and get data from application pool prior to debug. (rsh machine iisapp)

Thursday, March 08, 2007 6:01:19 PM (Hora estándar romance, UTC+01:00)   #    Comments [0]   NET Development | SharePoint  | 

Este es un pequeño webpart, a su vez un clásico pero muy útil webpart, que nos permitirá recorrer la estructura de carpetas de una biblioteca de documentos. Por supuesto es para Windows Sharepoint Services 3.0 y Office Sharepoint Server 2007

¿Por cierto alguien se ha fijado en este botón que ha desaparecido en Windows Sharepoint Services 3.0 ?

Windows Sharepoint Services 2.0

 WSS3

La verdad es que aún siendo un simple history.back() era un botón muy útil.

 IdeSeg.SharePoint.WebParts.TreeExplorer.zip (9,19 KB)

Para instalarlo, descomprimir el zip

stsadm -o addwppack -filename IdeSeg.SharePoint.WebParts.TreeExplorer.cab -globalinstall
iisreset


Wednesday, March 07, 2007 4:38:38 PM (Hora estándar romance, UTC+01:00)   #    Comments [6]   csegDocLibTools | SharePoint | SharePoint-es  | 

This is a small update of my webpart csegSearch (for SPS 2003) that solves some issues with the custom results. Now are correctly displayed and you can short this.

For more info see:

 csegSearchWebPart15.zip (12,7 KB)

Prior to update this release, you need uninstall previous versions of csegSearch.

Monday, February 12, 2007 6:48:12 PM (Hora estándar romance, UTC+01:00)   #    Comments [1]   csegSearch | SharePoint  | 

Page 1 of 6 in the SharePoint category Next Page

Copyright © 2008 Carlos Segura. All rights reserved.