Monthly Archives: December 2010

SplendidCRM is copy of SugarCRM?


Now a days I’m reviewing all open source CRM. Till now I have seen SugarCRM, vTiger, SplendidCRM etc.

They are also providing web services to integrate our application to CRM.

SpledidCRM is built over, so it is but obvious that it’s web service will be in .net.

When I browse it to include it in my sample web site, I surprised!

So Splendid programmer forget to change the name of web service? lol!


List of most favorite questions on stackoverflow


Now a days stackoverflow, programming Q & A site, becomes most popular site for the developers.

Well to see the most favorite questions of that site, I tried to build an sql query on data Explorer site of them, which is

Here is that query:


Binding ColdFusion query to DataGrid in Flex

In this post I’ll explain you how to bind ColdFusion data into Flex grid.
First, get ready with your cfc.
Your cfc function may look like:

<cffunction name="getCategoryList" access="remote" output="false" returntype="query">
<cfset var qCategoryList = "" />
	<cfquery name="qCategoryList" datasource="#application.dsn#" username="#application.dbuid#" password="#application.dbpwd#">
		FROM	tblCategory
	<cfreturn qCategoryList />

Please note here that we are returning a ColdFusion query.

Now I’m setting up mxml page to show the grid and fetch the ColdFusion data with RemoteObject.

<?xml version="1.0" encoding="utf-8"?>
<s:Panel xmlns:fx="" 
		<s:RemoteObject destination="ColdFusion" source="cfc.categoryGateway" id="categoryGateway">
			<mx:method name="getAllForGrid" result="returnHandler(event)"
			import mx.controls.Alert;
			private function returnHandler(e:ResultEvent):void 
				dgCategory.dataProvider = e.result;
		<mx:DataGrid id="dgCategory">
				<mx:DataGridColumn headerText="Category ID" dataField="categoryId"/>
				<mx:DataGridColumn headerText="Category Name" dataField="categoryName"/>
				<mx:DataGridColumn headerText="Description" dataField="Description"/>

Easy enough?

Now let me point out important notes:

Remember one thing that ActionScript 2.0 and 3.0 are now case sensitive!

So if you write “description” instead of “Description” in DataGridColumn, it wouldn’t bind!

Also If your cfc method returns a ColdFusion structure, then you can get the value of structure elements by typing element name in capital later.

For e.g.

Your cfc method:

<CFSET var myStruct = structNew()>
<CFSET myStruct.query = qGetAllRecord>
<CFSET myStruct.RowCount = qGetAllRecord.recordCount>
<CFRETURN myStruct>

And your ActionScript code would be:

dgCategory.dataProvider = e.result.QUERY;;