I work on angular 7 app I face Issue I can't pass field name dynamically from repcon.fieldname to goToLink .
rep.offlineURL is static field so i need replace offlineURL with repcon.fieldname that return offlineURL
on function goToLink I need to replace goToLink(rep.offlineURL) with goToLink(rep.(repcon.fieldname))
ReportControl return the following :
- [{"reportid":"5","fieldname":"offlineURL","columnType":"1"},{"reportid":"5","fieldname":"onlineURL","columnType":"2"}]
component.html
"let repcon of ReportControl"> - "coln==repcon.fieldName">"repcon.columnType==1">
- "goToLink(rep.offilneURL)">"DownloadData" nbTooltipPlacement="bottom" nbTooltipStatus="primary">
"cloud-download-outline">
- goToLink(url: string){
- window.open(url, "_blank");
- }
- I Expected :
- goToLink(rep.(repcon.fieldname))
Laxmidhar SahooPosted May 26, 2020, 4:16 AM