<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Specify Input Configuration "OnDialogClosed" Action to only react to certain Dialogs</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f41ffbe557/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f41ffbe557/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/f41ffbe557/</id><updated>2023-10-02T05:27:02.624000Z</updated><subtitle>Recent posts to Specify Input Configuration "OnDialogClosed" Action to only react to certain Dialogs</subtitle><entry><title>Specify Input Configuration "OnDialogClosed" Action to only react to certain Dialogs</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f41ffbe557/?limit=25#08d1" rel="alternate"/><published>2023-10-02T05:27:02.624000Z</published><updated>2023-10-02T05:27:02.624000Z</updated><author><name>manuknecht</name><uri>https://forge.codesys.com/u/manuknecht/</uri></author><id>https://forge.codesys.comacad46590523dbf17b51c99938159f5828bed8e3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your responses. The close listener sounds like an interesting approach, will have to see what I can do with it. I actually solved it as suggested by sturmghost by setting an enum variable to a certain state as soon as I open a dialog. This way I always know which dialog was opened last.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Specify Input Configuration "OnDialogClosed" Action to only react to certain Dialogs</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f41ffbe557/?limit=25#a32f" rel="alternate"/><published>2023-10-01T14:36:10.950000Z</published><updated>2023-10-01T14:36:10.950000Z</updated><author><name>sturmghost</name><uri>https://forge.codesys.com/u/sturmghost/</uri></author><id>https://forge.codesys.com7b2fcfea3665cbf052ea1d80457b51c3b1f158ee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You could work around this problem by implementing some sort of "state machine". Each dialog sets a boolean variable so you know which dialog was closed. Then you can react to this accordingly.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Specify Input Configuration "OnDialogClosed" Action to only react to certain Dialogs</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f41ffbe557/?limit=25#6301" rel="alternate"/><published>2023-09-28T10:08:46.241000Z</published><updated>2023-09-28T10:08:46.241000Z</updated><author><name>TimvH</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com6209ec94f5850158e728729f7e54b13e349b5046</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What maybe helps is the Visu Dialog ST demo project:&lt;br/&gt;
&lt;a href="https://store.codesys.com/en/visu-dialog-st.html" rel="nofollow"&gt;https://store.codesys.com/en/visu-dialog-st.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This has an application IECOpenDialog where dialogs are opened using the VU.FbOpenDialogExtended function blocks.&lt;/p&gt;
&lt;p&gt;The fbOpenConfigurationDialog call has a reference (interface) to the "close listener" FB of which it's method is automatically called when the dialog is closed. This way you can create specific function blocks for each dialog when it is closed and do what you want with the data that might have been changed.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Specify Input Configuration "OnDialogClosed" Action to only react to certain Dialogs</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/f41ffbe557/?limit=25#df8b" rel="alternate"/><published>2023-09-20T09:07:50.392000Z</published><updated>2023-09-20T09:07:50.392000Z</updated><author><name>manuknecht</name><uri>https://forge.codesys.com/u/manuknecht/</uri></author><id>https://forge.codesys.com0b4aa83e297c270a91cef4af196772d664798709</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a project with several buttons and dialogs. Most of the dialogs are opened using the &lt;em&gt;Open Dialog&lt;/em&gt; action of the Input configuration of the buttons. Some dialogs are openend using the &lt;code&gt;FbOpenDialogExtended&lt;/code&gt; FB of the &lt;em&gt;Visu Utils&lt;/em&gt; library and the &lt;code&gt;FbOpenDialogExtended&lt;/code&gt; FB is called in the &lt;em&gt;Execute ST-Code&lt;/em&gt; action. &lt;br/&gt;
I am also using the &lt;code&gt;FileOpenSave&lt;/code&gt; dialog from &lt;em&gt;Visu Dialogs&lt;/em&gt; which requires an &lt;em&gt;OnDialogClosed&lt;/em&gt; action to read out. I realized that the &lt;em&gt;OnDialogClosed&lt;/em&gt; action which is meant for the &lt;code&gt;FileOpenSave&lt;/code&gt; dialog also triggers if a dialog is closed, which was previously openend using the &lt;code&gt;FbOpenDialogExtended&lt;/code&gt; FB. Is there a way to detect which dialog was closed last and specify to which dialogs the &lt;em&gt;OnDialogClosed&lt;/em&gt; action reacts?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>