<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CODESYS Date/Time Picker in Dialog does not update value on close (focus issue) – any workaround?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f1ac9b3203/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f1ac9b3203/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/f1ac9b3203/</id><updated>2026-05-20T10:15:11.855000Z</updated><subtitle>Recent posts to CODESYS Date/Time Picker in Dialog does not update value on close (focus issue) – any workaround?</subtitle><entry><title>CODESYS Date/Time Picker in Dialog does not update value on close (focus issue) – any workaround?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f1ac9b3203/?limit=25#e2bf" rel="alternate"/><published>2026-05-20T10:15:11.855000Z</published><updated>2026-05-20T10:15:11.855000Z</updated><author><name>charleskirkland</name><uri>https://forge.codesys.com/u/charleskirkland/</uri></author><id>https://forge.codesys.comc136ab3c47497e98068ff902b7fb6b98892753df</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have seen similar behavior with some visualization controls in CODESYS. It seems the Date/Time Picker only commits the value after losing focus, so closing the popup immediately with the OK button can skip the update. One possible workaround is forcing focus to another control before closing the dialog or adding a short delay before executing the close action.&lt;br/&gt;
&lt;a class="" href="https://geometry-dashlite2.io/" rel="nofollow"&gt;Geometry Dash Lite&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CODESYS Date/Time Picker in Dialog does not update value on close (focus issue) – any workaround?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/f1ac9b3203/?limit=25#0326" rel="alternate"/><published>2026-05-20T09:43:08.345000Z</published><updated>2026-05-20T09:43:08.345000Z</updated><author><name>phuvutran</name><uri>https://forge.codesys.com/u/phuvutran/</uri></author><id>https://forge.codesys.coma0c725181b4a157cfd4621ccbdb587ba92044921</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I am working with CODESYS 3.5.21 and using the Date/Time Picker inside a dialog (popup visualization).&lt;/p&gt;
&lt;p&gt;I noticed a behavior that seems problematic:&lt;/p&gt;
&lt;p&gt;The Date/Time Picker does NOT update the bound variable immediately.&lt;br/&gt;
It only updates when the control loses focus/select.&lt;/p&gt;
&lt;p&gt;This causes an issue in my dialog:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;User selects a new date/time&lt;/li&gt;
&lt;li&gt;Immediately presses OK (which closes the dialog)&lt;/li&gt;
&lt;li&gt;The new value is NOT saved&lt;/li&gt;
&lt;li&gt;The variable still contains the old value&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So it seems the Date/Time Picker still holds the value internally and does not commit it before the dialog is closed.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>