Welcome, Guest. Please login or register.
Did you miss your activation email?
02/08/12, 08:56
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  MySQL, PostgreSQL, MS SQL, Access (Moderators: Flash-db, Musicman, Ronald Wernecke, Jorge Solis, Andries Seutens)
| | |-+  Dynamically populated DataGrids
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2] Print
Author Topic: Dynamically populated DataGrids  (Read 8891 times)
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6162


View Profile WWW Email
« Reply #15 on: 12/30/08, 03:13 »

the basic communication is pointed out in detail in our loading and saving tutorials.

The idea is:

you receive one grid with basic information and a headline (or alike), when you click, you receive a new grid with details (linked records).

In your database you need to have common keys to represent the relation.

If you click onto the master record, you receive this key (with all the other information you sent by the first grid)

Then you send a new request to the server containing this key value (sendAndLoad).

At the server, you do a query against the details table in your database with this key value (select filedlist from table where keyvalue=$_POST['key']), and return the result, which is inserted into a new grid.

You can either create the grid into the same movieclip, or call a new one in a new window, or whatever you like.

But it is essential, you understand the communication shown in loading and saving.

The most advanced technique is remoting - which I would use for such an application.

Play with the tutorials first, then modify them step by step, until you understand, how things are working.
I promise you, you soon will be able to do things, you never dreamed of Wink
« Last Edit: 12/30/08, 03:18 by Ronald Wernecke » Logged

happy flashing
Cool
Ronald
Pages: 1 [2] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything