Re: linkDisplayLevel not working from Member Variable in the DataObject
| From: | Rodrigo Alvarez | Date: | Wed, 20 Apr 2005 20:47:20 +0000 |
| Subject: | Re: linkDisplayLevel not working from Member Variable in the DataObject | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18837@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
On 4/19/05, Rodrigo Alvarez <papipo@gmail.com> wrote:function preGenerateForm(&$fb) { $fb->linkDisplayLevel = 2; } and works ok.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+FormBuilderWhat 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: