Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Data Model Questions

Use more than one complextablefields


Reply

314 Views

Avatar
dataforlife

20 October 2011 at 11:08am (Last edited: 20 October 2011 11:11am), Community Member, 10 Posts

Hallo,

i want to use two or three complexttablefields of one Class with different filters. How can i do this?

my code is:

$Member_unchecked = new ComplexTableField(
         $this,
         'Member',
         'Member',
         null,
         null,
         "Member.EventsID = {$this->ID} AND checked = '0' "
      
      );   
      
      $fields->addFieldToTab('Root.Content.Not checked Members', $Member_unchecked);   
      
      
      
      
$Member_checked= new ComplexTableField(
         $this,
         'Member',
         'Member',
         null,
         null,
         "Member.EventsID = {$this->ID} AND checked= '1'"
      
      );   
      
      $fields->addFieldToTab('Root.Content.Checked Member', $Member_checked);   
      

But it doesn't work. One of the two tabs is just white. What is wrong?
Is there perhaps an other way to do what i mean?

thanks