Search

User Manual

GETTING STARTED


MODULES AND PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


GLOSSARY


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support
SDK Documentation
SDK Examples

ALL MANUAL VERSIONS

Ignition 8
Ignition 7.9
Ignition 7.8

Deprecated Pages

Skip to end of metadata
Go to start of metadata

 

Sometimes a project needs to change its startup windows depending on who logged in, what security roles they have, or what computer the Client is launched on. In these cases, rather than setting a static startup window, you can write a Client Startup Script that uses the system.nav library to open a dynamic set of windows based on hostname, IP address, user who logged in, and more.

This means you will remove the Open on Startup option from some or all of your windows and use a Client Startup Script to determine which windows will be opened. Typically, you will set your navigation window to Open on Startup, but decide on a main window in the startup script. The example below checks the users role before opening a window.

Code Snippet - Client Startup Role Check
# Checks the users role and opens a main window depending on the role

# Grabs a list of the users roles
roles = system.security.getRoles()

# Checks if they have Administrator role
if 'Administrator' in roles:
	system.nav.openWindow('Administrator Screen')

# Checks if they have Operator role
elif 'Operator' in roles:
	system.nav.openWindow('Operator Screen')

# If they have neither Administrator or Operator
else:
	system.nav.openWindow('Welcome Screen')


IULocgo


Open Dynamic Window(s) on Startup

 


 

  • No labels