Skip to main content
hema.mathivathanan
April 21, 2023
Solved

reusing interface

  • April 21, 2023
  • 9 replies
  • 0 views

Hi Team, 

I have 2 interfaces, one which hold only the calender icon and other one which formats the date. 

1st interface AB_icon

a!richTextDisplayField(
value: {
a!richTextIcon(icon: "calendar-o", color: "SECONDARY"),

}
)

2nd interface which formats the date AB_formatdate

In the main interface, for one of the field I used both the interfece( my requirement is displaying the calender icon and the formatted date)

rule!FST_c_readOnlyFieldDisplay(
fieldName: "t Date",
value: {
rule!FST_c_dateWithIcon()
&
rule!FST_exp_formatDate(
datetime: ri!record[],
showtime: false
),

But the value is not getting displayed, instead the below is displayed. 

Can someone please help here

    Best answer by sanchitg0002

    I think you are trying to show a richTextDisplayField in a textField.

    What is the use of FST_c_readOnlyFieldDisplay()

    9 replies

    April 21, 2023

    I think you are trying to show a richTextDisplayField in a textField.

    What is the use of FST_c_readOnlyFieldDisplay()

    hema.mathivathanan
    April 21, 2023

    it has the richtextdisplayfield to display the label and the value

    hema.mathivathanan
    April 21, 2023

    I need a calender icon to be present in front of the date. How to do that

    mikes0011
    Brainy
    April 21, 2023

    Since nobody else mentioned this specifically - "&" is the string concatenation operator.  When you use it between the two other elements, it causes Appian to concatenate the contents of these into a string - that doesn't concatenate the output into a string, but rather concatenates the component code into a string - hence what you have in your original screenshot.

    The Expression Guru
    tejpals0001
    April 21, 2023

    Yes correct.