Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nikhilgarg
Specialist II
Specialist II

How to show multiple possible values in listbox at front end?

Hello All,

I have an issue. In my listbox i have multiple associated values of ntname. I want to compare OSuser() with multiple NTNames and where it matches it should return the corresponding Name. Can some one help me in this?

1 Solution

Accepted Solutions
YoussefBelloum
Champion
Champion

maybe this:

=if(wildmatch(OSUSER(),'*user1*','*user2*','*user3*','*user4*','*user5*','*user6*','*userx*')>0,Name)

View solution in original post

5 Replies
Anil_Babu_Samineni

May be write list box as expression? Not sure, How ntname written??

If(OSUSER() = ntname, Name)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
nikhilgarg
Specialist II
Specialist II
Author

Hey,

i have multiple NTNames. My scenario is security is implemented on basis of region. One region allocated to more than one person due to which when someone login, multiple ntnames shown. In case of multiple NTname, how would i compare with OSUser?

YoussefBelloum
Champion
Champion

maybe this:

=if(wildmatch(OSUSER(),'*user1*','*user2*','*user3*','*user4*','*user5*','*user6*','*userx*')>0,Name)

Anil_Babu_Samineni

What you mean?

My scenario is security is implemented on basis of region. One region allocated to more than one person due to which when someone login, multiple ntnames shown

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
nikhilgarg
Specialist II
Specialist II
Author

There are multiple ntnames, so hardcosing each and every name would be difficult