get all views "window" in a page

Hi,

I looking for the way to find all window view in a page

I try to find with queryView(“window”, “all”) but always the result is empty array []

I try with the name of window $$(“windowid”).parentTopView().queryView(“window”,“alll”)

The result always is empty array []

Is posible find all windows views in a single page?

Thanks in advance!!!

Hello @jorge,
The whole collection of currently created views is stored in webix.ui.views.
So you can iterate through all created views in the app and get all windows:

for(var i in webix.ui.views){
    if(webix.ui.views[i].name === "window")
   //  your code
  }

Please, check the console for more details:
https://snippet.webix.com/yj0pw2do

Thanks so much!!! @annazankevich