⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Relation not show



mazmur
  • profile picture
  • Member

Posted 19 June 2019 - 07:40 AM

Dear GC,

 

I'm already used GCE 2.7.5.

 

In setrelation function u used code below :

$crud = $this->_getGroceryCrudEnterprise();
$crud->setTable('mgi_pegawai');
$crud->setSubject('Pegawai', 'Pegawai');
$crud->setPrimaryKey('kd_jabatan','mgi_jabatan');
$crud->setRelation('kd_jabatan','mgi_jabatan','nm_jabatan');
$crud->setRelation('kd_dept','mgi_departemen','nm_departemen');

But in add and edit form the 2 setRealtion (kd_jabatan & kd_dept) not show.

 

[attachment=1363:gc_error1.png]

 

What is problem ?

 

Regards,

 

Mazmur


web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 22 June 2019 - 06:23 AM

Dear GC,

 

I'm already used GCE 2.7.5.

 

In setrelation function u used code below :

$crud = $this->_getGroceryCrudEnterprise();
$crud->setTable('mgi_pegawai');
$crud->setSubject('Pegawai', 'Pegawai');
$crud->setPrimaryKey('kd_jabatan','mgi_jabatan');
$crud->setRelation('kd_jabatan','mgi_jabatan','nm_jabatan');
$crud->setRelation('kd_dept','mgi_departemen','nm_departemen');

But in add and edit form the 2 setRealtion (kd_jabatan & kd_dept) not show.

 

attachicon.gifgc_error1.png

 

What is problem ?

 

Regards,

 

Mazmur

Hello @mazmur,

 

Unfortunately I can't reproduce your issue. Can you please send me an email at: info@grocerycrud.com with some more specific environment details so I can investigate more to the problem?

Regards

Johnny


Yazid
  • profile picture
  • Member

Posted 10 October 2019 - 02:45 AM

@mazmur, its because your relation id (in pegawai table) is not the same name with your FK (foreign key) in mgi_jabatan table.