<?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>not function unable to save value in dynamic link</title><link>https://community.appian.com/discussions/f/user-interface/28962/not-function-unable-to-save-value-in-dynamic-link</link><description>Hi Team, 
 i have a card layout and on click of it the section with contents should showup to the user. For this i have added a link on card layout but on first click it doesnot saves value to local!showDetails but on second click it does because of which</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: not function unable to save value in dynamic link</title><link>https://community.appian.com/thread/114438?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2023 05:16:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0faae144-6b5e-4127-b4d2-6b40c15ac0dd</guid><dc:creator>vaishalig4654</dc:creator><description>&lt;p&gt;We receive a structure of input which is nested and complex object json maximum upto six level down. That input we cast it to a similar CDT structure inorder to display in a dynamic interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not function unable to save value in dynamic link</title><link>https://community.appian.com/thread/114339?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 16:30:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe059e30-9c0c-4598-bcc5-c209fb80e5f9</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;What kind of CDT have you created? You are going 6 levels down in a CDT? &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f632.svg" title="Astonished"&gt;&amp;#x1f632;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not function unable to save value in dynamic link</title><link>https://community.appian.com/thread/114330?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 15:04:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02812ce7-82d6-41e0-a5cc-de326bf94098</guid><dc:creator>mikels7956</dc:creator><description>&lt;p&gt;1. First thing I would do is figure out why the value loads as empty into the interface.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a side note your CDT design is very complex where you have 6 levels of nesting (waterfall effect) this is generally an anti-pattern&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;1. ri!final_PRN_CDT&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;2. PrnSegment&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;3. Providers[1]&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;4. ServiceLocation&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;5. Addresses[ri!index]&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;6. ExpandClicked&lt;/p&gt;
&lt;p&gt;I would suggest to revisit these links to adjust your design&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.2/cdt_design_guidance.html"&gt;https://docs.appian.com/suite/help/23.2/cdt_design_guidance.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/w/the-appian-playbook/1199/working-with-advanced-cdt-structures"&gt;https://community.appian.com/w/the-appian-playbook/1199/working-with-advanced-cdt-structures&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. Another simple solution is to simply do something of the sort&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="json"&gt;a!save(
    ri!final_PRN_CDT.PrnSegment.Providers[1].ServiceLocation.Addresses[ri!index].ExpandClicked,
    if(
        a!isNullOrEmpty(
            ri!final_PRN_CDT.PrnSegment.Providers[1].ServiceLocation.Addresses[ri!index].ExpandClicked
        ),
        true(),
        false()
    )
)&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not function unable to save value in dynamic link</title><link>https://community.appian.com/thread/114307?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 08:01:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:47f98716-6de2-4274-9493-ca5f40c317b0</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This is very confusing ... In a case where I have a hard time to understand what is going on, I try to simplify my code and get rid of external dependencies.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not function unable to save value in dynamic link</title><link>https://community.appian.com/thread/114305?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 07:31:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:37a5a4f0-fc64-4766-9975-a9e0866a174c</guid><dc:creator>vaishalig4654</dc:creator><description>&lt;p&gt;I have one observation. Below is a CDT boolean property when i debugged i see it has empty value when form loads and on first card layout clcik its set to false then on second clcik showdetails is&amp;nbsp;changing value.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;index(
            index(
              index(
                index(
                  index(
                    ri!final_PRN_CDT.PrnSegment.Providers,
                    1,
                    {}
                  ),
                  &amp;quot;ServiceLocation&amp;quot;,
                  {}
                ),
                &amp;quot;Addresses&amp;quot;,
                {}
              ),
              ri!index,
              {}
            ),
            &amp;quot;ExpandClicked&amp;quot;,
            false()
          )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>