Karlos Fandango Posted May 14, 2015 Posted May 14, 2015 (edited) I have a layout with a tab control within it, the "Default Front Tab" is "To do List". Within the "To Do List" tab I have another 'Tab Control' with the following tabs... • Markus• Karl• Scot• Secretary These tabs are also so named as objects. Additionally these names are also the user names. • Markus [User Name, Tab Name and Object Name]• Karl [User Name, Tab Name and Object Name]• Scot [User Name, Tab Name and Object Name]• Secretary [User Name, Tab Name and Object Name] I set an 'On Object Enter' script trigger on the "To Do List" Tab as follows... Go to Object [Object Name: Get ( UserName )] - I also tried... Go to Object [Object Name: "Get ( UserName )"] I was hoping that when a user clicked onto the "To Do List Tab" it would then navigate to the tab named after a user in the tab control within the tab named "To Do List", but is doesn't work... any ideas, thanks. I tried to embed an images but all I get is a swirling icon, maybe it is something to do with Google drive I don't know... so I attached it instead... OK... I see, embedding is attaching! Edited May 14, 2015 by Karlos Fandango
comment Posted May 14, 2015 Posted May 14, 2015 (edited) The image is not very helpful. It would be more helpful if you tried: Go to Object [ Object Name: "Karl" ] Show Custom Dialog [ Get ( UserName ) ] The first step tests that the script is triggered and the object is selected by its name. The second tests if the username returns what you think it does (my guess is that you're confusing UserName with AccountName). Edited May 14, 2015 by comment
Karlos Fandango Posted May 15, 2015 Author Posted May 15, 2015 (my guess is that you're confusing UserName with AccountName). Spot-on 'Comment'... I was using 'userName' when I should have been using 'AccountName' and now it works, goes straight to the tab of the person logged-in to the solution. Thanks, appreciated.
comment Posted May 15, 2015 Posted May 15, 2015 Good. As an aside: hard-coding staff names into your solution will bite you when staff changes.
Karlos Fandango Posted May 15, 2015 Author Posted May 15, 2015 Good. As an aside: hard-coding staff names into your solution will bite you when staff changes. I get that, there might well have to be a long line of Marks, Karls and Scots using this solution! in the future! Once again thanks for the nudge, it is appreciated.
Recommended Posts
This topic is 3479 days old. Please don't post here. Open a new topic instead.
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