<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Display</title><link>https://community.appian.com/discussions/f/user-interface/38431/display</link><description>Hello everyone, 
 
 
 with this code I need to remove cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES[3] for the cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6] rest 1,2 would be there as it is in second columnsLayout . 
 2nd thing: in 3rd ColumnsLayout for the cons!CR_APP_TXT_CHILD_SOURCE_TYPES</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Display</title><link>https://community.appian.com/thread/144938?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 16:30:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5dcb44d-d163-42f6-96e1-d9723e6ea1d4</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The following is all I have time to get to for the moment but I&amp;#39;m hoping it&amp;#39;ll give you a head start:&lt;/p&gt;
[quote userid="298100" url="~/discussions/f/user-interface/38431/display/144936"] want to remove &lt;code&gt;cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES[3]&lt;/code&gt; when &lt;code&gt;cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6]&lt;/code&gt; is selected.[/quote]
&lt;p&gt;Here it might serve you to somewhat simplify your looping logic in your a!forEach.&amp;nbsp; Instead of a complex index statement as the &amp;quot;items&amp;quot; source, you could simply call the indices you want.&amp;nbsp; Resolve these against the values contained in your constant in the &amp;quot;expression&amp;quot; section.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;/* old logic...
 a!forEach(
  items: {
    index(
      cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
      { 1, 2, 3 },
      null
    )
  },
  expression: a!columnLayout(
*/


