Jump to content


Relation not show

combobox setrelation

  • Please log in to reply
2 replies to this topic

#1 mazmur

mazmur

    Newbie

  • Members
  • Pip
  • 4 posts

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.

 

gc_error1.png

 

What is problem ?

 

Regards,

 

Mazmur



#2 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,100 posts
  • LocationLondon

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


Posted Image

#3 Yazid

Yazid

    Newbie

  • Members
  • Pip
  • 2 posts

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.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users