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"
        )
      )
    }

Reply
  • +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"
        )
      )
    }

Children