sounder
08-09-2010, 01:23 AM
Hi everyone, first post, and have looked all over the place for some help on this. So hopefully someone has an idea as to what exactly im looking for.
I picked up FB4, and have been playing around with the data services and php. I have a MYSQL database with 2 tables, one is clients, the other is properties.
In FB4 I have successfully connected to the database and have bound the "getall" clients service to a datagrid control. Now im looking to get a second datagrid that will display the properties that are associated with each client.
My properties table has a foreign key, and I can run a join command succefully on the db. so... i was thinkning doing something like modifing the get all property service with my custom query, and then calling the service from:
dataGrid2.addEventListener(ListEvent.ITEM_CLICK,on ItemClick);
but, how does the second datagrid know which client I am on??
What is the proper way to work with multi tables and a master detail style grids??
best regards,
Corey
I picked up FB4, and have been playing around with the data services and php. I have a MYSQL database with 2 tables, one is clients, the other is properties.
In FB4 I have successfully connected to the database and have bound the "getall" clients service to a datagrid control. Now im looking to get a second datagrid that will display the properties that are associated with each client.
My properties table has a foreign key, and I can run a join command succefully on the db. so... i was thinkning doing something like modifing the get all property service with my custom query, and then calling the service from:
dataGrid2.addEventListener(ListEvent.ITEM_CLICK,on ItemClick);
but, how does the second datagrid know which client I am on??
What is the proper way to work with multi tables and a master detail style grids??
best regards,
Corey