Skip to main content
December 26, 2023
Question

How to use a!iconIndicator in a gridColumn(), the icon cannot display

  • December 26, 2023
  • 4 replies
  • 0 views

a!gridColumn( 
label: "Status", 
sortField: "status",
value: if (
fv!row.isTesting, 
    a!iconIndicator( icon: "STATUS_NOTDONE",
    ), 
    a!iconIndicator( icon: "STATUS_OK", 
    ), 
)

    4 replies

    December 26, 2023

    I've solved myself the issue using a!imageField in the value

    venkatrea696188
    December 27, 2023

    Or you can use "Richtext icon" it's easier .

    mikes0011
    Brainy
    December 27, 2023

    completely agree with this - rich text icon is newer, better supported, has FAR more flexibility and MANY MANY more options.  i've been actively replacing uses of iconIndicator in my system for the past 3 straight years now due to how cumbersome the older way was.

    The Expression Guru
    sangeethab0005
    December 27, 2023

    Hi [mention:60209c2a71304231ab861500c2c17107:e9ed411860ed4f2ba0265705b8793d05] ,

    a!gridColumn(
    label: "Status",
    sortField: "status",
    value: if (
    fv!row.isTesting,
    if(
    ri!showNext,
    a!imageField(
    images: a!documentImage(document: a!iconIndicator("STATUS_OK"))
    ),
    a!imageField(
    images: a!documentImage(document: a!iconIndicator("STATUS_OK"))
    )
    )
    )
    )

    Kindly try this