<?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>Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/discussions/f/user-interface/20803/refresh-issue-with-a-richtextitem-on-variable-refresh</link><description>Hi, 
 richTextItem not reevaluate once surveyDoc variable changes, can anyone help me 
 
 a!richTextDisplayField( label: &amp;quot;&amp;quot;, labelPosition: &amp;quot;COLLAPSED&amp;quot;, value: { a!richTextItem( text: {index(local!languageData,&amp;quot;survey&amp;quot;,{})}, style: &amp;quot;STRONG&amp;quot; ), &amp;quot; : &amp;quot;,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/thread/81064?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 14:13:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f90668e1-69b2-4587-8860-13ce6e64faf9</guid><dc:creator>Shahid</dc:creator><description>&lt;p&gt;thanks i&amp;#39;ll remember it next time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/thread/81063?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 14:12:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5aab05e-afb9-4f2c-ac65-9ed54793c22a</guid><dc:creator>Shahid</dc:creator><description>&lt;p&gt;thanks issue resolved&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/thread/81062?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 14:09:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:19b3e750-85c5-47de-9fa5-4a6e9eff758d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just as a side note, code like this would present much more cleanly and readable if you&amp;#39;d insert it into a Code Box - check Mihai&amp;#39;s comment (below) for an example.&amp;nbsp; Like this, it&amp;#39;s really hard to read, since all indentation etc has been stripped away.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/thread/81061?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 14:08:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cefdc4c2-fd37-4998-aa9d-be1e2f7a6a5a</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I think the issue is that you need to pull something back from the process after you start it. You currently don&amp;#39;t have any way of forcing the local!surveyDoc to refresh after the process completes (and I assume the process is generating a document that you wish to query?)&lt;/p&gt;
&lt;p&gt;I&amp;#39;d suggest adding an &amp;quot;onSuccess&amp;quot; parameter to your start process above that saves the result of the process into another variable. Then, your local!surveyDoc can also check that variable to determine if it needs to refresh using a!refreshVariable().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/thread/81040?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 04:56:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb4febb3-837c-4673-aaaa-5d2b5513ce1f</guid><dc:creator>Shahid</dc:creator><description>&lt;p&gt;&lt;strong&gt;process start :&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;a!linkField(&lt;br /&gt; label: &amp;quot;&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ADJACENT&amp;quot;,&lt;br /&gt; links: {&lt;br /&gt; a!dynamicLink(&lt;br /&gt; label: &amp;quot;Pull From Maestro&amp;quot;,&lt;br /&gt; saveInto: {&lt;br /&gt; a!startProcess(&lt;br /&gt; processModel: cons!TCA_PM_PULL_DOCS_FROM_MAESTRO,&lt;br /&gt; processParameters: {&lt;br /&gt; colocationRequestId:ri!requestId,&lt;br /&gt; documentTypeId:cons!TCA_VAL_SURVEY_COLOCATION_DOC_ID,&lt;br /&gt; maestroDocumentId:cons!TCA_VAL_SURVEY_MAESTRO_DOC,&lt;br /&gt; siteId:local!colocationRequest.siteId&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;surveyDoc variable:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;local!surveyDoc:&lt;br /&gt;rule!TCA_QueryEntity(&lt;br /&gt; dse:if(rule!APN_isBlank(ri!PIPPackage.packageId),cons!TCA_DSE_VW_GET_REQUEST_DOCUMENTS,cons!TCA_DSE_PIP_PACKAGE_DOCUMENTS) ,&lt;br /&gt; columns: {&amp;quot;appianDocumentId&amp;quot;,&amp;quot;documentId&amp;quot;},&lt;br /&gt; filterEqualFields:if(rule!APN_isBlank(ri!PIPPackage.packageId),{&amp;quot;requestId&amp;quot;,&amp;quot;documentType&amp;quot;},{&amp;quot;packageId&amp;quot;,&amp;quot;documentTypeId&amp;quot;}),&lt;br /&gt; filterEqualValues:if(rule!APN_isBlank(ri!PIPPackage.packageId),{ri!requestId, cons!TCA_VAL_SURVEY_COLOCATION_DOC_ID},{ri!PIPPackage.packageId,cons!TCA_VAL_SURVEY_COLOCATION_DOC_ID}),&lt;br /&gt; ignoreIsDeleted: false(),&lt;br /&gt; pagingInfo:a!pagingInfo(1,-1), &lt;br /&gt; isIndexIntoData:true()&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/thread/81039?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 16:08:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13d1f63b-159c-4b95-88af-0b9689664a03</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I think part of my confusion is that there is nothing in your code above that is updating local!surveyDoc - how is that variable being defined and how do you expect it to be updated? Also, what is the process start link doing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/thread/81032?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 14:37:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f241067d-497c-4b21-9ec0-4d120734b5e9</guid><dc:creator>Shahid</dc:creator><description>&lt;p&gt;Hi Mihai,&lt;/p&gt;
&lt;p&gt;Thanks for your reply, I just want to update/refersh&amp;nbsp;&lt;span&gt;local!surveyDoc on a a!processStart wich is a dynamicLink.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/thread/81031?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 14:35:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:744161a5-a747-4353-810a-ace229250cd7</guid><dc:creator>Shahid</dc:creator><description>&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;Thanks for the reply, I just want to update/refersh&amp;nbsp;&lt;span&gt;local!surveyDoc on a a!processStart,&amp;nbsp;local!surveyDoc i am using to dynamically display some document names on richTextItem inside richtextdisplayfield..&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/thread/81030?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 13:56:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b937991-fe68-422c-9589-03ae2e3a335f</guid><dc:creator>Mihai-Octavian Tudose</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;bellow an example how you can append new item into your surveyDoc array and the rich text field will update:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!languageData:{survey:&amp;quot;some language&amp;quot;},
  local!surveyDoc:{appianDocumentId:101457},
  a!formLayout(
    label:&amp;quot;Dummy&amp;quot;,
    contents:{
      a!richTextDisplayField(
        label: &amp;quot;&amp;quot;,
        labelPosition: &amp;quot;COLLAPSED&amp;quot;,
        value: {
          a!richTextItem(
            text: { index(local!languageData, &amp;quot;survey&amp;quot;, {}) },
            style: &amp;quot;STRONG&amp;quot;
          ),
          &amp;quot; : &amp;quot;,
          if(
            count(local!surveyDoc) &amp;gt; 0,
            a!forEach(
              items: local!surveyDoc,
              expression: {
                a!richTextItem(
                  text: document(
                    tointeger(fv!item.appianDocumentId),
                    &amp;quot;name&amp;quot;
                  ) &amp;amp; char(13),
                  link: if(
                    rule!APN_isBlank(fv!item),
                    null,
                    if(
                      true,
                      a!startProcessLink(
                        processModel: cons!PROCESS_MODEL,
                        processParameters: {
                          documentId: fv!item.documentId,
                          appiandocid:fv!item.appianDocumentId
                        }
                      ),
                      a!documentDownloadLink(
                        label: document(tointeger(fv!item.appianDocumentId),&amp;quot;name&amp;quot;),
                        document: fv!item.appianDocumentId
                      )
                    )
                  )
                )
              }
            ),
            a!richTextItem(text: &amp;quot;Not Available&amp;quot;)
          )
        }
      ),
      a!buttonLayout(
        secondaryButtons: {
          a!buttonWidget(
            label:&amp;quot;Update survey doc array&amp;quot;,
            value:null,
            saveInto:a!save(
              local!surveyDoc,
              fn!append(
                {local!surveyDoc},
                {appianDocumentId:119534}
              )
            )
          )
        }
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh issue with a!richTextItem on variable refresh</title><link>https://community.appian.com/thread/81026?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 13:17:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c806c9b2-d0bf-47ae-af00-9ab0d3521674</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand the issue you&amp;#39;re having - can you provide more information? What are you expecting to happen and what are you actually seeing happen? What else is happening on your interface?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>