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

  • +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.

  • 0
    Certified Associate Developer
    in reply to amrutah0001

    Hi Amrutah,

    Choose function will accept only integer as input (Key). But you have passed text as parameter. Please use If or display value function to define the size.