<?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>Card Layout, Limitation as a grid</title><link>https://community.appian.com/discussions/f/general/23941/card-layout-limitation-as-a-grid</link><description>I have a list of activities, which are displayed in card layout as grid, im displaying 20 activities at a time. 
 when the user clicks on &amp;quot;Load more&amp;quot; button, 20 more activities should be displayed along with previous 20 activities and so on. 
 
 I&amp;#39;m able</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Card Layout, Limitation as a grid</title><link>https://community.appian.com/thread/92268?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 14:05:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:171a03a3-4257-4148-a686-6fe0180e0098</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;BTW, and this is totally tangential, but you really really shouldn&amp;#39;t use &lt;em&gt;load()&lt;/em&gt; unless you&amp;#39;re still on an Appian version before 19.2 for some awful reason...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Card Layout, Limitation as a grid</title><link>https://community.appian.com/thread/92264?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 12:21:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02b312f3-41ec-4cf1-a7e3-a4a9a080923d</guid><dc:creator>madankg</dc:creator><description>&lt;p&gt;Thanks, its working as expected now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Card Layout, Limitation as a grid</title><link>https://community.appian.com/thread/92115?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 11:30:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb3201eb-f66a-4588-b407-0014ce82af79</guid><dc:creator>ajhick</dc:creator><description>&lt;p&gt;Ok, I have no idea why this works&amp;nbsp;but adding a!formLayout() solves your problem! I changed none of your code other than adding the a!formLayout().&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!counter: 40,
  a!formLayout(
    contents: {
      a!cardLayout(
        contents: {
          a!forEach(
            items: enumerate(local!counter) + 1,
            expression: {
              a!cardLayout(
                contents: {
                  a!richTextDisplayField(
                    value: a!richTextHeader(text: &amp;quot;Counter&amp;quot; &amp;amp; fv!item)
                  )
                },
                shape: &amp;quot;ROUNDED&amp;quot;,
                padding: &amp;quot;STANDARD&amp;quot;,
                marginBelow: &amp;quot;STANDARD&amp;quot;
              )
            }
          ),
          a!cardLayout(
            contents: {
              a!richTextDisplayField(
                labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                value: {
                  a!richTextIcon(icon: &amp;quot;repeat&amp;quot;, size: &amp;quot;MEDIUM&amp;quot;),
                  a!richTextItem(text: &amp;quot; Load More&amp;quot;, style: &amp;quot;STRONG&amp;quot;)
                },
                align: &amp;quot;CENTER&amp;quot;
              )
            },
            link: a!dynamicLink(
              saveInto: { a!save(local!counter, local!counter + 20) }
            ),
            height: &amp;quot;AUTO&amp;quot;,
            style: &amp;quot;ACCENT&amp;quot;,
            marginBelow: &amp;quot;NONE&amp;quot;
          )
        },
        showBorder: false()
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Card Layout, Limitation as a grid</title><link>https://community.appian.com/thread/92114?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 09:43:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e4f1354-9786-4eed-88a5-48872c00a521</guid><dc:creator>madankg</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!counter: 40,
  a!cardLayout(
    contents: {
      a!forEach(
        items: enumerate(local!counter)+1,
        expression: {
          a!cardLayout(
            contents: {
              a!richTextDisplayField(
                value: a!richTextHeader(text: &amp;quot;Counter&amp;quot; &amp;amp; fv!item)
              )
            },
            shape: &amp;quot;ROUNDED&amp;quot;,
            padding: &amp;quot;STANDARD&amp;quot;,
            marginBelow: &amp;quot;STANDARD&amp;quot;
          )
        }
      ),
      a!cardLayout(
        contents: {
          a!richTextDisplayField(
            labelPosition: &amp;quot;COLLAPSED&amp;quot;,
            value: {
              a!richTextIcon(icon: &amp;quot;repeat&amp;quot;, size: &amp;quot;MEDIUM&amp;quot;),
              a!richTextItem(text: &amp;quot; Load More&amp;quot;, style:&amp;quot;STRONG&amp;quot; )
            },
            align: &amp;quot;CENTER&amp;quot;
          )
        },
        link: a!dynamicLink(
          saveInto: {a!save(local!counter, local!counter+20)}
        ),
        height: &amp;quot;AUTO&amp;quot;,
        style: &amp;quot;ACCENT&amp;quot;,
        marginBelow: &amp;quot;NONE&amp;quot;
      )
    },
    showBorder: false()
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;call the Interface in the PM and the Pm in Site,&lt;br /&gt;&lt;br /&gt;When testing in Interface it works as Expected, but when you check in Site, the problem occurs&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Card Layout, Limitation as a grid</title><link>https://community.appian.com/thread/92111?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 09:12:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:01354d7e-d358-4831-a993-0e347e6d28a3</guid><dc:creator>ajhick</dc:creator><description>&lt;p&gt;It&amp;#39;s always useful to supply your code, it makes it a lot easier to see what&amp;#39;s going on. I&amp;#39;ve mocked up below and I&amp;#39;m not returned to the top.&lt;/p&gt;
&lt;p&gt;Let me know how you go with this code and if it helps. If it doesn&amp;#39;t please provide the code that you&amp;#39;re using and maybe then I can see what&amp;#39;s causing the return to the top.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!numberOfActivitiesToShowEachLoad: 20,
  local!totalNumberOfActivities: 79,
  local!activities: a!forEach(
    items: 1 + enumerate(local!totalNumberOfActivities),
    expression: concat(
      &amp;quot;Counter &amp;quot;,
      fv!index
    )
  ),
  local!batchesToShow: 1,
  local!activitiesToShow: index(
    local!activities,
    1 + enumerate(product(local!batchesToShow, local!numberOfActivitiesToShowEachLoad)),
    {}
  ),
  a!formLayout(
    label: &amp;quot;Load Activities&amp;quot;,
    contents: {
      a!forEach(
        items: local!activitiesToShow,
        expression: a!cardLayout(
          contents: {
            a!textField(
              label: fv!item,
              labelPosition: &amp;quot;COLLAPSED&amp;quot;,
              value: fv!item,
              readOnly: true
            )
          },
          marginBelow: &amp;quot;EVEN_LESS&amp;quot;,
          padding: &amp;quot;EVEN_LESS&amp;quot;
        )
      ),
      a!cardLayout(
        contents: {
          a!textField(
            label: &amp;quot;Load More&amp;quot;,
            labelPosition: &amp;quot;COLLAPSED&amp;quot;,
            value: &amp;quot;Load More&amp;quot;,
            readOnly: true
          )
        },
        style: &amp;quot;ACCENT&amp;quot;,
        link: a!dynamicLink(
          value: local!batchesToShow + 1,
          saveInto: local!batchesToShow
        )
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>