I can't replace column rep.offilneUR with rep.reportcontrol.fieldname?

4 views
Skip to first unread message

ahmed elbarbary

unread,
Jun 18, 2020, 7:25:59 PM6/18/20
to Angular and AngularJS discussion
0

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}]

ahmed elbarbary

unread,
Jun 18, 2020, 10:52:44 PM6/18/20
to Angular and AngularJS discussion


بتاريخ الجمعة، 19 يونيو، 2020 1:25:59 ص UTC+2، كتب ahmed elbarbary:
can you please help me

Reply all
Reply to author
Forward
0 new messages