Page 1 of 1

join table in the detail view(browse mode)

PostPosted: Sun Oct 24, 2010 8:47 am
by olivyeah
Hello.
I have a table that have join tables by the [__join__] directive in field.ini and i would like that the details view (browse mode) of that table shows the others details views of the join tables .

I tried that:
Code: Select all
function block__After_view_tab_content(& $record){
         $app =& Dataface_Application::getInstance();
         $date=$app->getRecord();
         $date_id = "=".$date->val('date_id');
         require_once( '/Dataface/TableView.php');
         $datetech =new Dataface_TableView('dates_tech', $date->_db , 'browse', array('date_id'=>$date_id ,'-action'=>'browse'),array( 'new'=>1));
         $datetechbrowse=$datetech->_browse();
         echo $datetechbrowse;
      return ;
   }

But it add the edit form mode of the join table and not the view mode. And I' m bit confuse about that.
I m sure there is a simple way to do what i need but can't find it.

Thanks for helping.

--
oliv'