Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capability Words? 2

Status
Not open for further replies.

TudorSmith

Programmer
Jan 14, 2002
245
GB
Hi,

I'm running v3.0 sp5

I have a drop down box on AMP.QUICK.G which I only want to be visible if a user has a specific capability word in their profile.

I've set up the Capability word already...now all I've got to do is apply the thing!

Anyone know how I can do this? What form/admin settings should I be looking at?

birklea birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
set a invisible field on the form ( a nice feature ) , set a variable ( depend on the capability word ) , and check the eng form dep.g for some examples
 
Thanks...what is &quot;check the eng form dep.g for some examples&quot;. I'm not that a proficient developer in SC! birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
OK...I took a look at dep.g and there are some interesting options available here.

For instance, I could take a check box, and if it's value is true, then make one DropDoan box invisible, and the other one visible right?

Ok, how would I trigger the check box to be true based on a users capability word?

Thanks

birklea birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
you cann t use arrays .. thats means , in the format control on display set a threaded variable (e.g. index (&quot;capword&quot;,$lo.ucapex)>0 then $myvariable=true), put this variable to a invisible label on the form , thats all ....enjoy servicecenter )-:
 
Thats easy to do.
Lets say your cap. word is &quot;Admin&quot;

1. Set the visible condition on your field to Yes.
2. The visible conditition set to
[$visible]=&quot;ok&quot;

3. On your form add a field. The input must be $visible.

4. You should hide the field $visible. Set the visible condition to FALSE

5. in your format control. Go to calculation.
Add the followiing string
if index(&quot;Admin&quot;, $lo.ucapex)>0 then $visible=&quot;ok&quot; else $visible=&quot;notok&quot;

Now it should work.


Bye from Germany..
Frank
 
Oh Just seen.. This

dx111ge (Programmer)
Dec 25, 2002

you cann t use arrays .. thats means , in the format control on display set a threaded variable (e.g. index
(&quot;capword&quot;,$lo.ucapex)>0 then $myvariable=true), put this variable to a invisible label on the form , thats all
....enjoy servicecenter )-:


Should work too. THe only thing is.. You HAVE to add a field with the input $MYVARIABLE. If you DONT.. it does NOT work.

Bye from Germany..
Frank
 
Thanks Guys!

Looks like this will help no end!

Tudor (aka birklea) birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top