hcl-bot
February 13, 2007, 10:55am
1
ListOfNames := Names_2 : Names _14: Names _5: Names _6: Names _9: Names _7;answer := !@Member ( @Implode (ListOfNames) ; @Name ([CN];@UserName ));
@Prompt ([Ok];“”;@Implode (ListOfNames));
@Prompt ([Ok];“”;@Text (answer));
answer
I have a list of names ( about 10 names), I need to find out if the user is part of the list of Names…. With the @prompt I see the answer but I get 1 regardless of the user being in the list or not… I am using the prompt just to test, but in fact I am trying to hide or not a field , if the user is in the list then I want the field to show, otherwise hide the field…
Any ideas…?
Thanks
p.
hcl-bot
February 13, 2007, 11:05am
2
Subject: Need to hide a field… should be easy non !!!
Hi Paul,
You shouldn’t need the @implode .
I think…
Andrew.
hcl-bot
February 13, 2007, 6:41pm
3
Subject: Need to hide a field… should be easy non !!!
thanks all… it worked…
hcl-bot
February 13, 2007, 11:17am
4
Subject: Need to hide a field… should be easy non !!!
answer := !@IsMember ( @Implode (@Lowercase (@Name ([CN];ListOfNames)) ; @Lowercase (@Name ([CN];@UserName )));
hcl-bot
February 13, 2007, 11:22am
5
Subject: Need to hide a field… should be easy non !!!
TRy this:
ListOfNames := Names_2 : Names _14: Names _5: Names _6: Names _9: Names _7;
answer := @IsMember (@name ([CN];@username );ListOfNames);
@Prompt ([Ok];“”;@Implode (ListOfNames));
@Prompt ([Ok];“”;@Text (answer));
answer
answer should be True (1) if the person’s common notes name matches one of the list.