I try to replace rep.offilneURL with rep.[repcon.fieldName] but it not working .
repcon.fieldName return offilneURL inside command Type=1
on component.html
<ng-container *ngFor="let repcon of ReportControl">
<div *ngIf="coln==repcon.fieldName">
<div *ngIf="repcon.columnType==1">
<a (click)="goToLink(rep.offilneURL)"></a>
// replace rep.offilne by repcon.fieldName although repcon.fieldName return offilneURL
// repcon.fieldname=offilneURL
</div>
</div>
</ng-container>
report control as bove return below json :
report control is [{"reportId":2028,"fieldName":"offilneURL","reportStatus":"Icon","columnType":1},{"reportId":2028,"fieldName":"onlineURL","reportStatus":"Hidden","columnType":2}]