[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

1032.0. "Supervisor Only fields and PRVSUP privilege" by MLN08::COLOMBO () Mon Jul 13 1992 15:02

    Problem:	to avoid that a user could work directly on an entry form,
    		used from an application.
    
    Solution:	with ALL-IN-1 2.4, to set the attribute "Supervisor Only"
    		to the key field. If a user does not have the PRVSUP
    		privilege, when he call the entry form directly by name,
    		ALL-IN-1 returns an error.
    
    It works also with ALL-IN-1 3.0, but also for a user with PRVSUP = Y
    
    WHAT CAN WE DO ?
    
    Thanks for any suggestion !
    
    Roberto AGIP Colombo
    
T.RTitleUserPersonal
Name
DateLines
1032.1Take off /SUPER. It's OK to read the APR now :-)IOSG::ALLANDerek, DTN 830-3669Mon Jul 13 1992 19:2935
        Strangely, the answer to your problem is to take off the /SUPER form 
        qualifier. However, leave the FMS Supervisor-only attribute on the
        FMS field. You will find that /SUPER is only needed when you wish to
        nominate a user as the only supervisor e.g. /SUPER = LOG$THE_MANAGER. 
	If you miss off /SUPER then the Supervisor-only field will be enterable
        by those with PRVSUP. The field will appear as a display-only field to 
        those without PRVSUP.

	In 2.4 the behaviour of /SUPER is at odds with the documentation.
	As /SUPER was fairly unusable in 2.4 we decided to fix the code 
	rather than fix the documentation. In version 3.0 /SUPER works as 
	the APR says it does. 

        In 3.0 /SUPER=username nominates the only user who is allowed to 
	enter FMS fields on the current form which have the SUPERVISOR-ONLY
        attribute. Additionally, if there is no /SUPER form qualifier, but 
        the user has the PRVSUP profile flag set, then the user is allowed 
        to enter SUPERVISOR-ONLY fields. 

        The 2.4 problems were:

        1. When a non-supervisor TABbed to a supervisor-only field, the
           non-supervisor was thrown off the form.

        2. Once supervisor capabilities were turned on by /SUPER they would
           not be turned off again!

	These are fixed in 3.0. If you use /SUPER without giving the
	qualifier a value, it means /SUPER = nobody. That is, no one 
	can enter the supervisor-only fields. If you miss off 
	/SUPER altogether then everyone who is a supervisor can enter the
	supervisor-only fields.

	Cheers,
	Derek

1032.2Does supervisor only really work in V3.0 with ENTRY?SHALOT::WARFORDRichard Warford @OPA DTN 393-7495Tue Jul 14 1992 00:428
    Does this mean the use of supervisor only fields now works on ENTRY
    forms in V3.0?  In the past this wouldn't work as at some point during
    processing, the field would be made display only (Either key field
    entry setting non-keyfields to display only, or non-key field entry
    setting key fields not enterable). You would then get an error about
    supervisor only not allowed on display only fields from FMS. 
    
    Rick
1032.3IOSG::ALLANDerek, DTN 830-3669Tue Jul 14 1992 10:1713
	No, that problem still seems to exist. The error message I get is

	 -FDV-E-DSP, Get-type call is illegal for Display Only field

	when the key field of an Entry form is given Supervisor only. You
	get the error whether or not your a supervisor.

	Was this problem introduced during 3.0? I don't see how the
	form described in .0 would work if this bug was in 2.4.

	Cheers,
	Derek
1032.4more clearly ...MLN08::COLOMBOTue Jul 14 1992 15:238
    With ALL-IN-1 2.4 ITALIAN, a user with PRVSUP=N doesn't work with an
    entry form with the "Supervisor only" attribute to the key field
    (without using /SUPER form qualifier).
    
    How can we obtain the same with ALL-IN-1 3.0  ?
    
    Roberto AGIP Colombo
    SW - Milan, Italy
1032.5IOSG::ALLANDerek, DTN 830-3669Tue Jul 14 1992 16:5727
 	re .4

	The reason a problem has appeared with Entry form processing is
	that Supervisor-only fields are enabled for supervisors during
	form pre-processing. Pre-processing for Entry forms doesn't happen
	until after the key fields have been processed.

	The bottom line is that putting the FMS supervisor-only attribute
	on the key field of an Entry form makes the field unenterable by
	anyone.

	The sort of work-around you might be able to use is the one which
	we use for profile, that is, create a menu option of form DEFAULT
	which goes

	;;MYENTRYFORM;;

	.IF OA$PROFIL_PRVSUP == 0
	 THEN
	    GET OA$DISPLAY = "You are not a supervisor"
	 ELSE
	    FORM MYENTRYFORM


	Cheers,
	Derek
1032.6Old bug...SHALOT::WARFORDRichard Warford @OPA DTN 393-7495Tue Jul 14 1992 18:415
    re: .3 No Derick, the problem with ENTRY forms was noted and I thought
    release noted in V2.0 days. I don't think ANY version of ALL-IN-1 has
    allowed this since then.
    
    RIck