<?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>Interface is not showing the values in the underlying local variable</title><link>https://community.appian.com/discussions/f/user-interface/38720/interface-is-not-showing-the-values-in-the-underlying-local-variable</link><description>I have an interface that will be used by parish managers to fill out a Parish Profile. We have some of the Parish Profiles set up from last year and some of the Parish Managers fill out the profile for more than one parish. 
 So the interface takes in</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Interface is not showing the values in the underlying local variable</title><link>https://community.appian.com/thread/146347?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 19:47:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3a709a2e-6c9f-4618-9720-9f5378634b77</guid><dc:creator>Chris.Gillespie</dc:creator><description>&lt;p&gt;I put a cast function in when I declare the local variable updatedParishProfile and now it works!!!!&lt;/p&gt;
&lt;p&gt;Thanks again Mike!!!&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;local!updatedParishProfile: a!refreshVariable(
    value: if(
      local!parishCount &amp;gt; 1,
      cast(&amp;#39;recordType!PMSO Parish Profile&amp;#39;,local!selectedParishProfile),
      if(
        local!parishCount = 1,
        local!parishProfiles[1],
        cast(
          &amp;#39;recordType!PMSO Parish Profile&amp;#39;,
          null
        )
      )
    ),
    refreshAlways: true
  ),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface is not showing the values in the underlying local variable</title><link>https://community.appian.com/thread/146346?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 19:40:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:327beb49-3430-4f2d-ad11-be2c099e9379</guid><dc:creator>Chris.Gillespie</dc:creator><description>&lt;p&gt;ITS A MAP!!!&amp;nbsp; Do I have to cast it as a Record Type?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:285px;max-width:608px;" height="285" src="/resized-image/__size/1216x570/__key/communityserver-discussions-components-files/13/pastedimage1742326817755v1.png" width="608" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface is not showing the values in the underlying local variable</title><link>https://community.appian.com/thread/146345?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 19:30:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21c5e28f-8e2a-492c-979a-29ea13fd547a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What (exact) data type(s) do the local variables &amp;quot;local!parishProfiles&amp;quot; as well as &amp;quot;local!updatedParishProfile&amp;quot; resolve as, i.e. when you click on the variable in the local variables panel to check the underlying data type?&amp;nbsp; I&amp;#39;m a little confused whether they&amp;#39;re resolving as &amp;quot;record type data&amp;quot; or as standard dictionaries, and some of your usage goes back and forth between styles (such as your &amp;quot;selectionValue&amp;quot; parameter here getting the simple &amp;quot;parishId&amp;quot; property via index(), instead of using a record type property for it).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface is not showing the values in the underlying local variable</title><link>https://community.appian.com/thread/146344?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 19:05:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83579d1c-02fe-4131-8661-6ee21e31ddf4</guid><dc:creator>Chris.Gillespie</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="json"&gt;          a!gridField(
            label: &amp;quot;Parishes for User&amp;quot;,
            labelPosition: &amp;quot;COLLAPSED&amp;quot;,
            data: local!parishProfiles,
            columns: {
              a!gridColumn(
                label: &amp;quot;Parish&amp;quot;,
                value: rule!PMSO_getParishNameTextbyParishID(
                  fv!row[&amp;#39;recordType!PMSO Parish Profile.fields.parishId&amp;#39;]
                )
              )
            },
            selectable: true,
            selectionStyle: &amp;quot;CHECKBOX&amp;quot;,
            selectionValue: index(
              local!selectedParishProfile,
              &amp;quot;parishId&amp;quot;,
              {}
            ),
            selectionSaveInto: {
              a!save(
                target: local!selectedParishProfile,
                
                value: if(
                length(fv!selectedRows) &amp;gt; 0,
                fv!selectedRows[length(fv!selectedRows)],
                null
                )
                
              ),
              a!save(
                local!updatedParishProfile,
                local!selectedParishProfile
              )
            },
            selectionRequired: true,
            selectionRequiredMessage: &amp;quot;Please select the Parish to update the profile.&amp;quot;,
            maxSelections: 1,
            shadeAlternateRows: true
          )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface is not showing the values in the underlying local variable</title><link>https://community.appian.com/thread/146343?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 18:52:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e65c87a-854f-482d-b79c-b2d149de8e87</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="46209" url="~/discussions/f/user-interface/38720/interface-is-not-showing-the-values-in-the-underlying-local-variable"]When I select the Parish from the grid[/quote]
&lt;p&gt;What is your code for grid selection?&amp;nbsp; Does the data typing within the local variable (which you screenshotted just a tiny bit of an overview of) line up with your record type, or has it accidentally gotten translated into something else (like a flat dictionary, or maybe an &amp;quot;array of 1&amp;quot; of your record type instead of a single instance of it)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface is not showing the values in the underlying local variable</title><link>https://community.appian.com/thread/146342?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 18:46:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c49df32-0fb1-4590-8cac-d51708d7c6f6</guid><dc:creator>Chris.Gillespie</dc:creator><description>&lt;p&gt;Do you want me to attach all of the code for the form?&amp;nbsp; It is close to 900 lines of code.&lt;/p&gt;
&lt;p&gt;Thanks for the quick response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface is not showing the values in the underlying local variable</title><link>https://community.appian.com/thread/146341?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 18:33:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0756a53-4e34-4543-802d-81889239f6b3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not see any obvious mistake. For more, I need more context and details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface is not showing the values in the underlying local variable</title><link>https://community.appian.com/thread/146338?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 17:18:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c4500a0-7b75-4494-93cb-539be5ba153a</guid><dc:creator>Chris.Gillespie</dc:creator><description>&lt;p&gt;I wrapped the variable in the refreshVariable function and tried several different refresh options.&amp;nbsp; To avail.&amp;nbsp; If anyone can point me in the right direction, please let me know.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>