Re: getDataObjectSelectDisplayValue

From: Date: Sat, 23 Oct 2004 02:38:13 +0000
Subject: Re: getDataObjectSelectDisplayValue
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15060@lists.php.net to get a copy of this message
On Fri, 22 Oct 2004 18:50:17 -0700, Ken Restivo <ken@restivo.org> wrote: > > One more silly question (hope I haven't reached my quota yet). > > I'm using DB_DataObject_FormBuilder::getDataObjectSelectDisplayValue() in my HTML_Table > display of records. I'm unclear on how it knows *which* field to display the links for: my > understanding of the DO is that it includes all fields in a table. > > I have a table with three separate link fields which link to three separate tables. > getDataObjectSelectDisplayValue only shows the first of them. > > I've stared at the source code for this function and it seems really simple. But, > apparently, I am even more simple, and it's not making sense to me. I think I've been > awake for too many hours straight. > > If getDataObjectSelectDisplayValue() is looking at all the fields which have crosslinks, > I'd expect it to return an assoc array. If it is only getting *one* field, I'd assume it > would take the name of that field as a parameter. > We should rename that function now... This function gives you the "display value" of a record. A name of sorts. This defaults to the primary key. To set up different ones, use the fb_linkDisplayFields array in the dataobject. More here: http://opensource.21st.de/tiki-index.php?page=Formbuilder+configuration+options#id690905 -- paperCrane --Justin Patrin--

« previous php.pear.general (#15060) next »