문제

from official grocery CRUD web, they teach me set_relation like that:
set_relation tutorial

The tutorial show how to display database which the main table (set_table) is "employees". But how do i display when my set_table is offices, so then one of my column consist of list of employees which work in the specific office.

Thanks.

도움이 되었습니까?

해결책

In this case you will use callback_column and put inside the login to query the list of employees, loop through then , generating the HTML and returning it in the callback.

Take a look at the callback_column documentation http://www.grocerycrud.com/documentation/options_functions/callback_column

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top