<?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>Images display based on total no of Id&amp;#39;s</title><link>https://community.appian.com/discussions/f/general/22724/images-display-based-on-total-no-of-id-s</link><description>Hi , My requirements are i need to get the above images based on the no of listing id&amp;#39;s i have. I also need to get the address and price and all details should be dynamic also . Can anyone please help me out here . 
 Below i have attached my code</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Images display based on total no of Id's</title><link>https://community.appian.com/thread/88893?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 11:38:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:921667bd-103d-4fdf-9d23-9f9bf9be8a09</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;Yeah , This is the basic structure .thank you &lt;a href="/members/andrewh0007"&gt;ajhick&lt;/a&gt;. I will try an change it according to my requirements. Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Images display based on total no of Id's</title><link>https://community.appian.com/thread/88892?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 11:30:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ce73011-4e14-4868-adb3-757737979c86</guid><dc:creator>ajhick</dc:creator><description>&lt;p&gt;This is the basic bones. I&amp;#39;ve stopped it displaying past two rows but haven&amp;#39;t included any code to scroll through the pages, I&amp;#39;ll leave that up to you. Play around with the&amp;nbsp;local!numberOfListingsToGenerate,&amp;nbsp;local!maxListingsPerRow and&amp;nbsp;local!maxRowsPerPage variables to see the different results you get.&lt;/p&gt;
&lt;p&gt;If the second row is uneven I haven&amp;#39;t done anything about that but you&amp;#39;d have to consider how you&amp;#39;d want to do this and could be quite tricky for some numbers of listings.&lt;/p&gt;
&lt;p&gt;Is this the sort of thing you&amp;#39;re after?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!numberOfListingsToGenerate: 9,
  local!listings: a!forEach(
    items: 1 + enumerate(local!numberOfListingsToGenerate),
    expression: a!map(
      address: concat(
        fv!index,
        &amp;quot; Test St, Testville&amp;quot;
      )
    )
  ),
  local!numberOfListings: if(
    a!isNullOrEmpty(local!listings),
    0,
    length(local!listings)
  ),
  local!maxListingsPerRow: 5,
  local!maxRowsPerPage: 2,
  local!numberOfColumns: min(
    local!numberOfListings,
    local!maxListingsPerRow
  ),
  local!totalRows: roundup(
    local!numberOfListings / local!maxListingsPerRow,
    0
  ),
  local!numberOfRows: min(
    local!totalRows,
    local!maxRowsPerPage
  ),
  a!columnsLayout(
    columns: {
      a!forEach(
        items: 1 + enumerate(local!numberOfColumns),
        expression: a!localVariables(
          local!columnNumber: fv!item,
          a!columnLayout(
            contents: {
              a!forEach(
                items: 1 + enumerate(local!numberOfRows),
                expression: a!localVariables(
                  local!index: product(fv!item - 1, local!numberOfColumns) + local!columnNumber,
                  local!listing: index(
                    local!listings,
                    local!index,
                    {}
                  ),
                  local!address: index(
                    local!listing,
                    &amp;quot;address&amp;quot;,
                    {}
                  ),
                  a!cardLayout(
                    contents: {
                      a!richTextDisplayField(
                        labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                        value: {
                          a!richTextIcon(
                            icon: &amp;quot;home&amp;quot;,
                            size: &amp;quot;LARGE_PLUS&amp;quot;
                          ),
                          a!richTextItem(
                            text: concat(
                              char(10),
                              char(10),
                              char(10),
                              local!address
                            ),
                            style: {
                              &amp;quot;STRONG&amp;quot;,
                              &amp;quot;UNDERLINE&amp;quot;
                            }
                          )
                        },
                        align: &amp;quot;CENTER&amp;quot;
                      )
                    },
                    height: &amp;quot;MEDIUM&amp;quot;,
                    style: &amp;quot;NONE&amp;quot;,
                    marginBelow: &amp;quot;STANDARD&amp;quot;,
                    showWhen: not(a!isNullOrEmpty(local!listing))
                  )
                )
              )
            }
          )
        )
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Images display based on total no of Id's</title><link>https://community.appian.com/thread/88890?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 11:13:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e2f00c7-59be-4f7a-ad79-8c301352ac4b</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;yeah&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Images display based on total no of Id's</title><link>https://community.appian.com/thread/88889?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 11:12:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9273823-73f0-4443-9ca7-3284eb9084f6</guid><dc:creator>ajhick</dc:creator><description>&lt;p&gt;So a max of 2 rows per page?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Images display based on total no of Id's</title><link>https://community.appian.com/thread/88888?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 11:12:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3cc0b6bb-5274-41ab-8137-05b85d4374e3</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;Yeah i want to display the listings and its details in a card layout and i wanted limited no of listings per row&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is&amp;nbsp; 5 per row and 10 per page&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Images display based on total no of Id's</title><link>https://community.appian.com/thread/88887?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 11:10:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:10e5d1f6-abaa-469d-9191-2d79f6ca8c99</guid><dc:creator>ajhick</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I fully understand what you&amp;#39;re trying to achieve. Is it that you want to display all your listings in card layouts in a dynamic fashion where no matter the number of listings it just keeps listing them? Do you want to have a maximum number of listings per row? It seems like 3?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>