<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get IN_OUT data from dialog opened by ST code</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ddabedc95e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ddabedc95e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/ddabedc95e/</id><updated>2020-10-14T16:21:17.444000Z</updated><subtitle>Recent posts to Get IN_OUT data from dialog opened by ST code</subtitle><entry><title>Get IN_OUT data from dialog opened by ST code</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ddabedc95e/?limit=25#46a0" rel="alternate"/><published>2020-10-14T16:21:17.444000Z</published><updated>2020-10-14T16:21:17.444000Z</updated><author><name>pbogaerts</name><uri>https://forge.codesys.com/u/pbogaerts/</uri></author><id>https://forge.codesys.combb0d3599a6ca7d3303fa6cbc2dd8ea697aba09e9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have some code to open a custom made dialog box using the standard visu utils library.&lt;br/&gt;
This is working very well, including passing parameter values (texts, numbers, ...) to the dialog which are then displayed.&lt;br/&gt;
Therefor, I use following code:&lt;/p&gt;
&lt;p&gt;VAR&lt;br/&gt;
    fbOpenMessageDialog                     : VU.FbOpenDialogExtended;&lt;br/&gt;
    bDone                                   : BOOL;&lt;br/&gt;
    bBusy                                   : BOOL;&lt;br/&gt;
    bStart                                  : BOOL;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;Dialoginst&lt;/span&gt;                              &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;BRN_ConfirmationDialog_VISU_STRUCT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;END_VAR&lt;/p&gt;
&lt;p&gt;fbOpenMessageDialog(    xExecute := bStart,&lt;br/&gt;
                        xDone =&amp;gt; bDone,&lt;br/&gt;
                        xBusy =&amp;gt; bBusy,&lt;br/&gt;
                        xError =&amp;gt; ,&lt;br/&gt;
                        itfClientFilter := VU.Globals.AllClients,&lt;br/&gt;
                        eError =&amp;gt; ,&lt;br/&gt;
                        sDialogName := 'BRN_ConfirmationDialog',&lt;br/&gt;
                        pbyDialogInterfaceData := ADR(Dialoginst),&lt;br/&gt;
                        udiDialogInterfaceDataSize := SIZEOF(Dialoginst)                  &lt;br/&gt;
                    );&lt;/p&gt;
&lt;p&gt;When clicking on OK, I set the dialog settings like this that the output variable should be updated + a var_in_out boolean should be toggled.&lt;br/&gt;
This is not working: when I click on OK in the dialog, my linked variable is not toggled/updated.&lt;br/&gt;
I am sure this is not due to setting issues in the dialog itself because I tested the same dialog to be opened by clicking on a button (and passing all values by the parameters by the configuration settings (see picture in attachment).&lt;/p&gt;
&lt;p&gt;Anyone who could help me out what to do to update the output variables of a dialog that was called from ST-code?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>