I try
Code: Select all
export class User {
public idSystemUser: number;
public userName: string;
public code: string;
public name1: string;
public name2: string;
public systemUserRolList: SystemUserRol[] = [];
}
export class SystemUserRol extends AbstractEntity {
public idSystemUserRol: number;
public systemUser: User;
public systemRol: SystemRol
}
Code: Select all
<p-dataTable [value]="user.systemUserRolList" [editable]="true">
<p-column field="idSystemUserRol" header="Rol" [editable]="true"></p-column>
<p-column field="systemRol.name" header="Rol" [editable]="true"></p-column>
</p-dataTable>
For the column systemRol.name does not edit the edition, there is some way to solve this issue