# Changing Dropdown Value on Client When Opening Project From Different Gateway

**URL:** <https://forum.inductiveautomation.com/t/changing-dropdown-value-on-client-when-opening-project-from-different-gateway/80286>\
**Category:** Ignition\
**Created:** [October 10, 2023, 3:54pm UTC](https://forum.inductiveautomation.com/t/changing-dropdown-value-on-client-when-opening-project-from-different-gateway/80286 "2023-10-10T15:54:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikola\_Kuljanin](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@Nikola\_Kuljanin](https://forum.inductiveautomation.com/u/Nikola_Kuljanin)\
**Post date:** [October 10, 2023, 3:54pm UTC](https://forum.inductiveautomation.com/t/changing-dropdown-value-on-client-when-opening-project-from-different-gateway/80286/1 "2023-10-10T15:54:12Z")

</div>

Current setup: Dashboard that links to other projects in many different gateways. When my project is opened from the dashboard, the dropdown on the dock to the left is set to value 1 by default which has different tabs than values 2-5. Each value has different tabs for a specific machine (1-5). When on the main dashboard, you can select exactly which machine you want to open from the start. However, even if I select machine 2 from the dashboard, the dropdown will default to value 1. This results in the first window opening on startup correctly (machine 2 overview) but if an option is selected in the dock it will take you to a tab for machine 1. You have to change the dropdown selection to your desired value before changing tabs when the project has just been opened.

Want: Setting the dropdown value based on the machine selected from the dashboard so you do not have to change the dropdown value when opening the project directly for machines 2-5. I looked into startup scripts but those run before any windows are opened. Any ideas?

P.S. sorry for the abstract/unclear explanation. I can not provide many details or any screenshots so if there are any clarification questions please let me know.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 10, 2023, 3:58pm UTC](https://forum.inductiveautomation.com/t/changing-dropdown-value-on-client-when-opening-project-from-different-gateway/80286/2 "2023-10-10T15:58:27Z")

</div>

> [@Nikola\_Kuljanin](#):
>
> I looked into startup scripts but those run before any windows are opened. Any ideas?

Use a startup script. Don't set **any** windows to "Open on startup". Examine your machine conditions in the startup script and open all of the correct windows from the script with **parameters** , including the docked windows, so that all components have access to the proper state. (The dropdown would be bound to a root container custom property that is supplied by the script parameter.)
