<?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 data from database view into interface</title><link>https://community.appian.com/discussions/f/new-to-appian/21995/display-data-from-database-view-into-interface</link><description>Hello Everyone, 
 I would like to display data from database view into interface without using grid. Can anyone please help me how to achieve this, the displayed must be editable as well. 
 Thank You.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/86145?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 10:06:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8192d76c-9cc6-4b54-beff-b03d89fe29b1</guid><dc:creator>saurabhrajnala</dc:creator><description>&lt;p&gt; thanks for the tip.&lt;/p&gt;
&lt;p&gt;&lt;a href="/members/shubhamy0001"&gt;shubhamy0001&lt;/a&gt; you can create fields such as textField, dropdownField and so on for all the columns of your view&amp;#39;s row and edit the data there and save into the table that is used in the view since views aren&amp;#39;t editable. In my above reply you can notice the textField inside the box layout&amp;#39;s contents in the code snippet. You can hold values of your DB entity in that field and manipulate the data over there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/86144?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 08:36:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e7ac4e85-70ea-46b6-852d-af3c378e9985</guid><dc:creator>subhad</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;If your use case is to try different components to display the DB items in a more presentable way, you can use the card layout as grid. Please find the below code snippet from Appian documentation to achieve having card layout as background. Similarly, you can run the card layout in foreach() with alternative colors.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.3/card_layout.html"&gt;docs.appian.com/.../card_layout.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localvariables(
  local!salesLeaders: {
    a!map(rank: &amp;quot;1st&amp;quot;, name: &amp;quot;Cindy Pratt&amp;quot;, revenue: &amp;quot;$3.72M&amp;quot;),
    a!map(rank: &amp;quot;2nd&amp;quot;, name: &amp;quot;Kyong-Ok Yi&amp;quot;, revenue: &amp;quot;$2.94M&amp;quot;),
    a!map(rank: &amp;quot;3rd&amp;quot;, name: &amp;quot;Linda Smith&amp;quot;, revenue: &amp;quot;$2.51M&amp;quot;)
  },
  a!headerContentLayout(
    header: {},
    contents: {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!cardLayout(
                contents: {
                  a!sectionLayout(
                    contents: {
                      a!richTextDisplayField(
                        labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                        value: {
                          a!richTextItem(
                            text: upper(&amp;quot;Sales Revenue Leaderboard&amp;quot;),
                            color: &amp;quot;STANDARD&amp;quot;,
                            size: &amp;quot;MEDIUM&amp;quot;,
                            style: &amp;quot;STRONG&amp;quot;
                          )
                        }
                      ),
                      /* Displays a row for each sales leader */
                      a!forEach(
                        items: local!salesLeaders,
                        expression: a!sideBySideLayout(
                          items: {
                            a!sideBySideItem(
                              item: a!richTextDisplayField(
                                labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                                value: {
                                  a!richTextItem(
                                    text: fv!item.rank,
                                    color: &amp;quot;STANDARD&amp;quot;,
                                    size: &amp;quot;MEDIUM&amp;quot;,
                                    style: &amp;quot;STRONG&amp;quot;
                                  )
                                }
                              ),
                              width: &amp;quot;2X&amp;quot;
                            ),
                            a!sideBySideItem(
                              item: a!imageField(
                                labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                                images: a!userImage(),
                                size: &amp;quot;SMALL&amp;quot;,
                                isThumbnail: false,
                                style: &amp;quot;AVATAR&amp;quot;
                              ),
                              width: &amp;quot;MINIMIZE&amp;quot;
                            ),
                            a!sideBySideItem(
                              item: a!richTextDisplayField(
                                labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                                value: {
                                  a!richTextItem(
                                    text: fv!item.name,
                                    size: &amp;quot;MEDIUM&amp;quot;,
                                    style: &amp;quot;STRONG&amp;quot;
                                  )
                                }
                              ),
                              width: &amp;quot;8X&amp;quot;
                            ),
                            a!sideBySideItem(
                              item: a!richTextDisplayField(
                                labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                                value: {
                                  a!richTextItem(
                                    text: fv!item.revenue,
                                    color: &amp;quot;STANDARD&amp;quot;,
                                    size: &amp;quot;MEDIUM_PLUS&amp;quot;
                                  )
                                },
                                align: &amp;quot;RIGHT&amp;quot;
                              ),
                              width: &amp;quot;MINIMIZE&amp;quot;
                            )
                          },
                          alignvertical: &amp;quot;MIDDLE&amp;quot;
                        )
                      )
                    },
                    marginBelow: &amp;quot;NONE&amp;quot;
                  )
                },
                height: &amp;quot;AUTO&amp;quot;,
                style: &amp;quot;CHARCOAL_SCHEME&amp;quot;,
                padding: &amp;quot;STANDARD&amp;quot;,
                showBorder: false
              )
            },
            width: &amp;quot;MEDIUM_PLUS&amp;quot;
          )
        }
      )
    },
    backgroundColor: &amp;quot;CHARCOAL_SCHEME&amp;quot;
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/86143?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 08:31:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1cf28f3a-7799-44ca-8d42-07ddf13c92cd</guid><dc:creator>shubhamy0001</dc:creator><description>&lt;p&gt;@&lt;span&gt;saurabhrajnala: Thank you for your reply. How can the user update the fields and save into database if using box layout.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/86130?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 15:37:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:12ae6e85-9f20-4564-ae7b-b401d8690b0f</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span class="user-name"&gt;&lt;a class="internal-link view-user-profile" href="/members/saurabhr0005"&gt;saurabhrajnala&lt;/a&gt;, try to use for code the &amp;quot;insert code&amp;quot; functionality. You can find it below your comment box at the dropdown &amp;quot;Insert&amp;quot; it makes it waaaaay easier to read for others.&lt;br /&gt;&lt;br /&gt;Hi Shubhamy,&lt;br /&gt;sarabhrajnala explained one way of a lot of different ways. Can you tell us more about your target? What do you want to archieve? Reporting?&lt;br /&gt;Editing of specific data entity (line)( Then we are in the record context)&lt;br /&gt;Do you want to call data in a process the most structured way?&amp;nbsp;&lt;br /&gt;Do you want to show data all at once or one by one?&lt;br /&gt;and so on&amp;nbsp;&lt;br /&gt;A lot of factors can be considered here. Can you elaborate your target :)?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/86127?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 12:16:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:96138290-c209-40b2-a064-fb999191ee7b</guid><dc:creator>saurabhrajnala</dc:creator><description>&lt;p&gt;You could display the data in box layout where each box could hold the data of one row of the view. Inside the box you could have these view columns as editable text field, dropdown field or any field of your choice.&lt;/p&gt;
&lt;p&gt;Consider the below example code:&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;/p&gt;
&lt;p&gt;local!data:&amp;nbsp;*Query the view*,&lt;/p&gt;
&lt;p&gt;a!forEach(&lt;/p&gt;
&lt;p&gt;items: local!data,&lt;/p&gt;
&lt;p&gt;expression: {&lt;/p&gt;
&lt;p&gt;a!boxLayout(&lt;/p&gt;
&lt;p&gt;label: fv!item.labelField,&lt;/p&gt;
&lt;p&gt;contents: {&lt;/p&gt;
&lt;p&gt;a!textField(&lt;/p&gt;
&lt;p&gt;label: *field name*,&lt;/p&gt;
&lt;p&gt;value: fv!item.field&lt;/p&gt;
&lt;p&gt;),&lt;/p&gt;
&lt;p&gt;//All the fields you want for that row&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>