Flex 3 Tree - XML Object-Relational Underground - con’t.

I am reporting I managed to implement the Flex 3 Tree Control. I need to blog about this soon, but for now, a list of sites and resources used or referenced which you might find useful monkeying with your own data navigation issues.
1) Ellery Chan, it helps to have a mentor or other mythical creature to get you started and keep you out of trouble.
2) Converting Database queries
3) Hierarchial data objects
4) of course livedocs on the Flex Tree
5) Flex 3 Cookbook, I used the pdf version, purchased from o’reilly, but the additional chapter 19 is what really helped and it’s online for free. However, you may also want to buy it, for chapter 5. Lists, Tiles, and Trees

Two Cool Sites

I like these two sites for simplicity and content. The names are cool and the way they were made is unique and awesome. Riley Engines content was created by a 3rd Grader and David Irick provided the expertise. David’s website, twentyone -157 studios, contians some cool content.

Hawaii 3D Islands

I would imagine the first time anyone has seen the ocean topo’s are on National Geographic and then maybe on Google Earth. Would be nice to know the actual numbers of users and frequency of use for GE. However, I just noticed the Hawaii 3D, or 3D Hawaiian Islands which was pretty cool. It would be great if this was more than an image, and it would not take much for them to render this in a 3D interactive content. Still, for what it is, I like the content and it makes a pretty picture too. Enjoy:
3D Hawaii

Flex 3 Tree - XML Object-Relational Underground

I need to say, I am really excited about this. First, I have always liked the tree component, and entirely amazed at being able to use it.  Like the hammer, I think it’s going to be the best fix-it tool in my bag. On investigation, most of the examples seem to be from the Flex 2 period and either too complex to carry out the simple task, or so terse it left me wondering what was going on. I was getting a little frustrated until I rediscovered if I read the instructions, sometimes this pays off too.

The Adobe Flex Tree Control is really a challenging component.  Before leveraging this awesome tool an understanding of just what is going on with the server side is vital.  My configuration is not important, but I guess I should discuss this for a bit.
There are a few server components you need to have inplace before trying this at home. A relational database is not required, but unless your totally locked into useing an xml database, which is entirely possible, you need to be well versed with the dbms of your choice. You need to have a reasonable understanding of how to either generate your SQL or write your own. A major part of my experience has been within a Windows environment, so an understanding of ODBC or ADO is not required, however, the other routes are not easy, which means your going to need to connect directly through a TCPIP connection, DBMS propritary communication port, or utilizing a JRE2 based connection. One of which your going to need to understand. Another item your going to need to know how to do is configure your internet server.  You are also going to need to pick a webpage application type. If you understand all of that, then I am speaking to the right person.   My system configuration: Windows XP professional (with latest ODBC jet dll’s), apache 2, php, and a MS Access database.

The php is used to connect to the database using a dsn-less connection:Â
1) Define the php page content
2) Define the php xml page output
3) bound the xml content with a root item; echo(”“);
4) Define a query, update, or delete
5) Connect to the database and test connection
6) Design your SQL
$sql =”SELECT
7) get the next row from the query result table and assign to variables
8) parse xml from the data names and use variable names for xml labels and values
9) close the connection

The field names from an sql Access query are posted with minor editing into the php page. think about the content that needs to be fed into the Adobe Flex Tree component. A hint, your nodes are going to be where you have primary key’s or foreign keys which is where a logical relationship exist between the data elements. The xml content needs to be parsed to create the content and you need to include both the content of the field and your labeling of the node and or the leaf of the tree. You can either code this… or I prefere to use a spreadsheet to parse it out.

Now that you have your sql, and xml nicely formated in your php file, test it to make sure the content is what goes into the Tree Control.

Flex Builder 3 Provides a Split Screen


I have seen in a couple of places that the Flex Builder 3 could provide a split screen, but not a true split screen. Which is not true any more. If you want to edit your code using the “True” split screen mode, that is, you can edit in any duplicate window and it updates automatically.

Real simple, just right click on the tab of your editor and click on the context menu item “New Editor” to create the duplicate, but then, left click-hold and drag the tab down to the BOTTOM of the editor view. This is where I got stuck, so don’t panic. I didn’t realize you must drag it down towards the bottom of the window, until you see a line appear across the editor, then let go…
Hence, my insane preamble the day before. If you would like some more details on the IDE go to McCunes: what-my-eclipseflex-builder-setup-looks-like

I hope someone is helped by this.
Cheers,
HPP

Dual Screen Monitor Demise: Head-Up-Display

Sorry, it doesn’t exist.. but I’m really in need of more screen real estate, without using any physical space.  That way, life has an overlay, with an adjustable opacity, that way you can focus.. or participate but stay in touch… or take a break but still be working…  There are about 50 reasons I need one, and all of them come down to being carefree and totally organized.  Please, I am so together. not.

What’s going to happen when we can have a HUD 24/7 ?

Re-Post: Mapping Site Visitors

I love this map! yes.. this is a repost, and well, if I knew how to keep this somewhere near the top.. i would…
…hey, the map was removed since i found a Wordpress Sticky plugin to keep my favorites near the top

Tour-De-Flex

Well, I should have visited the tour de flex sooner.. i love it and it gives me ideas I can implement right away.. Thanks again Adobe!

Frameworks

When I discovered esri api and subsequently Flex Viewer, I was more excited about the framework and the discovery of patterns… as I am trying to understand the design and the reasoning for the design of the Flex Viewer, I am often re-reading an O’Reilly book on design patterns.. and now… it’s making more sense. Well, as it goes, I am beginning to get it… or actually, after writing my own poorly structured code, I now want my code to be more beautifully wrote. The Flex Viewer is using the MVC, Model View Controller, pattern, while this is not the only framework out there.. it’s the first for me. Now I need to know more about how to work with the framework. I need something like framework explorer, like this cairngorm diagram explorer since this has been updated. Again, I am filled with the sense, this is really important.

Not so much that I believe this is the framework for me. But, that it’s leading me into a very warm and safe place to further develop my skills as a programmer… wait, did I just call myself a programmer? no.. more of hack, but still, I really appreciate beautiful code, and it’s not easy to find resources which speed’s one along this path.

Now Serving Ticket…

This is very cool, a map to post where your visitors are viewing from. You’ll need to visit http://whos.amung.us to get one for yourself… but don’t feel bad if your the only pin on this map. I mean, this is the ultimate privacy to be one out of 6 billion on this map.