Notifications
Announcements
Hi
I followed this example to implement icons in a column of a table view. However, it's only working on one column - I need it on two columns. Anyone done this successfully? Thanks.
Hello @Dartanian,
As per your image, i think there is some issue in the Switch case while populating the image in the view.
Please find my Video with step by step Guidance : https://www.youtube.com/watch?v=xLL0YZc8m1Y&t=2s
And my blog for Coding too : https://microsoftcrmtechie.blogspot.com/2021/09/add-custom-icons-in-sub-grid-or-view-in.html
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLABlog : https://microsoftcrmtechie.blogspot.com
Thanks @rampprakash
Actually, I watched your excellent video when I worked on the scrip. Very helpful, thank you 😀 . The problem is how to take a script that works and make it work for 2 columns.
I have one .js script that has two function.
Switch case for function 2:
Same with Edge. I attach the script to the column properties for both columns, but when I go back into the settings it has gone from the second column. Is the platform detecting a clash between the two functions running on the same view page? Would it be able to automatically ditch the script from a column?
Its Simple
1. Create a Function for One Column and Call that function in One View (Function1)
2. Create another Function in the Same Library and Call that Function in another View (Function2)
So 2 Function for 2 Views
Just Pass the Logical Name Column inside the Function like below
Please let me know if you need any help
Are you saying there can't be more than one column with icons per view?
Nope, it is possible but the Function trigger should be different for each Columns
First Column as per your snapshot
In code : var currentRows = getRows.Field1LogicalName
Second Column : (For Example)
Function Name : ChangeIconTooltip
In code : var currentRows = getRows.Field2LogicalName
Give a private chat if u need more help 🙂
Hi @rampprakash
I think that's what I've already got. Are you available now for chat?
yes we can, please give a private chat
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268