Re: linkDisplayLevel not working from Member Variable in the DataObject

From: Date: Thu, 21 Apr 2005 16:36:32 +0000
Subject: Re: linkDisplayLevel not working from Member Variable in the DataObject
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18876@lists.php.net to get a copy of this message
On 4/20/05, Rodrigo Alvarez <papipo@gmail.com> wrote: > Justin Patrin wrote: > > On 4/19/05, Rodrigo Alvarez <papipo@gmail.com> wrote: > > > >>Hi PEARs, > >> > >>I have a DO with: > >> > >>var $fb_linkDisplayFields = array('costcategory_id', 'name'); > >> > >>So I would like the first field to be show as a text. This is inside the > >>Costcategory DO: > >> > >>var $fb_linkDisplayFields = array('name'); > >> > >>If I use: > >> > >>$fb->linkDisplayLevel = 2; > >> > >>I works perfect, but I prefer to use: > >> > >>var $fb_linkDisplayLevel = 2; > >> > >>inside the first DO, but this way, it doesn't work. > >> > >>Why? > >> > >>It's in the docs!! > > >>>>http://opensource.21st.de/tiki-index.php?page=Configuring+FormBuilder > >> > > > > > > What version of FormBuilder is this? There were some problems in the > > past with this. > > > > It *should* work from the DO... Try setting it in the DO before you > > cann DB_DO_FB::create($do); > > > > $do->fb_linkDisplayLevel = 2; > > > > Also, try 3, 4, etc and see if that makes any difference. > > > I finally used this: > > function preGenerateForm(&$fb) { > $fb->linkDisplayLevel = 2; > } > > and works ok. > Ok, but that's a less than optimal way of doing it. It *should* work from the DO. Please answer my previous questions and try the things I specified so that I know where to look. If there's a bug I'd like to fix it. -- Justin Patrin

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