5121 Posts in 1527 Topics by 1119 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 676 Views |
-
I want the complextablefield popup to show the name of a related object

1 November 2009 at 11:39am
Hi,
i have a DataObject "Products" that has a has_one relationship to "Manufacturer". When I add a new "Product" via the complextablefield the popup shows a dropdown of manufacturerID. I want the dropdown to show the Manufacturer->name. How can I do this?
-
Re: I want the complextablefield popup to show the name of a related object

1 November 2009 at 9:45pm
As far as I know, the DropdownField constructor takes an associative Array as source list. So you could simply populate the array with ManufacturerID => Manufacturer->Name pairs?
-
Re: I want the complextablefield popup to show the name of a related object

2 November 2009 at 6:59am
Thanks for the hint banal. This is more complicated than i thought. I have to define a whole fieldset and pass it as a fifth argunemt to the constructor of the complextablefield. As soon as i figured it out ill post my result.
| 676 Views | ||
|
Page:
1
|
Go to Top |


