wrong function Dialog box open order

Document ID : KB000103224
Last Modified Date : 25/06/2018
Show Technical Document Details
Issue:
we have Function A which is a dialog and Function B which is a dialog. Dialog A calls B. Problem is that  dialog function A is not waiting for B to be finished and goes on with execution. In C# the following behaviour is that firstly the Dialog message is displayed instead of waiting for the user to click on "OK" in the B Dialog function. If we close the Dialog message, the A (Menu) function is shown and the A (Dialog) function is displayed in front of it.
Environment:
windows
Cause:
Function Dialog Boxes open in wrong order.
Resolution:
In built application’s config (<App>.Exe.config), set Window loading order ‘AllowDefaultWindowLoadOrder’ to ‘True’. See Sample below:
AllowDefaultWindowLoadOrder
Additional Information:
check that the latest PTFs are applied
https://docops.ca.com/ca-plex/7-2-1/en/search?q=AllowDefaultWindowLoadOrder&max=10&key=PLEX721