saeqsae
Member
Hi all, i tried to created a button which is visible only when the user "Engineer" is logged.
First, i created a macro with the following expression "If CurrentUserName( ) == Engineer Then &Set LOGIN_USER_INGE 1 Else &Set LOGIN_USER_INGE 0 Endif"
After that i created the tag called "LOGIN_USER_INGE" and i used this tag for the visibility.
Finally i put the macro of the startup of my display with the button, but i have some problems with the expression. The button doesnt appear maybe the tag is always off. There is another way to do this or my macro have syntax problems?
Thanks for your help
First, i created a macro with the following expression "If CurrentUserName( ) == Engineer Then &Set LOGIN_USER_INGE 1 Else &Set LOGIN_USER_INGE 0 Endif"
After that i created the tag called "LOGIN_USER_INGE" and i used this tag for the visibility.
Finally i put the macro of the startup of my display with the button, but i have some problems with the expression. The button doesnt appear maybe the tag is always off. There is another way to do this or my macro have syntax problems?
Thanks for your help