Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Interface expression mode

Please help me to figure oute the error - Expression evaluation error: Syntax error. Details: Expression evaluation error at function a!columnLayout parameter 2 [line 33]: Missing right parenthesis in expression, found COMMA

{
a!columnLayout(
columns:{
a!columnLayout(
contents: {
a!richTextDisplayField(
value: (
a!richTextIcon(
icon: ri!icon,
size:choose(
"LARGE",
"MEDIUM_PLUS",
"MEDUIM"
),
color:cons!DU_CHART_COLOR_HEX_CODES
),
)
),
a!richTextItem(
text: " " & ri!label,
size:choose(
"LARGE",
"MEDIUM_PLUS",
"MEDUIM"
)
)
}
),
}
a!columnLayout(
contents: (
ri!extraComponent
),
width: if(
ri!isSectionFullPageWidth,
"WIDE",
"NARROW_PLUS"
),
showWhen: not( isnull (ri!extraComponent ))
),
a!columnLayout(
width: "NARROW" ,
contents: {
a!richTextDisplayField(
labelPosition: "COLLAPSED",
align: "RIGHT",
value: (
a!richTextItem(
text: ri!linklabel,
style: "STRONG",
size: choose(
ri!level,
"MEDUIM",
"STANDARD",
"SMALL"
),
color:cons!DU_CHART_COLOR_HEX_CODES,
link: ri!link,
linkStyle: "STANDALONE"
)
)
)
},
showWhen: not( isnull (ri!showWhen))
)
),

if(ri!doesBottomDividerHaveColor,
a!cardLayout(
style: cons!DU_CHART_COLOR_HEX_CODES
),
a!sectionLayout(
divider: "ABOVE"
)
)
}

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Associate Developer

    Hi Amrutah,

    Please find the correct code pasted below. At line 29 you have missed one comma. And Column layout should present inside Columns layout.

    {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!richTextDisplayField(
                value: (
                  a!richTextIcon(
                    icon: ri!icon,
                    size: choose(
                      "LARGE",
                      "MEDIUM_PLUS",
                      "MEDUIM"
                    ),
                    color: cons!DU_CHART_COLOR_HEX_CODES
                  ),
                  
                )
              ),
              a!richTextItem(
                text: " " & ri!label,
                size: choose(
                  "LARGE",
                  "MEDIUM_PLUS",
                  "MEDUIM"
                )
              )
            }
          ),
          a!columnLayout(
            contents: (
              ri!extraComponent
            ),
            width: if(
              ri!isSectionFullPageWidth,
              "WIDE",
              "NARROW_PLUS"
            ),
            showWhen: not(
              isnull(
                ri!extraComponent
              )
            )
          ),
          a!columnLayout(
            width: "NARROW",
            contents: {
              a!richTextDisplayField(
                labelPosition: "COLLAPSED",
                align: "RIGHT",
                value: (
                  a!richTextItem(
                    text: ri!linklabel,
                    style: "STRONG",
                    size: choose(
                      ri!level,
                      "MEDUIM",
                      "STANDARD",
                      "SMALL"
                    ),
                    color: cons!DU_CHART_COLOR_HEX_CODES,
                    link: ri!link,
                    linkStyle: "STANDALONE"
                  )
                )
              )
            },
            showWhen: not(
              isnull(
                ri!showWhen
              )
            )
          )
        },
        
      ),
      if(
        ri!doesBottomDividerHaveColor,
        a!cardLayout(
          style: cons!DU_CHART_COLOR_HEX_CODES
        ),
        a!sectionLayout(
          divider: "ABOVE"
        )
      )
    }

  • Hi,

    Now having this error

    Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function 'choose' [line 11]: Choose index cannot be null.

Reply Children