Hello Chand,
maybe, what you want to achieve is to query the current dialog from the foreign task? If yes, the problem here is, you can't access GUI code from a foreign task. You will always need a kind of interprocess communication. Anyway, the idea how to do this could be:
Step1. Implement a new method (e.g. IsHomeDialogActive()) within your Application component. For example:
var Core::Group dialog = FindCurrentDialog();
// Test whether the current dialog is a special one (e.g. HomeDialog)
if ((SomeUnit::HomeDialog)dialog != null )
return true;
else
return false;
Step 2. Implement interprocess communication between the both tasks. The idea here, the foreign task asks the GUI task 'is home dialog active'. The GUI task invokes the method IsHomeDialogActive() in context of the root object and returns the value back to the foreign task.
Important: since the method IsHomeDialogActive() is used from the outside of the GUI application (from the GUI task), Embedded Wizard will consider it as not needed by the application itself and eliminate it. You have to supress this by setting the attribute Generator of the method brick to the value true.
Does this answer address your application case?
Best regards
Paul Banach