This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.2 » Admin generator and Cascaded Foreign Keys
Admin generator and Cascaded Foreign Keys [message #97840] Thu, 22 April 2010 08:51
sharathegde  is currently offline sharathegde
Messages: 1
Registered: April 2010
Location: Bangalore
Junior Member
Hello,

I need help to display cascaded table information in my admin generator form for "Stores"

I have the following tables:
1. Store table - the main table under consideration. This has a foreign key for the StoreArea in which it comes.
2. StoreArea table - has a foreign key for the Region in which the Store Area comes.
3. Region table - has a foreign key for the Division in which the Region comes.
4. Division table - the top level heirarchy for having Regions, Areas, and Stores

In the admin generator, I have the following:
***
config:
actions: ~
fields:
id: { label: "Store No." }
store_address: { label: "Address" }
store_city: { label: "City" }
store_state_code: { label: "State" }
store_email: { label: "Email" }
store_area: { label: "Area" }
list:
title: List of Stores
display: [id, store_city, store_state_code, store_area]
filter:
display: [id, store_city, store_state_code, store_area_id]
form: ~
edit:
title: Edit Store #%%store_name%%
new:
title: New Store
**

The Store Area shows up automatically since it is part of the Store table. How do I display the Region and Division information also in the display list AND the filter?

I created the following additional methods in my StoreClass. Uploading my StoreClass file and the generator.yml file I am using.

With Regards,
Sharat

Previous Topic:[SOLVED] admin-gen + dropdown list filter customization
Next Topic:SFPropelMigrationLightPlugin
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software