<?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>DateTime field issue, updated value is not displaying</title><link>https://community.appian.com/discussions/f/user-interface/18504/datetime-field-issue-updated-value-is-not-displaying</link><description>Hi Everyone, 
 I have two fields dropdown and datetime. Date and Time field value will be updating when drop down value is changing and user can update the date and time value if require. This works fine. 
 But if you remove either date or time value</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: DateTime field issue, updated value is not displaying</title><link>https://community.appian.com/thread/72875?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 17:19:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea85b5f9-e832-4eaf-9224-4b16b4baa5d9</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;We can&amp;#39;t know exactly what&amp;#39;s going on in the background within Appian, but I made my best guess as to why not in my original comment - in short, when only half of the date field is filled in, it probably ignores everything else assuming that a user is still planning to fill in the other half eventually.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DateTime field issue, updated value is not displaying</title><link>https://community.appian.com/thread/72872?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 16:36:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fdc36e43-0f81-4d5d-b62e-330090d1b83e</guid><dc:creator>bhargavip0001</dc:creator><description>&lt;p&gt;You are right but at-least they should handle to show the updated data in the variable isn&amp;#39;t it ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DateTime field issue, updated value is not displaying</title><link>https://community.appian.com/thread/72870?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 14:51:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec143a4e-92f2-406e-82a6-986bc9a44bf8</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="28744" url="~/discussions/f/user-interface/18504/datetime-field-issue-updated-value-is-not-displaying/72868"]but I can&amp;#39;t restrict the user to not to clear date or time alone[/quote]
&lt;p&gt;No, we have no control over this.&lt;/p&gt;
&lt;p&gt;Basically the way you should think of it is: the date/time field only executes its save once both sides have a value entered (either a value provided for both sides, or both sides are cleared).&amp;nbsp; As I said, we have no control over this and honestly, I don&amp;#39;t think there is much Appian could do to fix this, since the expected behavior has to be that a user has to enter values on both sides before the component attempts to do a save, since otherwise it would be saving an incorrect value when only one side has been populated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DateTime field issue, updated value is not displaying</title><link>https://community.appian.com/thread/72869?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 14:50:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:234ad0ce-6cfc-415c-b6ca-c832d924b8c4</guid><dc:creator>bhargavip0001</dc:creator><description>&lt;p&gt;But why can&amp;#39;t Appian handle this issue&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DateTime field issue, updated value is not displaying</title><link>https://community.appian.com/thread/72868?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 14:48:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6dfdf998-39ae-45bf-bb2d-b9e2f0ac63c4</guid><dc:creator>bhargavip0001</dc:creator><description>&lt;p&gt;Yeah this is good idea, may be i can follow this but I can&amp;#39;t restrict the user to not to clear date or time alone isn&amp;#39;t it ? Actually it looks like value is not updated but it&amp;nbsp;is&amp;nbsp;updated with different value shows inconsistency to the user may be.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DateTime field issue, updated value is not displaying</title><link>https://community.appian.com/thread/72867?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 14:36:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:257625fa-08d8-45a8-bb39-f9ed076e0343</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Yes - this is the behavior I was explaining in my comment above.&lt;/p&gt;
&lt;p&gt;Are you worried about a user clearing out just one side of the date/time field?&amp;nbsp; If so, then the best solution would probably be to add a control allowing the user to &amp;quot;clear&amp;quot; the date/time value so that they&amp;#39;re not tempted to clear one side at a time, possibly only clearing out one side before changing the dropdown.&lt;/p&gt;
&lt;p&gt;Edited to add: using side by side layout, plus rich text icons with dynamic coloring and links, you can make a &amp;quot;clear&amp;quot; icon that works pretty seamlessly - example below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;load(
  local!dropDownValue,
  local!dateAndTimeValue,
  {
    a!dropdownField(
      choiceLabels: {
        &amp;quot;Normal&amp;quot;,
        &amp;quot;Urgent&amp;quot;,
        &amp;quot;Medium&amp;quot;
      },
      choiceValues: {
        &amp;quot;Normal&amp;quot;,
        &amp;quot;Urgent&amp;quot;,
        &amp;quot;Medium&amp;quot;
      },
      value: local!dropDownValue,
      saveInto: {
        local!dropDownValue,
        if(
          rule!APN_isBlank( local!dropDownValue ),
          a!save(
            local!dateAndTimeValue,
            null
          ),
          if(
            local!dropDownValue = &amp;quot;Normal&amp;quot;,
            a!save(
              local!dateAndTimeValue,
              now() + 30
            ),
            {
              a!save(
                local!dateAndTimeValue,
                now() + 10
              )
            }
          )
        )
      },
      placeholderLabel: &amp;quot;--Select--&amp;quot;,
      label: &amp;quot;Dropdown&amp;quot;
    ),
    
    a!sideBySideLayout(
      alignVertical: &amp;quot;BOTTOM&amp;quot;,
      items: {
        a!sideBySideItem(
          width: &amp;quot;MINIMIZE&amp;quot;,
          item: a!dateTimeField(
            label: &amp;quot;Date Time&amp;quot;,
            value: local!dateAndTimeValue,
            saveInto: local!dateAndTimeValue
          ),
        ),
        
        a!sideBySideItem(
          width: &amp;quot;MINIMIZE&amp;quot;,
          item: a!richTextDisplayField(
            value: a!richTextItem(
              text: a!richTextIcon(
                icon: &amp;quot;REMOVE&amp;quot;,
                caption: &amp;quot;Clear Date/Time&amp;quot;,
                size: &amp;quot;LARGE&amp;quot;,
                color: if(rule!APN_isBlank(local!dateAndTimeValue),&amp;quot;SECONDARY&amp;quot;, &amp;quot;NEGATIVE&amp;quot;)
              ),
              link: a!dynamicLink(
                showWhen: not(rule!APN_isBlank(local!dateAndTimeValue)),
                saveInto: {
                  a!save(
                    local!dateAndTimeValue,
                    null()
                  )
                }
              ),
              linkStyle: &amp;quot;STANDALONE&amp;quot;
            )
          )
        )
      }
    ),
    a!textField(
      label: &amp;quot;saved date value&amp;quot;,
      value: local!dateAndTimeValue
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img height="188" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1585147651200v1.png" width="398" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DateTime field issue, updated value is not displaying</title><link>https://community.appian.com/thread/72866?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 14:34:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3444774-ee05-48e0-bd3a-c0ff9ad72bf1</guid><dc:creator>bhargavip0001</dc:creator><description>&lt;p&gt;Thanks Mike&amp;nbsp;for the reply, The issue is that when there is value in the DateTime field&amp;nbsp;and then i have emptied either date or time , then i change the value in the drop down where i will be setting the value for DateTime field to other time which DateTime Field will not be displaying. If you the image the variable value for DateTime field is&amp;nbsp;updated but its not showing up in the actual field.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1585146747898v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DateTime field issue, updated value is not displaying</title><link>https://community.appian.com/thread/72861?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 13:23:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9414dc2d-3a17-48b9-b0b2-ea4f4120e7cb</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I was able to reproduce what you&amp;#39;re talking about, but I&amp;#39;m not sure it&amp;#39;s a bug exactly.&amp;nbsp; From my rough understanding, the DateTime field goes into a special &amp;quot;in progress&amp;quot; state when only one of the two values has been filled out -- i.e. date OR time but not both (as in your example) -- meaning, i guess, that it is not executing a saveInto and also is not displaying whatever value is displayed in its &amp;quot;value&amp;quot; parameter (since it would be null until both sides are filled out the first time).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>