Joy Carvalho Posted May 13, 2021 Share Posted May 13, 2021 I need the user name to appear when he opens the dashboard. I checked some scripts, and only saw solutions where the username is displayed after the user clicks a button. Link to comment Share on other sites More sharing options...
Aditya Ashok Ujeniya Posted May 17, 2021 Share Posted May 17, 2021 Hello Joyce, You can use below IronPython Script that gets username in Doucment Property when the user logs in. from System import Environment, Threading Document.Properties["user"] = Threading.Thread.CurrentPrincipal.Identity.NameAlso, you can trigger IronPython automatically using Data Functions. You can skip the method of manually loading the script using click events. The below article guides you on creating and setting data functions that will trigger the Ironpython execution: https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-44163 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now