06-06-2008, 10:00 AM
[eluser]gusa[/eluser]
[quote author="abmcr" date="1212753097"]
IN few words, in the overview mode, i create a link to the second table (in your case lines_of_sale) with
[/quote]
thanks abmcr and jtaby. i made something similar by creating a plugin called LinkTo. in your example linkto would be the plugin for 'related2'. the problem is that when i execute the code it seems that codex tries to select the column 'related2' from the database.
can i create a field that's not associated to any field in the database? how?
[quote author="abmcr" date="1212753097"]
IN few words, in the overview mode, i create a link to the second table (in your case lines_of_sale) with
Code:
$config = array(
'db_table' => 'example',
'form_setup' => $this->spyc->YAMLLOAD($this->codexadmin->getDefinitionFileName('example_form')),
'controller_name' => 'Example',
'primary_key' => 'my_id',
'display_fields'=>array('textbox_test','checkbox_test','related2'),
'order_by' => 'textbox_test',
'order_type' => 'DESC',
'table_access_restriction'=>array('my_id '=>$this->uri->segment(3)),
'rules'=>$rules
);
$this->setConfig($config);
thanks abmcr and jtaby. i made something similar by creating a plugin called LinkTo. in your example linkto would be the plugin for 'related2'. the problem is that when i execute the code it seems that codex tries to select the column 'related2' from the database.
can i create a field that's not associated to any field in the database? how?