Follow
Using URLs to Replace Stock Icons in View Columns

Overview

Here is an example to switch the status column icon from a smile face to a custom icon

Details

1. Upload an image and note the url to view it i.e….
https://cdn2.iconfinder.com/data/icons/circle-icons-1/64/check-128.png

2. In your view create a column that shows task >> Status

3. In advanced options for that column add a column rule for
Task >> Status     Not Equal     complete
Set it to “show an icon there” and choose the smile face.

4. Save the Column Rule

5. Switch to text mode and you should see something similar to the following

textmode=false
valuefield=status
valueformat=val
enumclass=com.attask.common.constants.TaskStatusEnum
descriptionkey=status
linkedname=direct
listsort=string(status)
namekey=status
querysort=status
shortview=false
stretch=0
type=enum
width=150
image.case.0.comparison.leftmethod=status
image.case.0.comparison.lefttext=status
image.case.0.comparison.righttext=CPL
image.case.0.comparison.operator=notin
image.case.0.comparison.operatortype=string
image.case.0.comparison.icon=true
image.case.0.comparison.truetext=/static/img/r15/icons/casebuilder/emoticon_smile.gif



6. Replace the image location shown with the url of the custom image you would like to use.

descriptionkey=status
displayname=Approved No
enumclass=com.attask.common.constants.TaskStatusEnum
image.case.0.comparison.icon=true
image.case.0.comparison.leftmethod=status
image.case.0.comparison.lefttext=status
image.case.0.comparison.operator=notin
image.case.0.comparison.operatortype=string
image.case.0.comparison.righttext=CPL
image.case.0.comparison.truetext=https://cdn2.iconfinder.com/data/icons/circle-icons-1/64/check-128.png
linkedname=direct
listsort=string(status)
namekey=status.abbr
querysort=status
shortview=false
stretch=0
textmode=true
type=enum
valuefield=status
valueformat=val
width=150