deanlaw / cfcgenerator

Automatically exported from code.google.com/p/cfcgenerator
8 stars 6 forks source link

on Flex UI load, do not set a DSN #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When the Flex UI loads up, a DSN is auto chosen.  Be nice to have this off
so we don't have to wait for the service to populate the tables dataProvider.

Original issue reported on code.google.com by douglasknudsen@gmail.com on 3 May 2007 at 4:40

GoogleCodeExporter commented 9 years ago
+1

Original comment by iisitede...@gmail.com on 9 May 2007 at 5:32

GoogleCodeExporter commented 9 years ago
fyi, to do this I simply changed the result handler in the 
GetDatasourcesCommand() to
the below.  I then added 
prompt="Select a DSN."
to the combobox in DsnSelectPanel.mxml.  One way to do this at least.

public function result( rpcEvent : Object ) : void {
            model.datasources.source = rpcEvent.result as Array;
            CursorManager.removeBusyCursor();
            if (model.datasources.length == 0) {
                Alert.show("No supported datasources were found");
            }
        }

Brian, nice tool,been getting my team to use it here.  I REALLY wish the
FlexBuilder/CF team would rewrite the Eclipse Wizard CF-plugins  to be XSL 
based like
this.  Really is a great way to customize easily for your own personal 
preference.

DK

Original comment by douglasknudsen@gmail.com on 6 Jun 2007 at 8:22