Dropdown list cambiar de ventanas

Hola a todos, A lo mejor es muy básico lo que voy a preguntar pero me considero un aprendiz en Ignition.
Mi pregunta es, como puedo cambiar de ventanas o popup con el dropdown list de Vision?
De antemano muchas gracias.

Hi Alejandro,

There are many ways you can do that, there are other components in the palette specifically designed for navigating between windows; However, using a dropdown is a valid alternative, but you'll need to add scripting to it, I share with you one way you can do it:

1- Define the Dropdown component 'Data' property with 'Values' ​​of 0, 1, etc., and 'Labels' with the names of the windows you want the user to see, e.g. 'Window #0', 'Window #1'....

2- Add Scripting to the Dropdow propertyChange event (You can simplify the code to make it cleaner, but I'll leave it that way to make it clearer):

  ##Only when selectedValue property changes
  if event.propertyName == "selectedValue":
   ##Only when new selectedValue value is different that the old one
   if event.newValue != event.oldValue:
   ##If dropdown Value is 0, open window 'window_0'
   if event.source.selectedValue == 0:
     window = system.nav.openWindow('window_0')
     system.nav.centerWindow(window)
   ##If dropdown Value is 1, open window 'window_1'
   elif event.source.selectedValue == 1:
     window = system.nav.openWindow('window_1')
     system.nav.centerWindow(window)

As additional suggestions, I recommend that you review Inductive University, it has many useful topics and will help your Ignition adventure and give you stronger foundations.
I would also suggest posting in English when possible, Ignition is a widely used platform primarily in the US so posting in English helps to get more responses or get to more people who can contribute.

I hope this has been helpful, Ignition is a great platform, I hope you enjoy using it.
Good luck.