Hello,
I'm new with Appian solution.
I'm trying to display an Icon in a link for each row in my record list.
This is the code I produced:
a!recordLink( label: a!richTextDisplayField( label: a!richTextIcon( icon: "eye", color: "ACCENT" ) ), recordType: rp!type, identifier: rp!id )
And this is the result, not really what I want
[@attributes=[@anyAttribute=[_cId:894355386587a9ecdef4ac8b655fcf5a], @nil=], label=[@attributes=[@anyAttribute=[_cId:f5463dfc5bbaba48a6f3b69c85a3e167], @nil=], icon=eye, iconId=f06e, altText=, caption=, flip=, size=, color=ACCENT, customSize=, actions=], labelPosition=ABOVE, instructions=, value=[@attributes=[@anyAttribute=[_cId:052dd425d6743c31d6829fae42b0ca51], @nil=], values=, actions=], valueAlignment=, actions=, helpTooltip=, accessibilityText=]
Is it possible to display an Icon ?
Thanks
Discussion posts and replies are publicly visible
You need to invert your thinking and use an image field (set to the icon you want) and add a link to that field that is of the type you want (recordLink in this case), something like this:
a!documentImage( document: a!iconNewsEvent( icon: "EYE" ), link: a!recordLink( label: rf!title, recordType: rp!type, identifier: rp!id ) )
Thank you ! it works
Sorry, for asking this as I am new to Appian as well. Where is this code for documentImage added in the record type?
Thank you,
Roberta
Hi Roberta
As per the discussion thread, flip the model in your head. Place an Icon on the User Interface and attach a link (of type a!recordlInk()) to it. If you're really stuck I can provide some sample code but have a try first. You'll need to refer to thse components:
https://docs.appian.com/suite/help/19.3/Image_Component.html
https://docs.appian.com/suite/help/19.3/Document_Image_Component.html
Stewart
IMHO, it would be best for us to steer people TOWARDS using Rich Text components with rich text icons for things like this, instead of *away*...
Well, it was more about the concept than the specific implementation. Yes, other sources of icons are available!