<?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>save rating to database</title><link>https://community.appian.com/discussions/f/new-to-appian/22049/save-rating-to-database</link><description>So I&amp;#39;m building a store in appian and i want the user to be able to rate a product and I want it saved so then ofter i can show an average rating of the product, what should I do in order to save the rating of the user in the database after i click the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: save rating to database</title><link>https://community.appian.com/thread/86308?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 15:26:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c915246d-f77c-4457-9237-10302b4b5d45</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;will try it out thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: save rating to database</title><link>https://community.appian.com/thread/86304?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 15:12:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66428c5a-6d16-4503-a18a-efdb4f450c4b</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;I would suggest to review &lt;a href="https://docs.appian.com/suite/help/21.3/recipe-use-the-write-to-data-store-entity-smart-service-function-on-an-interface.html"&gt;a!writeToDataStoreEntity()&lt;/a&gt;, which you can use in the saveInto of your a!dynamicLink to persist the selected rating to the DB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: save rating to database</title><link>https://community.appian.com/thread/86302?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 14:28:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c2c24c8-9934-4cbd-9310-f1ae567aba6c</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; a!sideBySideItem(
            item: a!richTextDisplayField(
              label: &amp;quot;Rate the Product&amp;quot;,
              labelPosition: &amp;quot;ABOVE&amp;quot;,
              value: {
                a!forEach(
                  items: enumerate(local!totalStars) + 1,
                  expression: {
                    a!richTextIcon(
                      icon: if(
                        fv!index &amp;lt;= local!rating,
                        &amp;quot;star&amp;quot;,
                        &amp;quot;star-o&amp;quot;
                      ),
                      color: &amp;quot;ACCENT&amp;quot;,
                      linkstyle: &amp;quot;STANDALONE&amp;quot;,
                      link: a!dynamicLink(
                        value: if(local!rating=fv!index, 0, fv!index),
                        saveInto: local!rating
                      )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have this between the rest of the expressian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>