/* revised structure: */  
a!forEach(
  items: {1, 2, 3},
  expression: a!localVariables(
    local!currentEntry: index(cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES, fv!item),
    
    if(
      and(
        ri!sourceType_txt = cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6],
        fv!item = 3
      ),
      {},
      a!columnLayout(
        /* column logic goes here */
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display</title><link>https://community.appian.com/thread/144936?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 16:06:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55cb6c74-1869-40b6-a4a1-d08c1ac27dce</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;Here&amp;rsquo;s a simplified version of what you described:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;In the second column layout, I want to remove &lt;code&gt;cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES[3]&lt;/code&gt; when &lt;code&gt;cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6]&lt;/code&gt; is selected. The rest (&lt;code&gt;1&lt;/code&gt; and &lt;code&gt;2&lt;/code&gt;) should remain as they are. I tried this in the third column layout.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the third column layout, I need to display only &lt;code&gt;cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES&lt;/code&gt; values &lt;code&gt;{1, 2}&lt;/code&gt; for &lt;code&gt;cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1]&lt;/code&gt;. The other values should remain as they are. I tried this in the fifth column layout.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the fourth column layout, I need to display only &lt;code&gt;cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES&lt;/code&gt; value &lt;code&gt;{7}&lt;/code&gt; for &lt;code&gt;cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1]&lt;/code&gt; and &lt;code&gt;cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10]&lt;/code&gt;. I tried to achieve this in the seventh column layout.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;However, there&amp;#39;s an alignment issue, and the second case isn&amp;#39;t working as expected.&lt;pre class="ui-code" data-mode="text"&gt;{
  a!columnsLayout(
    columns: a!columnLayout(
      contents: if(
        ri!showAllLinks_bool,
        {},
        rule!CR_APP_RT_displayApproverInfoNote(
          message_txt: &amp;quot;New workflow cannot be initiated as another child flow is open/in-progress&amp;quot;
        )
      )
    )
  ),
  /*Release &amp;amp; delete to be shown where action proposed = Release or Delete*/
  /*No other Child process to be shown when release/delete proposed*/
  /*process button shown to DU users only*/
  if(
    contains(
      cons!CR_APP_CHOICES_ACTION_PROPOSED,
      tostring(
        index(
          ri!crAppSelected_cdt,
          &amp;quot;proposedAction_txt&amp;quot;,
          null
        )
      )
    ),
    a!columnsLayout(
      alignVertical: &amp;quot;TOP&amp;quot;,
      columns: {
        if(
          and(
            contains(
              {
                cons!CR_TXT_CCAD_UNIT,
                cons!CR_TXT_SYND_GROUP
              },
              rule!CR_FN_getUserRole(loggedInUser())
            ),
            tostring(
              index(ri!crAppSelected_cdt, &amp;quot;status_txt&amp;quot;, null)
            ) &amp;lt;&amp;gt; &amp;quot;Released&amp;quot;
          ),
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 8 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;NARROW&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          ),
          a!columnLayout(
            contents: rule!CR_APP_RT_displayApproverInfoNote(
              message_txt: &amp;quot;No child Process can be initiated&amp;quot;
            )
          )
        )
      }
    ),
    {
      /*Deferral Waiver, Legal, Release*/
      /*Shown for dashboard and all the source types*/
      /*Shown for other documents sourceType item*/
      a!columnsLayout(
        showWhen: contains(
          { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7] },
          ri!sourceType_txt
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: {
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 1, 2, 3 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;NARROW&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        }
      ),
      a!columnsLayout(
        showWhen: contains(
          { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6] },
          ri!sourceType_txt
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: {
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 1, 2 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;NARROW&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        }
      ),
      /*Deferral Waiver and Legal*/
      /*Show buttons when Best Effort and Conditions is filled*/
      /*Shown for dashboard and all the source types*/
      a!columnsLayout(
        showWhen: not(
          contains(
            {
              cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6],
              cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7]
            },
            ri!sourceType_txt
          )
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: if(
          and(
            ri!sourceType_txt &amp;lt;&amp;gt; cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10],
            or(
              rule!APN_isEmpty(ri!crAppSelected_cdt),
              rule!APN_isBlank(
                index(
                  ri!crAppSelected_cdt,
                  &amp;quot;conditionFlag_txt&amp;quot;,
                  {}
                )
              ),
              rule!APN_isBlank(
                index(
                  ri!crAppSelected_cdt,
                  &amp;quot;requirementFlag_txt&amp;quot;,
                  {}
                )
              )
            )
          ),
          a!columnLayout(
            width: &amp;quot;AUTO&amp;quot;,
            contents: {
              rule!CR_APP_RT_displayApproverInfoNote(
                size_txt: &amp;quot;STANDARD&amp;quot;,
                message_txt: &amp;quot;Best Effort &amp;amp; Conditions values are required to initiate Deferral, Waiver or CSG Review.&amp;quot;
              )
            }
          ),
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 1, 2, 3 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;NARROW&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        )
      ),
      a!columnsLayout(
        showWhen: contains(
          { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1] },
          ri!sourceType_txt
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: if(
          and(
            ri!sourceType_txt &amp;lt;&amp;gt; cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10],
            or(
              rule!APN_isEmpty(ri!crAppSelected_cdt),
              rule!APN_isBlank(
                index(
                  ri!crAppSelected_cdt,
                  &amp;quot;conditionFlag_txt&amp;quot;,
                  {}
                )
              ),
              rule!APN_isBlank(
                index(
                  ri!crAppSelected_cdt,
                  &amp;quot;requirementFlag_txt&amp;quot;,
                  {}
                )
              )
            )
          ),
          a!columnLayout(
            width: &amp;quot;AUTO&amp;quot;,
            contents: {
              rule!CR_APP_RT_displayApproverInfoNote(
                size_txt: &amp;quot;STANDARD&amp;quot;,
                message_txt: &amp;quot;Best Effort &amp;amp; Conditions values are required to initiate Deferral, Waiver or CSG Review.&amp;quot;
              )
            }
          ),
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 1, 2 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;NARROW&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        )
      ),
      /*DU child processes*/
      /*show only for DU user*/
      /*BU review shown to all source type, others shown only in collateral source type*/
      a!columnsLayout(
        showWhen: and(
          ri!isFromDashboard_bool &amp;lt;&amp;gt; true(),
          contains(
            {
              cons!CR_TXT_CCAD_UNIT,
              cons!CR_TXT_SYND_GROUP
            },
            rule!CR_FN_getUserRole(loggedInUser())
          ),
          not(
            contains(
              { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7] },
              ri!sourceType_txt
            )
          )
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: {
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 4, 5, 6, 7 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;AUTO&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  showWhen: if(
                    fv!index = 1,
                    true(),
                    contains(
                      { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10] },
                      ri!sourceType_txt
                    )
                  ),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        }
      ),
      a!columnsLayout(
        showWhen: and(
          ri!isFromDashboard_bool &amp;lt;&amp;gt; true(),
          contains(
            {
              cons!CR_TXT_CCAD_UNIT,
              cons!CR_TXT_SYND_GROUP
            },
            rule!CR_FN_getUserRole(loggedInUser())
          ),
          not(
            contains(
              { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7] },
              ri!sourceType_txt
            )
          )
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: {
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 7 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;AUTO&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  showWhen: if(
                    fv!index = 1,
                    true(),
                    contains(
                      {
                        cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1],
                        cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6],
                        cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10]
                      },
                      ri!sourceType_txt
                    )
                  ),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        }
      )
    }
  )
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display</title><link>https://community.appian.com/thread/144935?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 15:28:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba7243af-915a-4007-b1e4-a7404aad6963</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="298100" url="~/discussions/f/user-interface/38431/display/144933"]remove&amp;nbsp;cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES[3] for the&amp;nbsp;cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6] rest 1,2 would be there as it is in second columnsLayout[/quote]
&lt;p&gt;Maybe someone else will have more luck parsing this, but (especially without some more plain-language explanation, comparing/contrasting your current results to mockups of some sort) to me this is pretty incomprehensible.&amp;nbsp; As is most of what follows.&lt;/p&gt;
&lt;p&gt;Sincerely, I&amp;#39;m not trying to be unkind here, just trying to let you know that this is not easy to follow for anyone not already familiar with your form design / desired end results.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display</title><link>https://community.appian.com/thread/144933?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 14:57:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2498d9b-691a-4186-a9e0-9ab1ab4f278d</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;ok,let me explain you again.&lt;pre class="ui-code" data-mode="text"&gt;{
  a!columnsLayout(
    columns: a!columnLayout(
      contents: if(
        ri!showAllLinks_bool,
        {},
        rule!CR_APP_RT_displayApproverInfoNote(
          message_txt: &amp;quot;New workflow cannot be initiated as another child flow is open/in-progress&amp;quot;
        )
      )
    )
  ),
  /*Release &amp;amp; delete to be shown where action proposed = Release or Delete*/
  /*No other Child process to be shown when release/delete proposed*/
  /*process button shown to DU users only*/
  if(
    contains(
      cons!CR_APP_CHOICES_ACTION_PROPOSED,
      tostring(
        index(
          ri!crAppSelected_cdt,
          &amp;quot;proposedAction_txt&amp;quot;,
          null
        )
      )
    ),
    a!columnsLayout(
      alignVertical: &amp;quot;TOP&amp;quot;,
      columns: {
        if(
          and(
            contains(
              {
                cons!CR_TXT_CCAD_UNIT,
                cons!CR_TXT_SYND_GROUP
              },
              rule!CR_FN_getUserRole(loggedInUser())
            ),
            tostring(
              index(ri!crAppSelected_cdt, &amp;quot;status_txt&amp;quot;, null)
            ) &amp;lt;&amp;gt; &amp;quot;Released&amp;quot;
          ),
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 8 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;NARROW&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          ),
          a!columnLayout(
            contents: rule!CR_APP_RT_displayApproverInfoNote(
              message_txt: &amp;quot;No child Process can be initiated&amp;quot;
            )
          )
        )
      }
    ),
    {
      /*Deferral Waiver, Legal, Release*/
      /*Shown for dashboard and all the source types*/
      /*Shown for other documents sourceType item*/
      a!columnsLayout(
        showWhen: contains(
          { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7] },
          ri!sourceType_txt
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: {
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 1, 2, 3 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;NARROW&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        }
      ),
      a!columnsLayout(
        showWhen: contains(
          { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6] },
          ri!sourceType_txt
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: {
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 1, 2 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;NARROW&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        }
      ),
      /*Deferral Waiver and Legal*/
      /*Show buttons when Best Effort and Conditions is filled*/
      /*Shown for dashboard and all the source types*/
      a!columnsLayout(
        showWhen: not(
          contains(
            {
              cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6],
              cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7]
            },
            ri!sourceType_txt
          )
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: if(
          and(
            ri!sourceType_txt &amp;lt;&amp;gt; cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10],
            or(
              rule!APN_isEmpty(ri!crAppSelected_cdt),
              rule!APN_isBlank(
                index(
                  ri!crAppSelected_cdt,
                  &amp;quot;conditionFlag_txt&amp;quot;,
                  {}
                )
              ),
              rule!APN_isBlank(
                index(
                  ri!crAppSelected_cdt,
                  &amp;quot;requirementFlag_txt&amp;quot;,
                  {}
                )
              )
            )
          ),
          a!columnLayout(
            width: &amp;quot;AUTO&amp;quot;,
            contents: {
              rule!CR_APP_RT_displayApproverInfoNote(
                size_txt: &amp;quot;STANDARD&amp;quot;,
                message_txt: &amp;quot;Best Effort &amp;amp; Conditions values are required to initiate Deferral, Waiver or CSG Review.&amp;quot;
              )
            }
          ),
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 1, 2, 3 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;NARROW&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        )
      ),
      a!columnsLayout(
        showWhen: contains(
          { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1] },
          ri!sourceType_txt
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: if(
          and(
            ri!sourceType_txt &amp;lt;&amp;gt; cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10],
            or(
              rule!APN_isEmpty(ri!crAppSelected_cdt),
              rule!APN_isBlank(
                index(
                  ri!crAppSelected_cdt,
                  &amp;quot;conditionFlag_txt&amp;quot;,
                  {}
                )
              ),
              rule!APN_isBlank(
                index(
                  ri!crAppSelected_cdt,
                  &amp;quot;requirementFlag_txt&amp;quot;,
                  {}
                )
              )
            )
          ),
          a!columnLayout(
            width: &amp;quot;AUTO&amp;quot;,
            contents: {
              rule!CR_APP_RT_displayApproverInfoNote(
                size_txt: &amp;quot;STANDARD&amp;quot;,
                message_txt: &amp;quot;Best Effort &amp;amp; Conditions values are required to initiate Deferral, Waiver or CSG Review.&amp;quot;
              )
            }
          ),
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 1, 2 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;NARROW&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        )
      ),
      /*DU child processes*/
      /*show only for DU user*/
      /*BU review shown to all source type, others shown only in collateral source type*/
      a!columnsLayout(
        showWhen: and(
          ri!isFromDashboard_bool &amp;lt;&amp;gt; true(),
          contains(
            {
              cons!CR_TXT_CCAD_UNIT,
              cons!CR_TXT_SYND_GROUP
            },
            rule!CR_FN_getUserRole(loggedInUser())
          ),
          not(
            contains(
              { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7] },
              ri!sourceType_txt
            )
          )
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: {
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 4, 5, 6, 7 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;AUTO&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  showWhen: if(
                    fv!index = 1,
                    true(),
                    contains(
                      { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10] },
                      ri!sourceType_txt
                    )
                  ),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        }
      ),
      a!columnsLayout(
        showWhen: and(
          ri!isFromDashboard_bool &amp;lt;&amp;gt; true(),
          contains(
            {
              cons!CR_TXT_CCAD_UNIT,
              cons!CR_TXT_SYND_GROUP
            },
            rule!CR_FN_getUserRole(loggedInUser())
          ),
          not(
            contains(
              { cons!CR_APP_TXT_CHILD_SOURCE_TYPES[7] },
              ri!sourceType_txt
            )
          )
        ),
        alignVertical: &amp;quot;TOP&amp;quot;,
        columns: {
          a!forEach(
            items: {
              index(
                cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,
                { 7 },
                null
              )
            },
            expression: a!columnLayout(
              width: &amp;quot;AUTO&amp;quot;,
              contents: {
                a!cardLayout(
                  showBorder: false(),
                  showWhen: if(
                    fv!index = 1,
                    true(),
                    contains(
                      {
                        cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1],
                        cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6],
                        cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10]
                      },
                      ri!sourceType_txt
                    )
                  ),
                  height: &amp;quot;AUTO&amp;quot;,
                  style: if(
                    ri!buttonAction_txt = fv!item,
                    &amp;quot;ACCENT&amp;quot;,
                    &amp;quot;STANDARD&amp;quot;
                  ),
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                      align: &amp;quot;CENTER&amp;quot;,
                      value: {
                        a!richTextItem(
                          text: fv!item,
                          style: &amp;quot;STRONG&amp;quot;,
                          linkStyle: &amp;quot;STANDALONE&amp;quot;
                        )
                      }
                    )
                  },
                  link: a!dynamicLink(
                    showWhen: and(
                      ri!showAllLinks_bool,
                      ri!buttonAction_txt &amp;lt;&amp;gt; fv!item
                    ),
                    value: fv!item,
                    saveInto: {
                      ri!buttonAction_txt,
                      a!save(
                        ri!moduleRecommendationStatusChild_cdt,
                        rule!CR_FN_setModuleStatusHistoryChild(
                          requestId_int: ri!requestId_int,
                          cif_int: ri!cif_int
                        )
                      )
                    }
                  )
                )
              }
            )
          )
        }
      )
    }
  )
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I need to remove&amp;nbsp;cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES[3] for the&amp;nbsp;cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6] rest 1,2 would be there as it is in second columnsLayout .&amp;nbsp; I am trying to to remove cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES[3] for the&amp;nbsp;cons!CR_APP_TXT_CHILD_SOURCE_TYPES[6] rest 1,2 would be there , I tried this in 3&lt;sup&gt;rd&lt;/sup&gt; column.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2nd thing: in 3rd ColumnsLayout for the&amp;nbsp;&amp;nbsp;cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1] cons value need to display&amp;nbsp;cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,&lt;br /&gt; { 1, 2, } only rest of the things should be there. I tried this in 5&lt;sup&gt;th&lt;/sup&gt; columnsLayout.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3rd Thing: in 4th column layout need to display only&amp;nbsp;cons!CR_APP_TXT_NTB_CHILD_ACTION_TYPES,&lt;br /&gt; {&amp;nbsp; 7 }, for the&amp;nbsp;cons!CR_APP_TXT_CHILD_SOURCE_TYPES[1]&amp;nbsp; and cons!CR_APP_TXT_CHILD_SOURCE_TYPES[10]- I tried to achieve in 7&lt;sup&gt;th&lt;/sup&gt; columnsLayout.&lt;/p&gt;
&lt;p&gt;But there is some allignment issue and 2nd case is not working as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display</title><link>https://community.appian.com/thread/144931?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 14:43:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5bf9d5a3-321d-4599-94c4-aa5954260af6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This is pretty hard to follow.&amp;nbsp; What are you expecting to happen, in plain language?&amp;nbsp; What is happening instead?&amp;nbsp; Can you provide some screenshots of what you&amp;#39;re seeing, and describe what you were hoping to see instead (or maybe post some mockups that we can compare/contrast)?&lt;/p&gt;
&lt;p&gt;In cases like this I always suggest to start off simple, get one thing working well, then add on one thing at a time, and only move on once you get the previous item working.&amp;nbsp; It seems instead like you&amp;#39;re trying to do everything at once, and accidentally ending up with a huge pile of overengineered / mis-engineered form code that you either don&amp;#39;t understand or just won&amp;#39;t work (i can&amp;#39;t really tell which, if either, is the main issue here).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>