Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Transaction Patterns » List2 with multiple parent relations to the same table
List2 with multiple parent relations to the same table [message #1770] Wed, 29 October 2008 14:18 Go to previous message
ikatz is currently offline  ikatz
Messages: 40
Registered: December 2007
Location: Durham, NH
Member
I have a table for organizations, and a table for vehicles. There are 3 links from the vehicle table to the organization table:

vehicle.manuf_organization_id ==> organization.organization_id
vehicle.owner_organization_id ==> organization.organization_id
vehicle.operator_organization_id ==> organization.organization_id

I am trying to set up a vehicle(list2) navigation button from my organization(list1) screen, so that the owner_organization_id is taken from the organization_id of the selected organization record. The controller for the vehicle(list2) is using the aliased organization table:
$outer_table = 'owner_organization';
The organization details are correctly displayed at the top of the list2 page.

However, executing an add2 from this list2 transaction produces a "No parent has been selected yet."

I assume I need to do something to the controller file for either the vehicle(list2) or organization(list1) to make the translation between organization_id and owner_organization_id work. But what is it?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon7.gif
Previous Topic: hyperlink in list or detail or tree form
Next Topic: PDF Report
Goto Forum:
  


Current Time: Fri Dec 27 13:43:50 EST 2024

Total time taken to generate the page: 0.01027 seconds