I am receiving the error below when using the attached code. I checked the help and saw that selectedStringValue is a valid property. I can comment out any of the line and get the same error just a reference to the next line. Is there something I am missing?
There error that you are getting means that the component path you are using, “Shift_Dropdown” does not exist, so None is being returned by the call to getComponent. Are you sure that the “Shift_Dropdown” component is in the root container? Are you sure you spelled the name of the component exactly as it appears in the Project Browser in the designer? Are you sure you are getting the right window?
I copied and pasted the component name into the script and received the same error. This is the parent window. The script is being launched from a button press. I’ve attached the tree in Designer.
[quote=“dturner”]Do I need to put that again even though I have it in the variable window = system.gui.getParentWindow(event).rootContainer?[/quote]Whoops, I missed that. No.