Few days back I ran into a problem where I wanted to enable the server technologies in a pre-existing Flex project (A project in which server was not configured at the time of creation). In such projects when you right-click on the project inside project navigator and then click on Flex Server, you will find that everything is disabled!
Now what to do?
Should I create a new project with server configuration and then copy all the source file to that newly created project?
Sounds weird!!! There is not to do all those things, just a single configuration change.
Go to your project directory and open the .flexPeoperties file in a text editor and change the value of flexServerType to 1 (which is 0 by default.)
Save the file, close it. Now go back to your flex builder and again right click on your project, select properties and then select Flex Server.
Everything is enabled now and you can do your server configuration on the same project.
Do post your comments if you find it helpful.
Cheers!
In this blog I will keep on sharing the new things about Flex, ActionScript, Sports and Movies, which I come across.
Saturday, March 14, 2009
Tuesday, February 17, 2009
Copy only selected items from a datagrid to clipboard in Flex
Hi,
After a long time I wished to write a post again :)
This time I am writing a simple class but I think it could be very useful to someone. There have been some classes which were copying the data from a datagrid. I decide to write a class which copies only the selected data from the datagrid.
First you will have to set the allowMultipleSelection="true" of the datagrid you want to copy. Then use the following class to copy the selected data from the datagrid.
package com
{
import flash.system.System;
import mx.controls.DataGrid;
public class CopyToCB
{
public static var ccString:String;
public function CopyToCB()
{
}
public static function CopyData(dg:DataGrid):void{
ccString = new String();
for(var i:Number=0;i<dg.columncount;i++){
ccString += dg.columns[i].headerText + "\t";
}
ccString += "\n";
for each(var item:Object in dg.selectedItems){
for(var t:Number=0;t<dg.columncount;t++){
ccString += item[dg.columns[t].dataField] + "\t";
}
ccString += "\n";
}
System.setClipboard(ccString);
}
}
}
Do let me know if it helps you.
Cheers!
-Ravi
After a long time I wished to write a post again :)
This time I am writing a simple class but I think it could be very useful to someone. There have been some classes which were copying the data from a datagrid. I decide to write a class which copies only the selected data from the datagrid.
First you will have to set the allowMultipleSelection="true" of the datagrid you want to copy. Then use the following class to copy the selected data from the datagrid.
package com
{
import flash.system.System;
import mx.controls.DataGrid;
public class CopyToCB
{
public static var ccString:String;
public function CopyToCB()
{
}
public static function CopyData(dg:DataGrid):void{
ccString = new String();
for(var i:Number=0;i<dg.columncount;i++){
ccString += dg.columns[i].headerText + "\t";
}
ccString += "\n";
for each(var item:Object in dg.selectedItems){
for(var t:Number=0;t<dg.columncount;t++){
ccString += item[dg.columns[t].dataField] + "\t";
}
ccString += "\n";
}
System.setClipboard(ccString);
}
}
}
Do let me know if it helps you.
Cheers!
-Ravi
Tuesday, October 14, 2008
Direct Connection of Flex to MySql
Yesterday I came across ASQL which is a complete library for creating a connection between Flex 2 and MySql without using any kind of service (RPC, Messaging, etc.). This is a kind of revolutionary thing in developing data application with Flex 2.
I tried my hands with it and found really interesting. We can just pass the query string in our Flex code and can get the result from MySql database. This is simply amazing.
Thanks to Lukasz Blachowicz for creating such a cool library.
Cheers!
I tried my hands with it and found really interesting. We can just pass the query string in our Flex code and can get the result from MySql database. This is simply amazing.
Thanks to Lukasz Blachowicz for creating such a cool library.
Cheers!
Saturday, September 27, 2008
Open office Suite from SUN
Yesterday I was prompted by a Java update on my machine.
After downloading and installing the Java update I came to know that there is a new shortcut icon on my desktop for OpenOffice. That icon redirected me to download openoffice.
I was surprised to see an open source office suite. It is exactly like Microsoft office suite. There is almost everything you can imagine for an office suite.
There is WRITER for doc files, IMPRESS for presentations, BASE for database files, CALC for spreadsheets.
I haven't use this suite though, but I would say SUN ppl have done a great job.
Cheers!
After downloading and installing the Java update I came to know that there is a new shortcut icon on my desktop for OpenOffice. That icon redirected me to download openoffice.
I was surprised to see an open source office suite. It is exactly like Microsoft office suite. There is almost everything you can imagine for an office suite.
There is WRITER for doc files, IMPRESS for presentations, BASE for database files, CALC for spreadsheets.
I haven't use this suite though, but I would say SUN ppl have done a great job.
Cheers!
Subscribe to:
Comments (Atom)