<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>10 Aug 2017 16:52:00 Z</lastBuildDate><pubDate>10 Aug 2017 16:15:00 Z</pubDate><description>WD22&#13;
&#13;
Thought I would bring myself up to date so the application I have is based on dynamic tabs - I like them and it does look good but I seem to have dug myself a bit of a hole.&#13;
&#13;
Tab 1 opens and contains a table control listing, in this example, Properties.&#13;
Double clicking on a row opens, on a new tab, a detail (form) window with the full record content.&#13;
To take advantage of the dynamic tab approach multiple detail windows can be opened although I am limiting this to 3.&#13;
This is all operating fine - happy days.&#13;
&#13;
An 'update form' window (on its own dynamic tab) can be called from either the table or detail window of a given record and this is where my problem starts.&#13;
What I want, indeed need, to do is keep the displayed data in both windows in sync.&#13;
&#13;
If the edit is called from the detail window then all is good as the table is common to all detail windows -- On saving the edit window closes, the detail window refreshes itself and then calls the refresh procedure for its parent table.&#13;
&#13;
If however the edit is called from the table window it can only refresh itself as I can find no way to run the update procedure on a specified window.&#13;
To manage Dynamic tabs does require an array but the only information I store that is unique to the window itself, not the record displayed, is the alias of the its tab and its System Handle ID -- Sadly neither of these pieces of info can be used to execute a procedure -- That requires the window name which in this case is identical for all 3 detail windows.&#13;
&#13;
So I'm asking here, more in hope than expectation, if anyone can maybe offer a possible solution.&#13;
&#13;
To save wasting peoples time I would add....&#13;
I did think that I could wait to refresh the detail window until the user returned to that specific tab by setting a flag somewhere.&#13;
Unfortunately that failed as it appears that each tab exists in its own private world as no code is executed when the tab content is re-displayed - it does not even fire the 'OnFocus' event.&#13;
&#13;
Now this is WinDev so of course there is always a way to achieve what is required and I have indeed got a solution.&#13;
On saving an update I populate a global variable with the System Handle of the window.&#13;
Every detail window which requires this 'sync' functionality now runs an 'Automatic Procedure' that continually runs while the window is open - this compares the handle of its host window with the global variable -- If the same, bingo, the update procedure is executed.&#13;
What I am not keen on is that, according to the Task Manager each window open that has the automatic procedure is consuming an additional 1.5 to 2.5MB of ram.&#13;
I have 7 windows with a table control so potentially 21 detail windows could be open at any one time.&#13;
Put on a server with 50+ users then that potential total obviously increases.&#13;
&#13;
So my second question is am I being overly pessimistic with regard to consumption of the system resources?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62158-dynamic-tabs-amp-window-identification/read.awp</link><title>Dynamic Tabs &amp;amp; Window identification</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62158-dynamic-tabs-amp-window-identification-62159/read.awp</comments><pubDate>10 Aug 2017 16:52:00 Z</pubDate><description>Hi Derek,&#13;
&#13;
There may be some twist because of the dynamic tabs part, but I have managed this kind of things quite easily befor…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62158-dynamic-tabs-amp-window-identification-62159/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62158-dynamic-tabs-amp-window-identification-62159/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62158-dynamic-tabs-amp-window-identification/read.awp">Dynamic Tabs &amp;amp; Window identification</source><title>Re: Dynamic Tabs &amp;amp; Window identification</title></item></channel></rss>
