join table in the detail view(browse mode)

A place for users and developers of the Xataface to discuss and receive support.

join table in the detail view(browse mode)

Postby olivyeah » Sun Oct 24, 2010 8:47 am

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'
olivyeah
 
Posts: 8
Joined: Mon May 17, 2010 1:58 pm

Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 34 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved