« Ves enrere a University of Vienna - OMILAB

Title of a DOCKABLE_BROWSER

Vista combinada Visió plana Vista en arbre
Fils [ Anterior | Següent ]
toggle
Title of a DOCKABLE_BROWSER
Resposta
09/01/19 13:35

Problem:
I wrote two AdoScripts, which have a list in a dockable_browser as output. When I executed a script the output content is updated correctly, but the title always stayed the title of the first executed script. Although I defined different titles in the code for the dockable_browser, I could not manage to solve this problem.

Thanks to the ADOxx-Team, that came up with a solution very quickly!

Reason for problem:
Both browser windows have the same "winid". When a window is closed it is only "hidden" -> the winid is preserved and used again -> only the content is loaded, but the window exists already.

Solution:
a) unique winid for each window and all winids in a global variable as string
b) close all dockable_windows before a new one is opened (CC "AdoScript" CLOSE_DOCKABLE_WINDOW winid:strValue ----- RESULT ecode:intValue (ecode is 0 if winid does not exist))


RE: Title of a DOCKABLE_BROWSER
Resposta
06/02/18 12:32 com a respotat a Anònim.
Thanks for the documentation and feedback.